Questions tagged [inode]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
20 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
1answer
33 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 ...
0
votes
0answers
29 views

Hard disk becomes read only

About a year ago i bought WD30EZRZ-00Z5HB0 hard drive. But in november it suddenly became read only: 12:37:25 j0 wormball@wormball-desktop:~/dima$ mkdir blast mkdir: cannot create directory 'blast': ...
0
votes
0answers
18 views

How to increase the Inodes on HFS+ file system with newfs_hfs command?

I can't figure out which option (or combination of options) will increase the number of inodes that are visible in the "df" utility. Thanks in advance for your help.
1
vote
1answer
696 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
1answer
58 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 ...
0
votes
2answers
646 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
148 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
35 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
283 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
244 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
4k 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
890 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
146 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
169 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
298 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
6k 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
91 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
793 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
59 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
5k 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 ...
7
votes
1answer
12k 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
153 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
244 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
256 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
82 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
1answer
40 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
24k 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
266 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
874 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
278 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
342 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
1answer
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
1answer
549 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
208 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
779 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
916 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
144 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 ...
19
votes
5answers
33k 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
547 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
20k 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
257 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
152 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 ...