A filesystem is a method of storing and organizing computer files and their data.

learn more… | top users | synonyms (2)

0
votes
1answer
22 views

temporarily disabling one's own filesystem write permission

I can't believe there is no simple solution to this (because it seems potentially a very useful feature to me), but so far I couldn't find any. I'd like to be able to (temporarily) turn off my own ...
4
votes
1answer
85 views

How to reset password on an encrypted fs?

I've got a laptop which I haven't used since the last summer vacation: I did put Debian 7 on it and used Debian's feature to fully encrypt the disk, besides a tiny bootloader (or a tiny partition) I ...
1
vote
1answer
32 views

files that do not excist, prevent me from deleting them, corrupted filesystem

Well... It's about on an OS X system (hfs+), but that's unix after all to. :p system has become unbootable, due to a filesystem error... fsck.hfsplus fails because .... ... ** Checking ...
1
vote
1answer
29 views

Starting my own application at the startup

I am working on zc702 board having ARM Cortex A 9 processor. I have a binary that I got after cross-compilation for ARM (LED blinking). Now I want that this file should execute as soon as the the ...
3
votes
0answers
22 views

Optimal rootflags for rootfs for ext4 file system running on USB thumdrive [closed]

I have made myself a bootable USB Debian 7 thumbdrive, using debootstrap. It boots nicely - but occasionally freezes for a bit. I can see the load average is much higher than the running tasks should ...
1
vote
2answers
36 views

How can I find out about “rootfs”

Running Debian 7; when I execute a cat /etc/mtab I can see all sorts of useful information about the filesystems that are mounted, such as the filesystem and options used to mount then; however ...
0
votes
1answer
16 views

What is the encryption function in Encfs?

I'm a newbie at Encfs. After I read a paper about Encfs, I figured out there is a Encryption layer in Encfs. So I tried to find exact encryption function. but I couldn't find that because there are ...
1
vote
0answers
16 views

How is default readahead value determined

I have two different devices running XFS and the default readahead value set differs between the two disks. Why is that ? How is the default size computed ? Is it device dependent ? I might also add ...
4
votes
1answer
31 views

Backup of a ubi file system with dd?

A have a root file system (file system - image containinf folder structure and content) on a flash drive. The flash drive uses UBI as the underlying file system file system - the way the data blocks ...
3
votes
2answers
25 views

Moving unallocated space from Extended partition to create a Primary partition

This is my partition structure : I want to create another primary partition from that unallocated space. If I shrink sda2 to a size less than what I needed for to create another primary partition, ...
3
votes
3answers
84 views

Speed up copying 1000000 small files

I have 1000000 4-20 kb files in a dir. I need to copy that dir. But it seems I have to do a seek for each files so this takes quite a while. Is there a way in which I can speed this up? I am ...
1
vote
0answers
26 views

Replacing default initramfs with my own

I followed this article to develop my own sample intramfs.cpio Now I have to put this in my kernel and compile. The procedure that I follw for petlinux is that I first run petalinux-config (and ...
1
vote
0answers
8 views

The libblkid library: any way to use it with blocks in the core memory?

I know how to use the libblkid library to analyze existing block devices. I'd like to use it to analyze a memory extent before I write it to the block device. Something like that: char block[4096]; ...
2
votes
1answer
26 views

The libblkid library: what is the 'blkid_superblocks_get_name' function for?

I'm trying to use the libblkid library to analyze various filesystems on a block device from a C/C++ program, and it works well. However I'm confused with the blkid_superblocks_get_name function from ...
8
votes
8answers
806 views

Do I require a file system when I do not want to store any data

I asked a question here Is it mandatory to have a file system One of the comments is : how a system without file system would work on linux as even a printer or ethernet card is considered as ...
1
vote
1answer
47 views

Best parameters for ext4 filesystem to handle virtualbox disk images

I have ext4 partition, which holds disk image files VirtualBox works with. They all are fixed-size images (i.e. files never change their size). They are defragmented as much as possible (with ...
1
vote
1answer
80 views

File has bytes - appears to be empty

I'm having the following problem: Some text files (also some binary files) on my system are listed with the correct file size but when I open them, they appear empty. >ls -la -rw-rw-r-- 1 user ...
0
votes
0answers
39 views

No filesystem could mount root, tried: jffs2

CPU: ARM Cortex A-9 This is the kernel command line that I appears in configuration menu root=mtd:jffs2 rw rootfstype=jffs2 console=ttyps0,115200 I have put three files in flash: BOOT.BIN in mtd0 ...
2
votes
4answers
114 views

Why is writing so slow on raw device, and so fast on filesystem (USB key)?

I have a USB key that I am trying to benchmark quick'n'dirty on Linux. I'm testing write bandwith. dd on raw partition I created a partition starting at sector 2048, then did a 4 GB sequential ...
0
votes
3answers
27 views

Verify semantic integrity of filesystem

I just started up my linux box to find that one of my filesystem's had errors: I had to login as root to run fsck and hit y repeatedly. There were a lot of errors. So many that I used silly putty and ...
13
votes
2answers
388 views

Is that possible to integrate zip and tar.gz files as directory into the file system

I wonder if there is a way to integrate (it's a bit different from mounting, I think) compressed files as directories into the file system? E.g., one could download a compressed-file.tar.gz to his ...
3
votes
1answer
23 views

ext4 inode size, shown by dumpe2fs

Manpage about mke2fs says "mke2fs creates 256-byte inodes by default". I've formatted my small (320MB) test partition with command: sudo mkfs -t ext4 /dev/sdc1 The defaults for the mke2fs are ...
0
votes
3answers
43 views

Most accurate disk usage report? [duplicate]

Since disk space is allocated in blocks, is it a more accurate representation of the actual space consumed by a directory to report it in blocks vs bytes? If a file of size 1,025 bytes resides on a ...
5
votes
2answers
96 views

ext3 Filesystem shows full to most apps, but only 77% full to DF

Var is showing as full to many apps like Nagios, Puppet, and the LVM tools (pvs, vgs, etc) df -h output 6.0G 4.3G 1.4G 77% /var vgs output /var/lock/lvm/V_rootvg:aux: open failed: No space ...
1
vote
1answer
51 views

Ext2 block structure: size of reserved GDT Blocks

In every publication I found about ext2, the structure of a block group is defined as following: Super Block: 1 block Group Descriptor: N blocks Data Bitmap: 1 block Inode Bitmap: 1 block Inode ...
3
votes
2answers
31 views

Monitor when read/write on metadata or mmaped files hit the disk

On a server hosting a wide range of websites, I often see IO becoming a bottleneck without being able to identify the processes responsible of IO operations with tools such as iotop, iostat or sar. I ...
2
votes
5answers
217 views

Get space details without drive names

if there a way to get drives space details without drive names. E.g., the output of df -h Filesystem Size Used Avail Use% Mounted on /dev/sda3 20G 15G 4.2G 78% / ...
5
votes
2answers
459 views

what does it mean by cold cache and warm cache concept?

I read a paper and it used terms “cold cache” and “warm cache”. What does it mean by cold cache and warm cache concept? I visit this but I need something more.
21
votes
5answers
2k views

How to tell which file is original if hard link is created

For example, I have a file myold_file. Then I use ln to create a hard link as mylink: ln myold_file mylink Then, even by using ls -a, I cannot tell which is the old one. Is there anyway to tell?
2
votes
1answer
38 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 ...
0
votes
1answer
41 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
16 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
47 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 ...
47
votes
3answers
2k 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
137 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
156 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
22 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 ...
2
votes
1answer
28 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
31 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
119 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
164 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
45 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 ...
3
votes
2answers
129 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 ...
1
vote
0answers
26 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
31 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
113 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> ...
9
votes
2answers
155 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
31 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
52 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 ...
37
votes
1answer
1k 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 ...