Questions tagged [inode]
Data structures used to store metadata for each file on a Unix/Linux filesystem.
79
questions
0
votes
0
answers
26
views
ext4lazyinit and forcing to have similar times as an ext4 format time, advantages and disadvangages
I saw this question and while 2 years is a long time, can anybody share anything about any progress on ext4lazyinit. I am specifically interested in this statement by Ted Tso -
So that is what the ...
0
votes
0
answers
36
views
Recovering inode connection on ext4 fs
I faced some non-standard behavior in ext4 partition on my external drive.
After i disconnect my disk from laptop and reconnect again i witnesssed something odd: i somehow lost some of my files... Or ...
0
votes
0
answers
77
views
Can I force Linux to write data at the start of a file system?
TLDR;
Is there a command to force Linux to write a file (for example a PDF file, MP3, anything really) at the start of a file system ? I don't thing that # dd does the trick, because the inode table ...
0
votes
0
answers
65
views
WSL Ubuntu. How to remove a file with 0 hardlinks?
I somehow managed to end up with the following:
ls -la:
total 0
drwxrwxrwx 1 umain umain 4096 Jan 30 12:32 .
drwxr-xr-x 1 umain umain 4096 Jan 30 10:57 ..
-rw-r--r-- 0 umain umain 0 Jan 30 12:32 ...
1
vote
1
answer
150
views
Are /var/mail/root and /var/spool/mail/root hardlinks for the same inode?
Just found out this:
# diff /var/mail/root /var/spool/mail/root
# (nothing)
# ls -i /var/mail/root /var/spool/mail/root
1284 /var/mail/root 1284 /var/spool/mail/root
Same content, same 1284 inode ...
2
votes
1
answer
28
views
Inconsistent behavior from 'find' on zfs under Linux
I was checking to see if I had multiple copies of python on my system today, and I got some super strange behavior from find:
mark@neverland:~/repos/lpod-python$ ls -i /bin/python3.10
534638 /bin/...
0
votes
1
answer
178
views
Can rsync --remove-source-files to the same drive reduce fragmentation?
I know that rsync with --remove-source-files (which I use instead of mv so I can merge directory hierarchies) creates new inodes:
stat 2021_07_30_20_18_17.pdf~
rsync --remove-source-files ...
0
votes
1
answer
32
views
Linux + what are the preferred options in order to resolve inodes that reached 100%
we have RHEL machine , and from df -i , we can see that some partitions are with 100% ( about inodes ) , in spite by df -h we have space
Note - disks are VMDK disks
df -h
/dev/sdc ...
0
votes
1
answer
102
views
change windows partition device number as reported by cygwin stat
I have two partitions with the same device number:
$ stat -c "%D" /cygdrive/c
ec6d967e
$ stat -c "%D" /cygdrive/g
ec6d967e
I believe this is because G: was restored from an image ...
1
vote
1
answer
261
views
fix corrupt file with same inode than an other (linux, ntfs)
While copying thousands of images on a new disk with a pi (raspbian), rsync stopped with an error, impossible to move temp file to correct file name.
The real file name actually exists but has the ...
1
vote
1
answer
248
views
Trying to understand how the deletion of hard links relate to the freeing up of values in the inode table?
When a hard link is deleted, the link is removed but the contents of the file itself continue to exist (that is, its space is not deallocated) until all links to the file are deleted.
My understanding ...
4
votes
1
answer
4k
views
Will long time ext4lazyinit damage the drive? Why initializing inode tables in ext4 (no need any kinda init in NTFS)? etc
I never pay attention on ext4lazyinit before. But today, after I format my 4TB external USB harddrive and the first mount, the led light keeps blinking without any writes and reads. I figured out that ...
0
votes
1
answer
1k
views
How many inodes does a file, a folder take?
After checking a lot of information on the Internet, it is still not quite clear for me how many inodes a file and a folder takes.
Also, I noticed that inodes are shown in kilobytes and not as ...
3
votes
2
answers
1k
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.
...
3
votes
0
answers
264
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
0
answers
137
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
0
answers
464
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
1
answer
510
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
1
answer
8k
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
3
answers
2k
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
1
answer
276
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
0
answers
229
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
1
answer
469
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
1
answer
9k
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
1
answer
98
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
1
answer
1k
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
1
answer
67
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
2
answers
9k
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 ...
10
votes
1
answer
25k
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
1
answer
238
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
0
answers
307
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
1
answer
330
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
2
answers
91
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 inside $...
0
votes
1
answer
48
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
2
answers
29k
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
1
answer
315
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
1
answer
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
1
answer
3k
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
1
answer
2k
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
1
answer
996
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
2
answers
5k
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
1
answer
440
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
0
answers
446
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 ...
2
votes
1
answer
3k
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
1
answer
709
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
0
answers
302
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
1
answer
960
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
1
answer
1k
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
1
answer
150
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
2
answers
145
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 ...