Questions tagged [inode]

Data structures used to store metadata for each file on a Unix/Linux filesystem.

Filter by
Sorted by
Tagged with
0
votes
0answers
32 views

Ext4: messing inodes & superblocks

writing my first post here after searching all known linux forums looking desperately for a solution. Short story is, I did a lv size reduction before resizing the fs first. That turned into a ...
0
votes
2answers
337 views

Why /proc and /sys have inode 1?

The directories /proc and /sys have inode value 1 even though it means "bad block". Both of them are functioning and I have another linux machine that in addition to these two, /boot also has inode 1. ...
2
votes
0answers
102 views

Analyse allocated space in Ext4 partition to improve data recovery efficiency

I'm trying to use Lubuntu to recover as much data as possible from a failing 4TB hard disk drive. According to GParted the main partition, formatted in Ext4, contains only 553GB of data. I attempted ...
0
votes
0answers
27 views

On NFS, are multiple opens of a file guaranteed to get the same inode?

I'm having a hard time finding information on this. Most people seem to care if inodes are unique, which is not my concern. What I need to know is whether opening a file multiple times from a process ...
1
vote
0answers
195 views

Reading log files using logstash which rotates every day

I am reading a log file using file input plugin in logstash and sending this logs to elastic search. Log file is rotated at every 00:00. When I rotate log file, the file is zipped and moved to a ...
0
votes
1answer
213 views

Remove files with strange name, no inode name, and not shown by ls

It all started in windows , where I found on a USB stick key several files with no name or with strange names, listed as created in 1980 and that could not be removed, as shown below . The error ...
1
vote
0answers
2k views

Inodes that were part of a corrupted orphan linked list found. How to understand what caused it and how to solve?

I bought a Centurion Nano from the now defunct Alpha Computers, it ships with Alpha OS (that is essentially a tampered Ubuntu): $ cat /etc/os-release NAME="Alpha OS" VERSION="1.0.0 Polaris" ID="alpha-...
1
vote
2answers
603 views

remove a file with corrupted name

So this happened: $ ls ''$'\342\200''abc2.16.5' $ ls | od -c 0000000 342 200 a b c 2 . 1 6 . 5 \n $ ls -il 76236897 -rw-rw-r-- 1 mob users 0 Aug 16 17:52 ''$'\342\200''abc2.16.5' ...
4
votes
1answer
110 views

What is the fastest way to make daily backups for 500k+ files?

We have an application that has generated so far over 540k images. The images are kept in a tree structure which is using 5 million Inodes so far. We would like to backup the data daily in a remote ...
1
vote
0answers
161 views

How do I modify an ext filesystem item given its inode number?

How do I modify a file/directory given their inode numbers? Those inodes do not appear on a mounted filesystem as traversable directories / readable files and as such are undiscoverable by find ...
0
votes
1answer
234 views

accidentally clobbered directory using `mv` instead of `mv -t`

I accidentally did mv file /an/important/directory instead of mv file /an/important/directory/ or mv file -t /an/important/directory, so it now looks like /an/important/directory/ is clobbered. (I ...
2
votes
1answer
4k views

What is the difference between FAT and Inode?

Since both are used to map the usage of disk space then how are they different from each other?
0
votes
1answer
86 views

Ubuntu 14.04: “Home” inode on desktop

Ubuntu 14.04.5 I have an unwanted icon on my desktop, that opens Nautilus in the home directory. My home directory has not actually moved to the desktop. Still is in place under /home/myUserName. ...
0
votes
1answer
655 views

How do I determine the physical inode limit?

How do I determine the maximum number of inodes physically possible? Or is this a software limit? I work on a GPFS file system. According to /usr/lpp/mmfs/bin/mmlsfileset gpfs0 -i I have a ...
1
vote
1answer
56 views

copying file from hfs+ to remote samba - preserving ownership and permissions

I've started backing up my file from my local OSX machine to remote samba filesystem. however, it seems that it doesn't copy the permission alright : here's my mount configuration: /Volumes/myvol (...
0
votes
2answers
4k views

Tar directory to file in the directory being tar'ed

I have a mount-point, /media/xvdf1 which I use bindfs to mount at /var/lib/jenkins/jobs with user/group jenkins. I wish to back it up, but I do not have enough space on the other partition. After ...
5
votes
1answer
9k views

What is the difference between a disk block and a sector?

I know that a sector is the unit in which a track is splitted, but I had this doubt since I was looking for information about the maximum number of pointers that an inode can support. I found that ...
2
votes
0answers
130 views

On OS X, saving breaks hard links

I'm using OS X 10.10.5, and I'm seeing a strange issue with hardlinked files. When I update one of the linked files and save the change, the other linked file becomes blank -- a zero-byte file. This ...
1
vote
0answers
239 views

How many inodes I need?

I'm running a Buildroot image that has not the -i flag for df. I have near 100 MB of free space, but when I try to add a nodejs module using npm install I get the error "no free space left". I guess ...
0
votes
1answer
241 views

Can't find why inodes running out

I have a Xen VPS with Debian Linux installed with ext4 filesystem. Once I found that all inodes are used. I checked this: ~# df -i Filesystem Inodes IUsed IFree IUse% Mounted on rootfs ...
0
votes
2answers
77 views

Is it possible to prevent an application remove a file but allow it write on OS X?

I'm installing Xcode from Mac App Store but sadly fails every time near finish with Xcode failed to download Use the Purchases page to try again. message. Except once that I copied pkg ...
0
votes
1answer
38 views

Discrepancy finding and counting all files on the system

I have been researching the different methods of counting up all files on my system. In my case, I want all the files starting at / and going into subfolders. Here is what I have come up with so far: ...
9
votes
2answers
21k views

“Disk quota exceeded” when writing to /tmp, but plenty of space (linux)

i have a VPS. It's managed with the notorious parallels plesk. today i started seeing messages (via wordpress at first, but also from the command line shell), saying: "Disk quota exceeded". user@...
0
votes
1answer
252 views

Is there a way to set the number of inodes in VirtualBox when creating a VDI?

Using VirtualBox 4.3.26 in a Windows 7 host to create Ubuntu 14.04 guest. One of my main reasons to do so is process large numbers of small files, taking advantage of a SSD drive on the host. I was ...
1
vote
1answer
2k views

Is it possible to limit the number of inodes for a user?

I want to limit the resources available to user by setting a limit on the number of inodes they can create. Is there a way to do this?
1
vote
1answer
2k views

“No space left on device” when writing to NTFS on Ubuntu

I'm on Ubuntu 12.04 and want to backup data to my external hard drive which is NTFS. When running cp -rp or rsync, I get no space left errors like this: `rsync: mkstemp "/media/Expansion Drive/.../...
1
vote
1answer
1k views

How to remove directory flag?

I have a .trp video container witch is shown as a directory. Is there a quick way to remove the directory bit from the inode, so the folder is shown as a file? (Not sure if this solves my problem but ...
1
vote
1answer
828 views

Which file attributes are stored in the directory entries and which in the inodes?

I want to do some deduplication of old files, replacing duplicates with hardlinks. To minimize loss of metadata, I want to set the directory entry attributes of each new hardlink to the attributes of ...
6
votes
2answers
4k views

XFS Incorrect statement of “No space left on device”

I have a server setup of an XFS partition on LVM on a Ubuntu 14.04.1 LTS. While copying files to the home partition, "No space left on device" is displayed. df -h displays sufficient space: /dev/...
1
vote
1answer
251 views

Can a file be created from an inode?

There is an apache process which logs to an access and error log. The two log files have been deleted, but the apache process has not been restarted or reloaded so it still has open filehandles for ...
0
votes
0answers
331 views

All of the NTFS hard links damaged, where are those 0kb hardlinks stored and how to recover them?

This is Windows 7 x64 sp1 on a NTFS file system. All hardlinks within C:\Windows\System32 folder disappear, and the Windows can't boot, because even the osloader, C:\Windows\System32\boot\Winload.exe ...
1
vote
1answer
2k views

From where comes the inode number of a file mounted through NFS?

I asked a question on codereview to know if I could safely replace the following code: :inode => [stat.ino, stat.dev_major, stat.dev_minor], which threw NotImplementedError because of jruby not ...
2
votes
1answer
480 views

Can inode numbers be reused in HFS+?

Does the HFS+ file system reuse inode numbers after entries are fully deleted? I am trying to determine if the inode number always grows or if the numbers are reused.
0
votes
0answers
188 views

Traversing through the inode to find the contents of the file stored in different data blocks

I am reading about the EXT2 filesystem and I got an understanding about it. Every file system comprises of data and metadata (inode). The file system is divided into a number of blocks with 4 main ...
4
votes
1answer
731 views

Zero inodes even after formatting hard disk

I have an external 1Tb harddisk which due to some reason was showing following under df -i Filesystem Inodes IUsed IFree IUse% Mounted on /dev/sdb1 0 0 0 - ...
0
votes
1answer
823 views

Difference between 'du' and 'du -b'?

root@host:/var/log/apache2# du access.log -bh 753M access.log root@host:/var/log/apache2# du access.log -h 1.2G access.log Why is there such a huge difference in size for the same file?
1
vote
1answer
137 views

Kate changes inode

Why does Kate change inode when I change file? For example: ookami@ookami-E7130:~/test$ touch test ookami@ookami-E7130:~/test$ ln test test1 ookami@ookami-E7130:~/test$ ls -li total 0 2782182 -rw-rw-...
1
vote
2answers
135 views

how do I know if the number of inodes are already taken?

According to what I have read here http://www.linux.org/article/view/intro-to-inodes, the inode structure occuppies 1% of the storage unit size. Besides, it may happen (if I recall correctly due to a ...
18
votes
5answers
30k views

How to get the actual directory size (out of du)?

How do I get the actual directory size, using UNIX/Linux standard tools? Alternative question: How do I get du to show me the actual directory size (not disk usage)? Since people seem to have ...
0
votes
1answer
489 views

where does boundary of file system lie in Linux?

I am curious that hard link cannot cross the boundary of file system. But where exactly is the boundary? I know hard disk and flash disk are two file systems; /home and /var are two file systems. But ...
2
votes
1answer
19k views

Changing max inode count number in ext3 filesystem in Cent OS

Assuming that I use ext3 filesystem in Cent OS: Can I increase the number of Free Inodes in the filesystem? If Yes how? When I run tune2fs -l /dev/sda1 it got these inodes statistics: Filesystem ...
2
votes
1answer
255 views

Using inode number to locate hardlinks

How can I use the inode number to locate all hardlinks to the file "file.txt" in my home directory?
0
votes
0answers
492 views

Can't delete files with special (and odd) filename characters

I was cleaning up my NAS and found this odd situation. $ pwd /Volumes/Backup/NoteHP/Outras/Ed Motta $ ls -larit total 12932 7786751625 -rwx------ 1 rjdsantos staff 3388293 Feb 2 2005 Ed Motta &...
0
votes
1answer
1k views

Can an inode table on the root partition be-rebuilt or salvaged?

A friend (not technical) has a Linux server running CentOS which will no longer boot. His IT guy looked at it and says the inode table on the root partition was basically gone. Since the inode table ...
0
votes
0answers
151 views

Show only files owned by the user

I have a folder containing lots of backup images. I want users to only see their own files. I've tried setting the permissions to 000 but they still can see the file using ls (the backups belong to ...
0
votes
1answer
698 views

Zip, tar: is there a file table

Is there a file table, or inode structure (like in filesystems) of a zip or tar file?
0
votes
1answer
177 views

What is the efficiency of NTFS Junctions?

Long story short, I am using the steamtool application, which was originally developed for the following reasons: Steam by default would save all your games to C:\ SSDs are becoming the new primary ...
8
votes
7answers
2k views

Go to directory with unknown name

While unpacking a tarball, I encountered a directory which ls reports as "??????????????? ?????". Presumably, the name is not in unicode? Anyway, I can't figure a way to access the folder. I've tried ...
0
votes
1answer
37 views

When will the modified time of folder be changed?

When will the modified time of folder be changed, on both of windows and linux? I know the modified time changed when its inode is changed. But when will the inode of folder be changed?
9
votes
2answers
6k views

Reverse lookup of inode/file from offset in raw device on linux and ext3/4?

In linux, given an offset into a raw disk device, is it possible to map back to an partition + inode? For example, suppose I know that string "xyz" is contained at byte offset 1000000 on /dev/sda: (e....