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

learn more… | top users | synonyms (2)

2
votes
1answer
200 views

LVM filesystem is full, cannot update system amongst other things

I am running a RHEL 7 server with a license from my university. I am running it on a bare metal server in a local place on my university. I originally installed RHEL 7 with LVM on my hard drive (there ...
3
votes
1answer
24 views

How can you write to a file system before booting using VirtualBox?

I'm reading the TurnKey Linux 14 documentation and it states that in order to preseed values for an appliance, you have to write them to the file system before the machine boots for the first time. ...
0
votes
0answers
25 views

Why Labelling an XFS device doesn't accept spaces

I tried to label my external USB device to "USB DISK" using the following command: xfs_admin -L "USB DISK" /dev/sdb1 but was greeted with a usage screen. Then I tried: xfs_admin -L USB\ DISK ...
0
votes
1answer
37 views

Accounting of filesystem accesses

Is there any way to keep track of number of times each file system is accessed through system calls? I know that the super block will contain the details about the file system. But how can we access ...
0
votes
1answer
33 views

Using `tree`, how do I output files before subdirectories?

I tried to combine --dirsfirst and -r, but directories still show up on top, only in reverse alphabetical order. It seems like -r is applied first, which is also indicated by the man pages. Any other ...
1
vote
2answers
48 views

Undeletable symbolic link on smbfs/simfs

During a software installation, the configure script created a symbolic link with what seems to be ln -s foo foo on a smbfs filesystem mounted with the options ...
0
votes
3answers
55 views

Bash script to remove the oldest file from from a folder

I want to make a bash script to delete the older file form a folder. Every time when I run the script will be deleted only one file, the older one. Can you help me with this? Thanks
1
vote
2answers
56 views

how does o_sync trigger pdflush?

When I write using o_sync, the write call returns once the data has been written to the disk. But how does o_sync force Linux to write the data to disk? Normally you would have to wait a maximum of ...
1
vote
1answer
44 views

How to work out Linux file system delta?

I want to work out exactly which files changed as a result of installing and configuring some software. What is the most effective way to do that?
1
vote
1answer
37 views

Mount HTTP directory on Raspbian?

Is there a way to mount an HTTP resource in Raspbian (default Raspberry Pi OS)? I have an HTTP server hosting music, and I would like to be able to have read-only filesystem access to that music on ...
0
votes
0answers
16 views

How to monitor system, Database Query Values, and the Existance of Files?

I was looking through an old system today, and it had this monitoring software that could send out email alerts. It's very old, but it still seems interesting and useful. It allowed for monitoring ...
1
vote
0answers
40 views

Unable to perform any kind of operation on MircoSD card

I have a 8 GB SDcard that look like this in gparted: My goal is to have a single 8 GB partition on the SDcard. When I try to perform any operation (delete partition, create new partition, change ...
1
vote
0answers
13 views

how to know whether a headphone is plugged in from terminal? [duplicate]

I'm looking for something like presence of a file or its content that could indicate the headphone's presence. I am working on if statement on conky with condition being presence/absence of ...
2
votes
1answer
18 views

Bizarre path description

I think this a silly question but I don't know the answer. I have a checked out a project with file hierarchy: REPO/project/src/multiple sub-directories here I am reading some documentation and at ...
0
votes
1answer
187 views

File type inode/x-corrupted

My system had an unexpected shutdown. Now when I open the file from pcmanfm or nautilus I get file corrupted error. Strangely the files are accessible just fine if I launch pcmanfmas root user. The ...
2
votes
1answer
31 views

passing file in mount options

I am writing a stackable file system which requires some database file. I am thinking of taking it as mount time argument and then reading it's content into private field of superblock of mounted FS. ...
2
votes
0answers
22 views

Which subsystem caches file reads?

I am trying to understand how exactly file reads are served from Page Cache. This will be useful when I will be implementing my own filesystem in the kernel. Is file content cached by VFS or ...
2
votes
1answer
48 views

Why does cd-ing to // set PWD to //, but more slashes just gives /? [duplicate]

On my ubuntu box I accidentally just did cd // and noticed that my current path changed to //. ls showed the contents of my root directory. When I try cd /// (or any other number of slashes) I'm just ...
0
votes
1answer
185 views

Files getting reverted to older version

One of my site was infested with malware once and since then I am seeing every alternate day the header.php files are getting reverted back to older versions (possibly by a script) and a malicious ...
0
votes
0answers
32 views

`cp -iprv` from UFS to NTFS panics FreeBSD and reboots

My nas4free OS seems to be dead, so I mounted its 2GB UFS data partition on my FreeBSD machine, and my 1TB external USB NTFS HDD (using ntfs-3g /source /mnt/dest). I tried the casual cp -iprv /SOURCE ...
-1
votes
1answer
154 views

Linux folder size limit

We are using below code to create folder in Linux server. File dir = new File(filePath); if(!dir.isDirectory()) dir.mkdirs(); After that creating files inside that ...
3
votes
1answer
99 views

Magic number for new file system

I am writing new stackable file system, all the file systems have associated magic number which acts like their "signature" for file formats. I was wondering how to decide this number for my file ...
1
vote
0answers
39 views

file integrity between mount and mount point [closed]

Sub-tree rooted at /some_dir/B is mounted at /A/mount_point. If B contains foo.c, deleting /A/mount_point/foo.c will remove file from /some_dir/B/foo.c also. Is this correct? And what if I change only ...
2
votes
1answer
48 views

Any tool to keep symbolic links valid?

Does anyone know of some tool capable of keeping symbolic links valid in spite of renaming or moving of files or directories? If not, are there obvious reasons why this should be difficult to ...
0
votes
1answer
27 views

Migrate to a new vdisk

I have to migrate some data to a new vdisk. But i have no idea how i can do this. The old Vdisk is under /dev/mapper/12345 which is a link to /dev/dm-1 The new Vdisk is under /dev/mapper/67890 which ...
2
votes
1answer
31 views

What happened to /proc/sys/fs/relatime_interval?

According to one answer relatime interval can be changed by echo 60 > /proc/sys/fs/relatime_interval but I do not have such a file? Where did it go? $ ls /proc/sys/fs aio-max-nr ...
1
vote
0answers
30 views

New inode when mounting new file system

Does kernel really create any new inode when some file system gets mounted on some directory of root file system? I don't expect it to create as there is no new files are being created. Is there some ...
1
vote
1answer
31 views

Is it safe to ignore O_DIRECT?

I am going to implement a filesystem in FUSE, and later in the kernel. I am not sure what to make out of Direct IO. Different sources emphasize on different things that this flag supposedly implies. ...
3
votes
1answer
31 views

Recommended method for shared data store writeable by all users

I have a few users sharing a computer and accessing content (pictures, audio, video recordings etc) that other users save. I need a shared drive for this content. File permissions, access control or ...
2
votes
0answers
35 views

Does Linux still use rootfs?

In the kernel documentation file "ramfs, rootfs, and initramfs" it says Rootfs is a special instance of ramfs (or tmpfs, if that's enabled), which is always present in 2.6 systems. I have not ...
4
votes
1answer
40 views

Is there software relying on `strictatime`?

I am preparing to implement a filesystem in FUSE. Implementing only one mode would be easier. Relatime is the default behavior of all kernel implemented filesystems. Is strictatime behavior still ...
0
votes
1answer
53 views

Airtel 4G dongle mounting

I am using a HUAWEI mobile broadband LTE USB stick model E3272. Whenever I insert it, it displays an error message like: Error mounting /dev/sr1 at /media/bhuvan/airtel: Command-line `mount -t ...
2
votes
1answer
17 views

How can I delete a former MTP directory, which now gives me input/output error whenever I try?

I have ~/srv/mtp, which I do not remember how I created. It was back when I was trying to set up a MTP mountpoint using various tools for that. Currently I can't do anything to the directory. ○ file ...
1
vote
1answer
253 views

Removing the rescue image from /boot on fedora

I am trying to upgrade my fedora system (21 → 22) using fedup. I removed all old kernels using package-cleanup but fedup still needs 2MB more on /boot. These are the files in /boot: -rw-r--r--. 1 ...
3
votes
2answers
43 views

Do permissions for the root folder in *nix filesystems differ from other directories?

In a comment under this answer I received a suggestion that "permissions on the / folder are a special case". Is it true and if so, how does the implementation of permissions for the root folder ...
0
votes
1answer
48 views

how to get crtime of a file in an ext4 partition as a single number or string

I am seeking a method of getting the crtime of a file in hexadecimal or decimal in unix epoch seconds instead of in a date and clock format and with no additional output. This command adds additional ...
5
votes
1answer
58 views

Locate owner of a computer on file system

I am trying to locate the owners name from a computer that was turned in, in order to return it. I am unfamiliar with Linux, and would prefer if I could be directed to a location in the actual file ...
1
vote
0answers
178 views

Unable to mount UFS2 partition on Linux - ufs_fill_super(): bad magic number

In FreeNAS 9.3, I created a partition (slice?) by doing: fdisk -BI /dev/ada3 bsdlabel -wB /dev/ada3s1 newfs -O2 -U /dev/ada3s1a This drive is now /dev/sdg on Ubuntu 14.04, which I've been unable to ...
0
votes
2answers
35 views

Computer froze, now no OS will start

I was happily watching a TV show episode and 5 minutes later I am with a fried computer. I was using elementaryOS. I am going step by step with what just happened: I was using VLC when suddently the ...
0
votes
0answers
41 views

Negative dentry

When we do rm foo.bar, kernel decrements inode ref count and checks if it's become zero. In case of 0, inode is removed and foo.bar dentry becomes negative. This negative dentry continues to stay in ...
1
vote
0answers
97 views

How to run full SSD disk check with `fsck` command on system reboot (Debian)?

Please advice how to run full SSD disk check with fsck command on system reboot? (Debian) sdb2 is root, sdb1 is boot partitions. What is recommended options and where to find check report? I would ...
2
votes
1answer
26 views

Is partition created by dd (and cached) instantly available for writing

I'm creating a partition (from backup) with dd and need to know if there is a need of some sort of sync/timeout before I can access it. As I know data may be cached in dirty pages. But what if I ...
5
votes
4answers
227 views

How to find missing files with sequential names?

I have thousands of files named 1.txt 2.txt and so on. Some of those files are missing. Which would be the easiest way to find out which files are missing?
0
votes
1answer
39 views

How do I detect used harddrive space on a block device?

I want to look at a raw block device (as in /dev/sda) and know how much space is being used on the drive. I don't know what type of file system is on the harddrive, nor do I have any way of figuring ...
1
vote
1answer
60 views

How to hide original mount points with bind mount?

I use OpenMediaVault, a NAS software on top of Debian Wheezy. This system usually mounts the file systems at /media/, but that is cumbersome to type and to identify. As such, I've modified my fstab ...
0
votes
1answer
160 views

Cannot boot to windows after deleting Linux Partition(s). Stuck with grub rescue

I just updated my PC to Windows 10, and deleted my Linux partitions. After a restart, it came up with grub rescue. I've tried booting from a Windows recovery disk and doing bootrec /fixmbr bootrec ...
1
vote
0answers
27 views

Getting file crtime under ext4 file system [duplicate]

I'm trying to display a file is creation time. I've been searching and I found out that under ext4 file systems this is something indeed possible to get and it's stored as crtime. As you can see in ...
0
votes
1answer
11 views

Are there any caveats when restoring a backup to a larger disk than the original disk with Clonezilla?

I have a Clonezilla image of a 250 GB disk. Are there any caveats or downsides if I would restore this to a 500 GB disk? (I will of course not be able to use more than the 250 GB on the new disk, but ...
0
votes
0answers
15 views

GPIO edge-file missing

I have exported some GPIOs in sys/class/gpio but when I look into the GPIO directories i cant find the edge file. I only see value, direction and a few other files. what does that mean. Is it in any ...
0
votes
2answers
60 views

how to mount a filesystem without a mount point

In Ubuntu 14.04.3 inserting my SD card causes it to be automounted to a mount point that does not exist. How can I do this? /dev/mmcblk0p1 30780420 2269796 28510624 8% ...