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

learn more… | top users | synonyms (2)

0
votes
0answers
10 views

Incorrect used/free space

So I've encountered this issue. I have a VM with Debian 8 on it. I gave that disk 350gb, /dev/sda1 is 344gb, used is 330gb and it's 100%. Situation is as follows, I'm importing huge mysql dump (300gb ...
1
vote
1answer
14 views

What are the pros and cons of badblock's two non-destructive tests?

I use badblocks to test my 32GB class-10 microSD card that I use to boot my RPi. I already have a functioning file system on it, so I don't want to scan it with the -w option (destructive read-write ...
0
votes
3answers
33 views

Why is /dev a subdirectory of / (the root)? [on hold]

Why is /dev a subdirectory of / (the root)? I ask because isn't everything in the file system also mounted from the computer's hard disk which show up in /dev? Then why isn't dev the root directory ...
6
votes
2answers
968 views

linux: How to determine the best filesystem format?

About a year ago I changed from running Windows as dual boot to very rarely running Windows as a VM. As a result most of my partitions are in ntfs ( so I had access on both sides of the boot ). I have ...
4
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 to set permissions, and to allow programs to gain privileges (using setuid, setgid). I have recently discovered some newer commands, on GNU/Linux: ...
1
vote
0answers
21 views

Is there a way to mount two folders into one mounting point, so that folders are mirrored?

I want some tool like $ mirroring_mount ~/first_location ~/second_location ~/mount_point So, when I edit file in ~/mount_point, it is edited in both locations, and if ~/first_location and ...
3
votes
1answer
16 views

White-list certain binaries and scripts inside a noexec/nosuid mount?

Just like the question. Is it possible to white-list certain executables from a noexec mounted FS? for instance, mine looks like this: /dev/vg/lv on /tmp type ext4 (rw,noexec,nosuid)
1
vote
1answer
452 views

Backup Files on ext4 to external NTFS drive

Would there be any problems in copying files on my Linux system with ext4 filesystem to an external drive that is formatted in NTFS? I'm reinstalling my OS and intend to copy these files back to my ...
3
votes
1answer
31 views

File execution is denied

I just can't execute any file. For example: And I use zsh now,bash has the same problem.
5
votes
3answers
57 views

How filesystem atomically writes a block to disk?

Block is an abstraction provided by filesystem, block size is integer multiples of disk sector size. Suppose a filesystem uses 4K as its block size, and the disk sector size is 512B, when the ...
0
votes
2answers
38 views

How to see information inside inode data structure

I can do an ls -li to see a file's inode number, but how can I list information inside a particular inode by using that inode number.
1
vote
0answers
18 views

Determine affected file given logical block number [duplicate]

Given the logical block number from these log lines in /var/log/messages, is there a way to determine what file was affected? ...Buffer I/O error on device sdd1, logical block 203953715 ...lost page ...
0
votes
0answers
245 views

What's the problem with fsck.ext3?

It seems there is some problem with my HDD in my satellite box. The box records to and plays video from the HDD, but occasionally it hangs (it was stable before). It's Linux version ...
2
votes
1answer
10k views

Read-only file system error while creating a directory?

I have one of our production Ubuntu machines set up by PRODUCTION Unix team here in our company, but somehow when I am doing like this - root@machineA:/test01# ls -lt ls: reading directory .: ...
0
votes
2answers
1k views

Unknown btrfs error, partition won't mount

a day or so ago my btrfs partition just stopped working, which means i can't mount it anymore which is why my Fedora Linux doesn't boot anymore. I don't really have much information, but Gparted ...
1
vote
1answer
262 views

Problem after deleting a system partition on another HD

While installing Debian Wheezy, I decided to use my another HD as /home/igor/Documents/, and the system installed correctlly nothing wrong happened, but later I decided to delete that partition so I ...
0
votes
0answers
49 views

Ubuntu file system corruption error won't boot

my digital ocean droplet is going through some tough errors and I can't find any help. Perhaps someone here could point me the way. I was using the droplet normally, after running a failed DeployBot ...
5
votes
1answer
536 views

What is the meaning of the contents of /proc/net/unix?

On my Android device there is the file called /proc/net/unix who's content does not conform to that of any standard linux distribution (which show the unix domain sockets.) First few lines: Num ...
36
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 ...
0
votes
1answer
35 views

On-the-fly Textfile template engine

Is there a dynamic/on-the-fly textfile template engine that works on the filesystem level, e.g. via fuse, in a similar fashion to web-server html template engines? Imagine you have, e.g. a ...
-1
votes
0answers
21 views

Editing windows system files from linux boot disk [closed]

Could you explain to me why I can't edit Windows system files by just booting from a live OS? What protects the files, and why is it that I can format the drive but can't edit particular segments of ...
0
votes
1answer
26 views

How can I share an internal disk via NFS? (What am I doing wrong?)

I have an NFS server (machine A) that mounts a 4TB internal hard drive at /data/Storage, and exports /data to client (Machine B). If I put a regular file in MachineA:/data, you can see it in ...
-3
votes
1answer
25 views

How does ext[n] delete files?

I know that a lot of deleted files can theoretically be recovered, which suggests that "deleting" doesn't actually remove the information. So how do the various extN (e.g. ext4) filesystems delete ...
13
votes
2answers
22k views

How do you make samba follow symlink outside the shared path

This is Ubuntu server 10.04 64 and samba 3.4.7. I have a shared directory /home/mit/share and another one /home/temp that I link into the shared one: ln -s /home/temp /home/mit/share/temp But on ...
2
votes
1answer
2k views

/etc/fstab is mounting rw filesystem as read-only

A partition of my internal hard drive (not the root partition) I want to mount automatically on boot. I've been using /etc/fstab to mount my external backup drive automatically read-only, so this is ...
1
vote
0answers
13 views

Partition on raid array incorrectly states it is full

Sorry if this is the wrong place to post this question. I have a small home media (samba) server, which has a software (mdadm) raid10 array, with 4 disks, each being 3TB. It has only one xfs ...
4
votes
1answer
41 views

File permissions on Linux?

I am surprised that /mnt, /media or even /opt are not writable by myself on my own system (Linux-Ubuntu). Should I always use sudo for any action on these paths? Or would it be better to add myself ...
3
votes
3answers
34 views

Is CentOS using synchronous or asynchronous write

Is CentOS using synchronous or asynchronous write? Is ther any way to check or to change this?
0
votes
0answers
13 views

Is it possible to format a disk within an iPXE script?

I can mount a disk in the script, but it has to be formatted. I can't seem to find a way to format a disk within an iPXE script. Is it possible? How? Thanks
2
votes
0answers
17 views

How to find the code segment of a Linux driver in tmpfs? (in real-time) [migrated]

I have a character driver called drv1, and a user application uses ioctl to communicate with it, which will transmit the parameter struct file *filp. Now I want to find out the address of the code ...
1
vote
1answer
37 views

Fast filesystem for virtual backup environments

I know filesystem supporters war is behind the corner and there are plenty of fine tuning guide for each filesystem in the wild, so please stick to the specifications: I'm asking what would you ...
0
votes
0answers
20 views

Performance of FS directory structures

Given a large (hundreds of thousands objects) fs-based database of uniquely identified objects with potentially a large number of long prefixes with many objects sharing the same prefix are treeish ...
2
votes
1answer
912 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 ...
4
votes
1answer
77 views

What is using trillions of inodes on my almost empty server? [closed]

I have 18446744069923968593 inodes (which seem really too much) and much more problematic: I have 18446744069414835186 used so the system won't create any other file (even if the disk is almost ...
11
votes
4answers
6k views

How can I delete a folder with lots of subfolders fast?

I have a folder with 266778 subfolders. How can I delete it? I have tried cd ~/.local/share/Trash/ sudo rm -rf * but it takes much time. After 1 minute 25 seconds real time and 0.072 seconds user ...
3
votes
1answer
22 views

How does Linux manage “simultaneous” writes to swap/disk partitions in virtual memory?

I'm currently working on an educational operating system called Pintos. While implementing virtual memory, one of the issues that I'm having is writing data to swap in a page fault that happened while ...
-1
votes
0answers
14 views

Mindi module from Mondo Rescue can't find Kernel

I'm trying to recover from an accidental format of a 1TB HDD using Mondo Rescue. Mindi's log is reporting FATAL ERROR. Please use -k <path> to specify kernel. Tried to use all below: sudo ...
11
votes
3answers
45k views

How can I expand ext4 partition size on debian

I have a drive with this configuration: fdisk -l Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size ...
0
votes
0answers
18 views

Unable to create a filesystem on /dev/sda2 on a virtual machine , device showing busy, Kernel can't read partition table

This question has been asked several times on this platform, but none of the solution resolves my issue. Linux OS: RHEL 6.5 I created a partition /dev/sda2. # fdisk -l Device Boot Start ...
9
votes
2answers
2k views

Linux File Versioning?

We are migrating from A VMS environment to a Linux environment for some old alpha servers we are decommissioning. The one challenge I have not been able to overcome is file versioning. VMS keeps ...
2
votes
2answers
1k views

Debian won't boot: udevd fails to load device sda and sdb

I can't boot my Debian system, I got this error during boot up: Driver 'pcspkr' is already registered, aborting. I have solved this by adding blacklist snd-pscp to /etc/modprobe.d/blacklist.conf ...
1
vote
1answer
37 views

Is it safe to mount same ext4 filesystem at different mount points?

I know there is option "--bind" for multiple mount operation to handle such case. But ext4 can be directly mounted at different mount points, without option "--bind". So, I wonder whether it is safe ...
2
votes
2answers
45 views

Why does df show negative available space?

Filesystem Size Used Avail Capacity Mounted on /dev/ada0p2 1G 624M 302M 67% / devfs 1.0k 1.0k 0B 100% /dev /dev/ada0p4 503M 20k 463M 0% ...
0
votes
1answer
40 views

Need permission for Windows client to access linux NFS [closed]

I have a linux NFS the /etc/exports is like below: /opt/nfs 10.8.0.0/20(no_root_squash, rw, sync) I can r/w files from other linux machines. However, I only have read permission on Windows client. ...
12
votes
1answer
17k views

Difference between 'sync' and 'async' mount options

What is the difference between sync and async mount options from the end-user point of view? Is file system mounted with one of these options works faster than if mounted with another one? Which ...
0
votes
1answer
39 views

lvreduce : “No directory, logging in with HOME=/”

I wanted to reduce my home LVM size so I executed the following commands : sudo umount -fl /dev/ubuntu-vg/home lvreduce --size -4G /dev/ubuntu-vg/home As the last command didn't work (apparently ...
3
votes
2answers
61 views

Defer *all* disk writes, keep them in memory

How to temporarily stop synchronizing of dirty data with disk, instead just keeping it in memory. Clarification: I want to sync it later.
1
vote
2answers
2k views

File system CRC check

I know that before running the kernel, u-boot (the boot loader) will check the kernel image CRC. Only if it is correct it will go further, else it will give a "Bad CRC" error. I want to do same thing ...
0
votes
0answers
16 views

How do I check what mode my filesystem is in?

According to this answer regarding the shred command, the efficacy of the command depends on the mode the filesystem is in (e.g., journaled, ordered, writeback). How can I check what mode my Linux ...
0
votes
1answer
54 views

Struggling to remove a faulted ZFS pool on Centos 7 using zpool

I have been doing lots of testing of ZFS recently on a new server. I'm ready to move this server into production now, but I'm wondering if I can get rid of my old 'faulted' diskpools before I do, ...