0
votes
1answer
65 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?
0
votes
0answers
83 views

FAT filesystem error obtained many times in console

I have an embedded board which runs linux, i have partitioned file system and additionally. I have also added a partition(mtdblock5) such that whenever I attach a pendrive to the embedded board, it ...
1
vote
1answer
45 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 ...
0
votes
1answer
108 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
6k 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 ...
0
votes
1answer
299 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
112 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 ...
1
vote
1answer
511 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: ...
0
votes
2answers
137 views

Is it possible to create a file and a hardlink to it without initializing the data?

I want to create a file of 2GB, but I don't care about the contents of it. I currently use dd with /dev/zero, but this is fairly slow. Is it possible to create a file and a hardlink to it, without ...
3
votes
3answers
819 views

Linux filesystem with inodes close on the disk

I'd like to make the ls -laR /media/myfs on Linux as fast as possible. I'll have 1 million files on the filesystem, 2TB of total file size, and some directories containing as much as 10000 files. ...
5
votes
3answers
2k views

tail -f not tracking file changes

I was recently looking into using tail -f to monitor some text files like so: tail -f /var/sometext However, when I did some testing, it doesn't seem to work. What I did was I created a new file and ...
1
vote
3answers
2k views

Access file by its id and change file attributes

Just like every file also directories have file id. You can see them by typing ls -i How do I view file content by its id? How do I change directory attribute to file (remove D) and vice versa!
1
vote
1answer
39 views

effect on inode while resizing the LV

In Linux when we resize the partition with the logical volume(LV), how is the inode adjusted?
2
votes
4answers
6k views

Remove a file on linux using the inode number

If you create a file on UNIX/linux with special chars, like touch \"la*, you can't remove it with rm "la*. You have to use the inode number(you can if you add the \ before the name, I know, but you'd ...
5
votes
2answers
6k views

How to calculate proper amount of inode/block sizes for a linux filesystem

I have an old reiser filesystem which I'm going to convert to Ext3. The problem I have is to determine the proper block- and inode-sizes for this partition. The partition is 44 GB large and has to ...
0
votes
1answer
2k views

how can I determine how many inodes a directory uses?

We're running into an inode limit on our fileserver and I'm doing an experiment to reduce the number of inodes. How can I find out how many inodes a directory uses? I read that the linux kernel ...