A filesystem is a way to organize and store computer files with their data.

learn more… | top users | synonyms (2)

2
votes
1answer
105 views

Why store program code in /var/cache?

I have inherited a Java / Tomcat stack, running on Ubuntu. It has crashed and I am trying to restart it. The program code seems to be using a config file which I have found on the file system. The ...
1
vote
1answer
114 views

Unable to format a CF card

I have a compact flash card formatted to FAT16. I am unable to format it to any other file system. I used GParted to format the card to ext2 for example, after I do that, the file system becomes ...
0
votes
0answers
37 views

Fedora Update and /var space problems

I have just installed Fedora 20 (KDE) and the system informed me that I should get updates. I checked everything and accepted to install additional ones. It got to a certain point (around 10%) and it ...
4
votes
1answer
88 views

“hard-linking” parts of a big file in which only a small part has changed

I use rsync to make backups: rsync -a --link-dest=PATHTO/$PREVIOUSBACKUP $SOURCE $CURRENTBACKUP This way I save space due to using hard links. The problem appears when I need to backup a huge file ...
55
votes
3answers
5k views

What happens when I run the command cat /proc/cpuinfo?

What happens when I write cat /proc/cpuinfo. Is that a named pipe (or something else) to the OS which reads the CPU info on the fly and generate that text each time I call it?
3
votes
2answers
412 views

dumpe2fs - lifetime writes - what is it

For example, if I run: sudo dumpe2fs /dev/sda1 I get detailed information about the partition. I'm confused about this part, Lifetime writes, returns the following for my boot partition: Lifetime ...
3
votes
3answers
266 views

Why do ls and hexdump disagree about my file size?

I have a file I created (in vim), for testing purposes (testing UTF-8 output in an SSH client). Odd things, however, are happening to this file. I wondered what bytes were in the file, so I used ...
0
votes
1answer
49 views

Specify a fallback file for a broken symbolic link

I want to create a symlink, foo.txt, needed at system startup, to another file, bar.txt on a different mount point. The mounted partitions are different physical drives as well. ln -s /baz/bar.txt ...
3
votes
1answer
40 views

link count of deleted files

I am reading in man lsof that +L enables the listing of file link counts. A specification of the form "+L1" will select open files that have been unlinked. I don't understand why deleted files ...
2
votes
1answer
205 views

How can I get write access to my usb drives?

I have trouble writing to external drives. They are monuted automatically in Nautilus, but I can not copy anything there ('Paste' and 'create Folder' are just greyed out). Does Anyone have ideas what ...
3
votes
3answers
191 views

Using a unix filesystem on an external hard drive?

After repeated trouble with my NTFS formatted backup/media hard drive (undeletable files, etc.), I decided to reformat it with a unix file system (ext4 preferred). I do not intend to use it from a ...
2
votes
2answers
295 views

Merging /usr/bin and /usr/sbin into /bin (GNU/Linux)

I've read quite a number of discussions about people wanting to merge /bin and /sbin into /usr/bin. The same cannot be said for doing it the other way around. Is there any technical reason why one ...
2
votes
1answer
81 views

How to link the unlinked files?

When you rm a file it will call unlink(), and unlink() will remove the file from the Directory entry and its inode is freed. But, the actual content of the file is still in the disk. Is there any way ...
4
votes
2answers
253 views

File system that never breaks (data loss acceptable)

There're several existing topics revolving around this issue, but what I seek is slightly different. I have an sd card on an embedded Linux and it suffers from power loss. I might be able to modify ...
0
votes
1answer
7k views

Preparing USB drive for Kali Linux

I'm new to Kali Linux. I want to install it on my PC which is already running windows 8. I know how to dual boot a PC. I'll be booting Linux from a USB device, but while creating a bootable USB ...
1
vote
0answers
60 views

Citrix XenServer, all packages appear to be 32bit

I'm hoping to use Citrix XenServer for a group of 4/5 machines. One of these machines has 18TB of storage (after RAID5 is taken into account). I've installed XenServer and mkfs.ext3 is the only ...
1
vote
1answer
73 views

Filesystem unmounted after weekend

I have a problem with an AIX server what I manage. I had some filesystem created to store the structure of an Oracle instance. But after the weekend scheduled reboot the filesystems are unmounted when ...
3
votes
1answer
338 views

rootfs.jffs2 files system won't fit in mtd3

I have a files system that I am trying to put in flash memory mtd3 partition. I first boot using uboot and then do run sdboot to boot using SD card as shown below: U-Boot-PetaLinux> ...
11
votes
3answers
738 views

On system memory… specifically the difference between `tmpfs,` `shm,` and `hugepages…`

I've been curious lately about the various Linux kernel memory based filesystems. Note: As far as I'm concerned, the questions below should be considered more or less optional when compared with a ...
1
vote
0answers
139 views

How to use fslint (in particular findnl) on the command line to actually mimic the behavior of the fslint-gui?

So I am trying the fslint tools. However, the help included in those tools as well as the man page don't indicate that the cleanup actions offered by the fslint-gui are also available through fslint ...
3
votes
1answer
82 views

ext4, why 70k file takes 88 blocks

[root@xx]# cat -n create_extents.sh 1 #!/bin/bash 2 3 if [ $# -ne 2 ] 4 then 5 echo "$0 [filename] [size in kb]" 6 exit 1 7 fi 8 9 ...
44
votes
1answer
2k views

Why are there so many different ways to measure disk usage?

When I sum up the sizes of my files, I get one figure. If I run du, I get another figure. If I run du on all the files on my partition, it doesn't match what df claims is used. Why are there so many ...
0
votes
0answers
38 views

How not to boot from RAMDISK?

My all files and folders get disappeared after a system reboot. I am running petalinux on zynq chip by xilinx. I got some hint why is this happening. Actually my entire system is booting from RAM. ...
4
votes
3answers
429 views

Hidden Files&Directories in user's home directory [closed]

I am in my user's home directory, I do: ls -a Then it shows me large number of hidden files and directories in my user's directory. Which of them I am allowed to remove? Which ones are necessary ...
1
vote
0answers
14 views

What forms of discretionary access control are there?

I know it's kind of an unguided question, but just so I have a broader sense of how things are I was interested in getting a reasonably complete list of discretionary access controls available on Unix ...
2
votes
1answer
579 views

jdb2 keeps Hard Disk busy all the time

My system became too slow last few days. The hard disk indicator is on all the time. To discover which process is keeping the disk busy i run this command: # while true; do date; ps auxf | awk ...
0
votes
0answers
627 views

CentOS 6.5 File system permission?

I am wondering, i have installed CentOS 6.5 Live-DVD in my company PC. After all the LAMP installation is done, am having a trouble with the File System permission settings. In the File system ...
3
votes
1answer
217 views

Finding unallocated disk space (partitioning)

Another (hobbiest) sys admin on they same system as me, pointed out that there is 30Gb of unallocated space on the system. I have need of that space to create a new partition. (I'm going to make a ...
2
votes
4answers
843 views

Bash script to output path to USB flash memory stick

How would I return (output) the path to any USB flash memory stick(s) connected to the local computer using bash (Ubuntu and Linux Mint)? Background: I'm providing users with an automated backup ...
0
votes
2answers
51 views

Are there any tools to recover files from a previously formatted WinNT drive?

I scratched the previous Windows NT filesystem, now I'm running Ubuntu. I've created the whole disk as EXT4. Are there any tools to locate and save some previous Windows files from the original ...
8
votes
4answers
155 views

Virtual write-only file system for storing files in archive

I have an embarrassingly parallel process that creates a huge amount of nearly (but not completely) identical files. Is there a way to archive the files "on the fly", so that the data does not consume ...
9
votes
1answer
383 views

What does it mean to “quiesce” a filesystem?

Actually, I don't care whether you talk about filesystems or any other thing that might be Quiesce'd in a software setting. I'm just looking for some more clarification about what this bit of ...
0
votes
0answers
27 views

What do the number in the file metadata mean [duplicate]

I typed ls -l in the terminal to get the file metadata of all files in the current folder What do the circled number : 1 & 2 represent in regard to the file metadata ???
6
votes
1answer
769 views

preserving extended attributes with cp/rsync

When copying with cp, the extended attributes are not preserved, even with explicit cp -a --preserve=all /source /dest or cp -a --preserve=xattr /source /dest The same is with rsync, i.e. ...
-8
votes
2answers
92 views

File System in Linux [closed]

Why we need a filesystem. Can we use OS without file system because our kernel has already in build module. For example if we doesn't need /lib/modules directory .So why we need file system
3
votes
1answer
48 views

understanding the “chunk size” in context of RAID

Am I correct that chunk size in context of RAID is essentially the same thing as cluster in file-system context? In other words, chunk size is the smallest unit of data which can be written to a ...
0
votes
4answers
122 views

What's the advantage of mounting a file system in the same file system

RE-EDIT: We can usually see mounting a file system to a mountpoint, like: /usr/bin/truncate -s 128M /tmp/foo chmod 0700 /tmp/foo mke2fs -t ext4 -m 1 -F /tmp/foo mount -t ext4 -o loop /tmp/foo /mnt ...
4
votes
2answers
3k views

HDD no longer able to mount after editing /etc/fstab

I have an SSD which holds / and my home directory, but I also have a 1TB HDD with most of my music on. I tried to edit /etc/fstab to automatically mount the HDD to save me time. I am running Kubuntu. ...
2
votes
1answer
97 views

How use tune2fs in with dd?

In this tutorial is written To regain unique UUIDs, use tune2fs /dev/sdbX -U random on every partition. Ok, but how can I use it with this command? dd if=/dev/sda of=/dev/sdb bs=4096 ...
18
votes
2answers
1k views

Where is filename stored on a filesystem?

Where is filename stored on a filesystem? It's not in inode or with the actual file content since we have hard link that two filenames can point to the same inode.
1
vote
1answer
106 views

File monitoring to pre-empt hacker

We have a hacker occasionally attempting to hack a site, and so far unsuccessful, but I would like a way to determine if the site has been compromised (i.e., files edited). The type of attacks are LFI ...
13
votes
4answers
7k views

Find where inodes are being used

So I received a warning from our monitoring system on one of our boxes that the number of free inodes on a filesystem was getting low. df -i output shows this: Filesystem Inodes IUsed ...
2
votes
2answers
128 views

How was ntfs-3g created?

Since NTFS is a proprietary file system created by Microsoft, how did the ntfs-3g developers manage to create an open source version of the NTFS drivers without referring to the NTFS source code? Or ...
1
vote
0answers
110 views

How can i determine the block size of an vxfs filesystem?

I am looking for a way to see what the current blocksize of an filesystem is. Normaly i would use tune2fs -l | grep "Block size", but that doesn't work on vxfs. I googled a bit and found fstyp -v ...
3
votes
3answers
153 views

Is it mandatory to have a file system and MMU in Linux? [closed]

Suppose I do not need a filesystem and I have only applications where data reloading may not be required - so MMU may be redundant. Can I remove these two items from Linux, and boot the OS ...
0
votes
1answer
108 views

Recovering truncated file

I'm in a peculiar situation. While editing a Perl program I accidentally truncated the file to zero length (using an Emacs lisp code I was developing). I need to recover that program... How do I that ...
3
votes
2answers
61 views

Difference between running mke2fs and setting FS type in cfdisk?

When I run cfdisk (or fdisk) to partition a storage device, there's a point where I can specify the file system type. Does this do anything with respect to the actual file system? Suppose I want to ...
2
votes
3answers
175 views

Filesystem surprisingly large

I'm running a dual booted Windows 7 with Linux Mint right now and I just checked my filesystem size and it jumped from quite small (about 30 GB) to 200 GB recently (no clue what triggered this, I just ...
0
votes
1answer
44 views

Copy a file that is in the middle of being written

I have a program that writes to the standard output. It does not write all info at once, it does computation and then writes new bits. The output of the program is being stored in a file. $ ...
0
votes
1answer
51 views

Partitionning disk for installation, what size should I give to filesystem? [closed]

I am planning to install debian on dual boot, I have 250GB free for that, but I d prefer answer for any size. I want to separate filesystem on different partition (/, /boot, /root, /home, /var), but ...