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

learn more… | top users | synonyms (2)

2
votes
2answers
7k views

Cannot access disk, partition table broken

I was so dumb, to turn of the power on my Readynas Ultra 4 when it was installing the disk (3TB WD Green), I had no time to wait for it as I was going to return it (It was to damn noisy) The disk ...
2
votes
1answer
17 views

Can I safely run badblocks in read-only mode on a mounted drive?

I have /dev/sda mounted on /, as the root partition. Can I safely run badblocks in read-only mode on this device? Will it show false positives/negatives because it's mounted?
0
votes
0answers
6 views

How do I add a UBIFS support?

Nobody can answer me on any android forum, so I decided to ask here. My phone uses the UBI filesystem, but TWRP recovery only supports ext. How do I add support for the UBI filesystem? There is a ...
-5
votes
1answer
142 views

Why is the /opt directory rarely used? [duplicate]

In the Linux FHS, it says all third party packages should use /opt. However, I didn't see anybody is using /opt. Also, /opt is not in $PATH in anyway, so I think the OS is not intended to let us use /...
29
votes
4answers
3k views

Is slash (/) part of the name of Linux root directory?

Is the slash (/) really part of the name of the Linux root directory? Or is it just a symbol for it? What about /etc and so on?
0
votes
0answers
41 views

What may go wrong while copying file? [on hold]

I am writing a library as part of learning a new language which copies a file. The task is to copy the file content as using the nodejs Stream API. I am interested in knowing what can happen wrong ...
0
votes
1answer
14 views

FreeBSD nullfs and strange file size

How to determine a correct file size? It cannot be 680G. I suppose it's somehow related to some nullfs related feature # ls -lah system.log -rw-r----- 1 web vuser 680G 21 Jul 22:59 system.log # ...
5
votes
0answers
24 views

How does ionice work with multiple drives?

I understand how ionice can help you when you have multiple processes requesting access to the same disk resources, but how does it work when you have multiple disks? For example, you have one rsync ...
2
votes
1answer
976 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 cannot copy anything there ('Paste' and 'create Folder' are just greyed out). Does anyone have ideas what ...
6
votes
5answers
3k views

How to check if the ISO was written to my USB stick without errors?

I followed these DebianEeePC HowTo InstallUsingStandardInstaller instructions at the Debian Wiki, to write a Debian ISO to my USB. dd if=debian-*-netinst.iso of=/dev/sdX Using sha1sum, I can check ...
0
votes
1answer
15 views

MacOS X: Missing File & Data Dictionary

After I cancelled syncronization between my Mac and MEGA, my local target dictionary became empty. However, after I used du to acquire the disk status, I found my data are moved to ./.debris/2016-07-...
0
votes
1answer
904 views

Why is curl failing write to body?

I am trying to install pathogen.vim plugin with following command: mkdir -p ~/.vim/autoload ~/.vim/bundle && \ curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim But it is ...
1
vote
1answer
61 views

Should I use hardlinks for my “sites-enabled” folder instead of softlinks?

Every article I find about web servers suggest creating a sites-available and sites-enabled directory within apache/nginx/etc. Then, using symbolic (soft) links, create a link from the available to ...
1
vote
1answer
22 views

How can I mount /usr on another partition but use a folder called /usr on that partition instead of using / as /usr?

Somewhat along the lines of this question, How to mount multiple directories on the same partition? but my situation is different. I have a 2 small partitions that I'm using for two variants of ...
10
votes
4answers
1k views

Does POSIX limit the number of directories in the os root?

I'm trying to learn the POSIX standard. When using Unix, I have /bin, /etc, /dev, /media, and usually /opt, but is that standardized or up to your spec implementation? Could there be many directories ...
1
vote
1answer
42 views

How to explain this? Superblock corrupt in SSD

I got a file system corruption from a sudden power loss. During boot, it reported following error. error: unknown filesystem. Entering rescue mode... grub rescue> _" The board is an Intel ...
1
vote
2answers
17k views

Why is my file system mounted as read-only?

I've put together a small system with busybox, a Linux kernel, and a small file system, putting stuff in as it seemed necessary -- I don't know if I've been learning much from this, but I started out ...
71
votes
6answers
62k views

What is a Superblock, Inode, Dentry and a File?

From the article Anatomy of the Linux file system by M. Tim Jones, I read that Linux views all the file systems from the perspective of a common set of objects and these objects are superblock, inode, ...
1
vote
3answers
50 views

How can I identify which directories are on a different file system?

Imagine I am in a directory (e.g., /mnt) where some of the directories are mountpoints of another file system, and other directories are legitimate directories on the same filesystem. Can I issue a ...
0
votes
0answers
28 views

SUID bit does not work even though I put the binary on a non-nosuid mount [duplicate]

I am trying to test out how suid would work. I have this for my binary: #include <stdlib.h> #include <stdio.h> int main(int argc, char *argv[]){ system("/bin/sh -c whoami"); ...
3
votes
2answers
2k 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 ...
1
vote
0answers
33 views

Recover overwritten CCTV footage from hard drive

I am trying to recover deleted footage from a DVR. I pulled the hdd(Toshiba DT01ABA100v) from the DVR to look at the data in the drive and run carving tools(foremost and scalpel). My problem is that I ...
3
votes
2answers
6k views

What are /dev, /run and /run/shm and can I resize them?

So, I recently created a 15GB partition for Linux Mint 14. I've been working on it for a while, and I got a Low Disk Space notification. I ran df -h and this is what I'm getting: Filesystem Size ...
1
vote
1answer
75 views

Limit a directory to have only 1 file?

Is there a way to restrict a directory to have only 1 file? I created a specific directory for a user and I would like to limit that directory to have only 1 file. If that user wants to store new ...
0
votes
0answers
12 views

Can't access filesystem and desktop in Fedora 23

The following problem happened on my laptop today. For some reason, desktop does not appear any of the icons that it had, I can't access my system settings or the file system, however I can run the ...
7
votes
4answers
3k views

Why is writing SLOW on raw device, and FAST on filesystem (USB key)?

I have a USB key (PQI U822V-Speedy 32G) 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 ...
1
vote
2answers
1k views

Check the filesystem format with BusyBox (stat -f and df -T do not work)

I am using latest BusyBox v1.22.1 in my target. I want to check the filesystem type using stat -f or df -T but busybox doesn't support such commands. busybox help shows stat command as supported but ...
1
vote
0answers
31 views

Surprisingly big overhead when creating small ubifs volume

On an mtd partition with 39 erase blocks (= 4.9 MiB), I tried to format a ubifs. The resulting file system has free space of 2.2M uncompressed data when reserved blocks are reduced to the minimum ...
3
votes
1answer
39 views

Share an ext4 filesystem between two RHEL servers, but only one will mount at a time

I have two RHEL 6 servers which share a physical connection to a SAN storage (i.e., so both servers can see this /dev/sdb when running fdisk -l). My goal is not to have both servers access the ext4 ...
1
vote
1answer
23 views

overwrite ext4 partition data without previous erase

I have an ext4 partition containing rootfs. I need to implement a system update (uboot) which just extracts and writes the new rootfs image. This probably works like dd-ing the image into MMC flash ...
1
vote
1answer
29 views

Error assembling mdadm RAID1 after resizing underlying partitions

I want to shrink a mdadm RAID1 from 2TB to 100GB. This is how the setup looks like before shrinking. root@rescue ~ # lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 3.7T 0 ...
3
votes
1answer
1k views

Can /mnt/hgfs/'shared folder' be used as apache root?

I have an Ubuntu Server (12.04) running on my development machine. It is in a VM. I have succeeded with the task of setting up Apache2, MySQL, and PHP. I can access the server from my host browser ...
1
vote
0answers
50 views

BTRFS send only new files without deleting anything on remote

I'm looking into replacing rsync with BTRFS tools, but I'm not sure if what I want to do is even possible. I have a small local volume and a large remote volume used for archiving. Files will be ...
0
votes
1answer
23 views

After modifing the source code of existing file system (such as ext2), how to rebuild and install it?

I am now learning the source code of ext2. I think the best way to understand it is to play with it, but I never built a Linux kernel before, so I was wondering if somebody could give me some detailed ...
0
votes
1answer
24 views

realization about performance filesystems and Inode

I have a hard drive when i execute "mkfs.ext3 /dev/sdb" filesystem makes if i have a file and it takes full of capacity of that hard drive 1-only one Inode i use for this file? 2-other ...
2
votes
2answers
41 views

Properly set execute bit based on file type?

I'm trying to cleanup permissions on an Apache web server. I'm finding lots of files with the execute bit that don't customarily have it (or should not have it): $ sudo find /var/www/html -executable ...
12
votes
5answers
15k views

Fix EXT4-fs bad geometry (block count exceeds size of device)

I have a micro SD card which has a FAT32 partition and an EXT4 partition. The EXT4 partition will no longer mount. dmesg shows the following error: EXT4-fs (sdb2): bad geometry: block count ...
11
votes
3answers
12k views

Why does fstab use UUID instead of the actual file system name?

For example, this is the first line of my /etc/fstab: UUID=050e1e34-39e6-4072-a03e-ae0bf90ba13a / ext4 errors=remount-ro 0 1 And here's the output of df -h command (reporting free ...
2
votes
1answer
15 views

can format and partition sd card but cannot see device entries [closed]

I have a microSD card (4 GB) that I can format with dd and fdisk. I have created two partitions and when writing the partition table. I get a warning about ioctl advising to run partprobe. Running ...
0
votes
0answers
18 views

Fast file access for many threads doing read / write operations?

I have a disk with a lot of data on it and I want to write some code such that thousands of threads can operate on the data. Each thread would work on its own individual file. This will speed up ...
26
votes
9answers
2k views

How to tell what type of filesystem you're on?

Is there a command to tell what type of filesystem you're using?
29
votes
3answers
4k views

Way to instantly fill up/use up lots of disk space?

On a Linux VM I would like to TEST the NAGIOS monitoring more deeply than just switching off the VM or disconnecting the virtual NIC; I would like to test or "enforce a disk space alarm" through ...
1
vote
1answer
68 views

Understanding file systems and mount points as seen from df and Nautilus

Forgive me I am a novice of Linux. I am trying to understand Linux file system. Let's say we run df command to show something about file system in my CentOS. I can see a LVM /dev/mapper/...
1
vote
0answers
29 views

Encrypt directory on Linux

I need to create an encrypted directory (to be then filled with files and subdirectories) in a Linux ext4 filesystem, accessible to just one user. It should be: visible (just the root) from the non-...
5
votes
1answer
1k views

What are the different ways to set file permissions etc on gnu/linux

On Unix, a long time back, I learned about chmod: the traditional way to set permissions, on Unix (and to allow programs to gain privileges, using setuid, setgid). I have recently discovered some ...
1
vote
0answers
12 views

Mirror Folder with root Permissions

i am using CRYFS (an encrypted filesystem) to store some of my files in an cloud server. If i mount the encrypted filesystem, a folder is created with the decrypted files in it. The Problem is that ...
1
vote
0answers
27 views

expanding /var/lib [closed]

There are many requests to increase /var and /var/lib by the app teams. I would like to know what are good practices to increase filesystems. I know these fs are under rootvg, it is not a good idea to ...
0
votes
0answers
16 views

What is the maximum file size for NFS4?

I googled and it says it's a 64-bit file system; does this mean I can have up to 2^63 bits in a file? In general, are there variations between maximum file sizes in 64-bit file systems? Also what are ...
0
votes
0answers
19 views

What exactly is the metadata in a journaling filesystem like ext3 or ext4? [duplicate]

I was going through this link on filesystem journaling, but nowhere it is mentioned what exactly is a metadata. In some other links, it vaguely says it is data about files and directories. Could ...
38
votes
3answers
5k views

Is an ISO image file a filesystem in its own right?

I am trying to understand what the relationship a xxx.iso file has to the other aspects of a block device, e.g. partitions and a file system. It's common for people to describe accessing or making a ....