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

learn more… | top users | synonyms (2)

1
vote
1answer
31 views

Delete the first n bytes of a file in O(n) time

I've been browsing around looking for a solution for a personal project (Read: a coding experiment), but nothing quite seems to fit. To be honest, I don't even know if it's possible. Now, there's ...
0
votes
0answers
15 views

How does rootfs.ext3 image file work?

I have a FriendlyARM mini6410 device and I have just hardly make it boot from sdcard. Now my sdcard uses "u-boot for mini" (u-boot.bin), "linux2.6.38 kernel" (zImage) and "rootfs qtopia fs" ...
2
votes
1answer
20 views

Is there a simple way to move btrfs subvolumes to a different btrfs filesystem?

I have two separate btrfs filesystems which I would like to consolidate. The subvolume structure looks like this: / filesystemA |- subvolume1 |- subvolume2 |- ... |- subvolumeN / filesystemB |- ...
0
votes
1answer
14 views

Create permissions for group to write and files created by owner are only writeable by owner

I have created a folder, /hello: it has the following permissions: Owner = rwx Group = rwx Others = r and the folder is owned by john and belongs to the group sales. I have created another user ...
0
votes
0answers
17 views

filesystem not detected while booting after regular updating

I am using RHEL7. After a latest regular update, my computer not booting. I noticed that, during updating, the kernel also got updated. All my attempt with previous kernel version,which is listed in ...
4
votes
2answers
38 views

What is the difference in file size between Symbolic and Hard links?

I plan to keep all my movies in one giant folder, and then create other folders for the genres, while creating links for all the movies in the genre folder. This way I can organize movies into ...
0
votes
1answer
14 views

OracleSolaris 11.2 - delete a directory which is mount point

I removed a user from the syste, with userdel -r user however it still keeps its homedirectory /export/home/user, although the contents has been removed. The directory is mounted, but I don't know ...
1
vote
1answer
20 views

Performance of `tar -xf` (block size related)

I'm recently working on optimizing the performance of tar -xf, i.e. untar a file. I notice that under default settings, tar -xf calls writes to write 10 KiB output at a time in chunks. However, this ...
0
votes
1answer
22 views

How To Induce RO To Linux FS

I've read in several places that during I/O error to system log file most linux distributions go to read only mode. Followed by how to recover from it. This is all fine, but I'm looking for a way to ...
0
votes
0answers
64 views

Completely hidden directory on ACFS imported via NFS

how is this possible: [root@oda001-d0 .ACFS]# pwd /OVS/Repositories/repo1/.ACFS [root@oda001-d0 .ACFS]# ls -la .. total 148 drwxr-xr-x 8 root root 4096 Jun 23 11:45 . drwxr-xr-x 5 root root 4096 ...
0
votes
2answers
30 views

Where should startup scripts for a specific user be installed?

I have one script that will run when a specific user logs in. Where should this script and its assets be placed? I was planning to put it in /usr or /bin or /var, but I was wondering if there's a ...
1
vote
2answers
55 views

What are the “root”, “home” and “swap” block devices and how do I remove them?

Anyone know how to remove these block devices? I want everything in one partition.
0
votes
1answer
28 views

Can I find the filesystem a file is going to be installed to? [duplicate]

I have a list of files along with their filepaths, that I'm planning to copy into a server. Is there a way, I could figure out before I copy, which filesystem it actually would go into? assuming the ...
0
votes
0answers
13 views

Ext3 Journaling Question on inode and disk layout

I was going through Journaling and JBD and wanted to ask you a very basic question for which I was not getting an answer: 1.Why Journal Inode number comes as 8 when we do ./dumpe2fs? 2.So far my ...
4
votes
2answers
36 views

btrfs filesystem end offset (image size)

I have a btrfs filesystem of about 7G in a 10G image file img.btrfs (I shrank it using btrfs fi resize -3G /mnt). How can I find the total size (end byte offset) of the filesystem, so that I can ...
0
votes
0answers
9 views

Load root partition on embedded linux system

I'm using a zynq-7000 SoC, running a custom petalinux build, which is on an SD card. The boot partition contains a boot.bin (the bootloaders etc) and an image (containing the kernel). The root ...
1
vote
1answer
27 views

How to trap an event when a file with a specific content (given by e.g. checksum) was created on the local file system?

I want to implement sort of trip-wire security mechanism, that tracks in real time events when user writes a file with a specific content on hard drive of his workstation (which will be managed by ...
1
vote
1answer
33 views

Download small ZFS formatted image

I don't run Linux myself, so I'm the odd one out here, but I have hopelessly been searching for a small image file that contains ZFS (e.g. ZFS formatted media). I like to implement ZFS recognition in ...
1
vote
1answer
29 views

How to find directories whose size is greater than 4K?

When you have many files in one directory, the size of the directory file grows because it needs to store more entries. So, at some point it could look like this: # ls -ldh /var/log drwxr-xr-x 15 ...
3
votes
3answers
55 views

How to format a partition inside of an img file?

I created an img file via the following command: dd if=/dev/zero bs=2M count=200 > binary.img It's just a file with zeroes, but I can use it in fdisk and create a partition table: # fdisk ...
1
vote
1answer
12 views

Change the owner of an ntfs filesystem mounted via fstab

I want to mount a partition on boot and need it to have read, write and execute permissions. I'm using 64-bit Arch Linux and created the following /etc/fstab file: /dev/sda1 ...
2
votes
0answers
10 views

How are the reserved GDT blocks used after online resizing in ext3 file system

I am working on Ext3 and after looking at FS layout - ext3 reserves ~1024 blocks as Reserved Group Descriptor Table (reserved GDT blocks are between Group Descriptor blocks and Bitmap blocks). These ...
1
vote
1answer
30 views

Open source OS/File Backup solution [closed]

There are quite professional "OS/File" Backup solution from many vendors like Symantec BackupExec/Veeam. But those solutions aren't free & requires license. I am planning to build a open source ...
2
votes
2answers
21 views

Conceptualizing btrfs - understanding snapshots, and space used

Just starting to learn about btrfs and considering switching. My current thought of btrfs is that operates pretty much like git, with everything tracked, and a commit happening every 30 seconds after ...
3
votes
1answer
19 views

Using btrfs to sandbox programs

First, for this post, I'm using the term sandbox to really mean separation of filesystem changes only. Neither of these methods would: isolate processes in the sandbox from interacting with other ...
4
votes
1answer
71 views

How to detect special hidden files in Linux (e.g. .reiser_priv)?

I've recently found out that there are special hidden directories found on Linux that are not displayed with ls -a command. Namely the one I encountered is .reiserfs_priv directory located in the root ...
0
votes
0answers
22 views

Misc file corruption freebsd 10 and dns zone file

The computer is a VPS from Vultr. They tell me that "since it is loaded into RAM and not really a drive, nothing on the host would be causing this." One particular file, my zone file, will come up ...
3
votes
1answer
18 views

Monitor folders mounted via SSHFS

I want to monitor changes made a folder that is mounted via SSHFS. I have tried iwatch but it does not notify when a new file is created, below is the syntax I am using with iwatch: iwatch -e create ...
2
votes
2answers
28 views

How to track resources' (inodes, blocks) usage change upon starting a program

I am supposed to track how file system's usage of resources (i-nodes, blocks) changes before I start a program, after I start a program, delete its executable file, and then finally after I kill its ...
1
vote
0answers
16 views

Recursively lowercase, replace space and remove invalid characters on linux FS

I want to recursively run the following commands on a directory as part of a cron. The first line changes everything to lowercase, the second replaces spaces with _ and the third removes all invalid ...
2
votes
1answer
43 views

What should I consider when choosing a filesystem for a personal disk archive / cold storage?

I have a few TB of media files that never changes and that I need to store safely. Since it's a personal business it's overkill to set up a disk server et cetera, so I use the simple solution of ...
1
vote
1answer
23 views

Copy BTRFS partition to external harddisk BTRFS partition including snapshots

I have a question about backuping BTRFS partitions. Assume I have a BTRFS partition on /dev/sda1 and an external harddrive with BTRFS on /dev/sdb1. I already found out I can make an initial backup ...
3
votes
2answers
41 views

Can an NFS stale file handle persist for 2 complete days without any sign?

I have my home directory on an NFS file server, our IT team has moved to another server one week ago. Before the move, I killed all my processes with killall -u my_user_name. After the move, I was ...
45
votes
7answers
4k views

How are file types known if not from file suffix?

I would like to know how file types are known if filenames don't have suffixes. For example, a file named myfile could be binary or text to start with, how does the system know if the file is binary ...
2
votes
4answers
88 views

any large inode size benefits? (ext4)

From some foggy memories I thought I would "improve" the default settings when creating a Linux partition and increased the inode size to 1024, and also turned on -O bigalloc ("This ext4 feature ...
5
votes
6answers
110 views

How to find out whether two directories point to the same location

Do the following paths point to the same disk location? /home/username /app/home/username
3
votes
1answer
83 views

ext4: Can a clean filesystem need journal recovery?

I always thought "clean" is a synonym of does not need journal recovery. However that does not seem to be the case $ sudo file -s /dev/sdc4 /dev/sdc4: Linux rev 1.0 ext4 filesystem data, ...
0
votes
1answer
57 views

Mounted Filesystems showing wrong details

I am using SLES 11 SP3. When I run df -lh in order to see mounted filesystems I get following results, which are correct: Filesystem Size Used Avail Use% Mounted on /dev/sdb3 9.9G 2.9G ...
0
votes
1answer
52 views

Filesystems not mounting on boot?

I'm getting this error after rebooting: Scanning for Btrfs filesystems * Stopping Read required files in advance [ OK ] * Starting Mount filesystems on boot ...
5
votes
7answers
299 views

Is there an equivalent way to remember directories on mounted volumes like DOS

A while ago, I moved from a purely Windows environment to using Windows and a Mac. Whilst I am slowly getting used to my Mac and loving it, there are a few things that frustrate me. One of them is ...
1
vote
2answers
38 views

Moving 4 system folders to 1 separated partition

Some background: I have installed Linux Mint 17 Cinnamon on my laptop SSD on a 10GB formatted partition and i have another HDD with 75GB, both ext4 formatted. The question part: I have two partitions ...
4
votes
3answers
339 views

On a Linux system, see how busy is file system

I want to know of a command that will show me how (currently) busy is the file system. I'm assuming there exists such a command that will show me this. With such command, are there specific arguments ...
1
vote
2answers
37 views

Partition table-less HDD [duplicate]

Just this morning, I accidentally created a hdd filesystem without a partition table. I didn't even know it was possible but it happened. Now the issue is to undo it or leave it alone. For this ...
0
votes
0answers
36 views

Filesystem check or mount failed on elementaryOS Freya

I had to move to a temporary workspace for a short time which runs on very bad hardwares, so I bought an SSD trying to speed it up. Now, I have installed elementaryOS Freya and my development ...
0
votes
1answer
24 views

Redhat 5.11 Just showing 1.5TB Storage

We purchased new supermicro server with 3*3TB HDDs. Now from Hardware Raid controller i created Raid 5 .So the total use able storage is 5TB something. But during installation Redhat is just showing ...
1
vote
1answer
48 views

Creating separate volume for /var/log/ and /var/log/audit/

I need to migrate /var/log/ and /var/log/audit to separate volumes. Currently the entire /var/ directory is on a logical volume with ample space (45G). I understand how to shrink and create new ...
1
vote
1answer
45 views

How much space does an inode occupy?

In Windows, when a file/folder is created, it is associated with an FRN (a unique number which is like an Index into the MFT). All the file metadata is stored in the MFT which occupies a reserved size ...
0
votes
1answer
21 views

Returning last-written file, containing particular sub-string in file name?

Whilst monitoring logging I have to go to my log files, order by written date, so I can then see the name of the log file for the most-recent execution of my application. Is there any way, given a ...
1
vote
0answers
22 views

BTRFS - removing drive by devid instead of path

I recently lost a 5 TB drive using btrfs. I had a system freeze (unsure why) while a balance was running. My SMR drive got corrupted. I was able to mount my array degraded and balance my data. ...
0
votes
0answers
39 views

Where am I supposed to put PyCharm files?

I've just downloaded PyCharm (pro) for Linux (I'm running Ubuntu). It's basically a zipped directory containing everything it needs to run (tree below), including an entry point (bin/pycharm.sh). ...