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

learn more… | top users | synonyms (2)

1
vote
0answers
85 views

Busybox compilation fails - networking/nslookup.c Error [closed]

I'm trying to compile Busybox with Buildroot Cross-Compiler. Here are the steps: Download Busybox and untar it wget http://www.busybox.net/downloads/busybox-1.22.1.tar.bz2 && tar xjf ...
2
votes
0answers
71 views

how to migrate a squashfs system to another filesystem that's read/write

Well, basically what i want to do is copy all of my router's files (even the dev file (because i'm running busybox)) to my usb flash drive and let my router by default boot from the usb device. it ...
3
votes
3answers
189 views

Files are missing and I want to know what happened to them

Somehow some files are missing in a directory and I would like to know what happened to those files. Who has moved/deleted them? How can I investigate? Can we get a history on a directory? These are ...
1
vote
1answer
148 views

Formatting an external HDD with Bash script

At my workplace we have an external HDD connected to a NAS device (Synology). There is a backup tasks which runs weekly and fills the external HDD after a while. Unfortunately the Linux-based OS of ...
3
votes
2answers
467 views

Why can I access to my C: or D: drives from Ubuntu?

Why can I access to my C: or D: drives from Ubuntu when I install Ubuntu 14.04. Why does this happen?
0
votes
1answer
37 views

How the contents of a directory are impacted when a file system is mounted on that directory [duplicate]

How the contents of a directory are impacted (and when and/or if they are available for use) when a file system is mounted on that directory.
2
votes
2answers
350 views

dd to clone to smaller sdcard

One of my Raspberry Pi's is using a 4GB SDcard for the root/boot filesystem. As seen when mounted on another system: Disk /dev/sdc: 3904 MB, 3904897024 bytes 121 heads, 62 sectors/track, 1016 ...
1
vote
1answer
466 views

Recover an overwritten file [duplicate]

I had a linux plain text document file with close to 100000 lines, a size of 10 Mb. I accidentally overwrote the file via python code. But I got an exception in the middle of the code and think the ...
0
votes
1answer
450 views

Trouble getting Exfat formatted drive to mount

I've just performed a new install of arch linux (3.15.3-1) on a macbook pro 8.2 All of my data is on an exfat drive, and I've installed exfat-utils. However, when I try mount -t exfat /dev/sdb1 ...
3
votes
1answer
7k views

Too many levels of symbolic links

I created this file structure: test/src test/firefox When I run this command: ln -s test/src test/firefox I would expect a symbolic link test/firefox/src to be created pointing to test/src, ...
1
vote
1answer
78 views

Do files with equal name conflict in unionfs (aufs)?

I just tried to mount two folders in one using aufs on Debian 7 wheezy. The command I issued is the following: mkdir /test1 mkdir /test2 mkdir /test mount -t aufs -o dirs=/test1:/test2 none /test ...
-2
votes
2answers
28 views

Check multiple files with string

i.e. for each .csv file, do the following: Check if the file contains the string “HEADER” in the first line. If its missing, do the following: Display, “ERROR: Missing HEADER record for ” Rename ...
4
votes
4answers
165 views

Mount filesystems after boot to avoid fsck delay for sshd

I'm trying to optimise the overall downtime and improve availability in case of system failure. I'm specifically concerned about the reboot (e.g. after a kernel panic) taking so long that I don't ...
3
votes
1answer
154 views

What makes fsck so slow on big filesystems?

I have over a dozen of filesystems on my OpenBSD server with 12GB DDR3 and several 1.5TB HDDs. All filesystems themselves are generally between 8GB and 64GB in size. I've noticed that even by ...
4
votes
1answer
34 views

batch rename files

I have multiple photo files with inconsistent name format. beach north.JPG beach south sm.jpg Bryce windsurfing sm.jpg DSC01031 1024x.jpg DSC02652 ed sm.jpg DSC03229 sm.jpg Kayak kids 2.jpg Maui ...
4
votes
1answer
205 views

Filesystems and Partitions

I have been reading up more on UNIX and have brushed up on different filesystems and partitioning HDs. In the book it mentioned that filesystems are very much different than partitions and one ...
0
votes
0answers
16 views

Mount (or makefs or tunefs or cap or…) option to disallow symlinks?

(Other than mkfs.vfat, that is.) Is there a way in Linux to have a filesystem mounted but to prevent symlinks from being made on it? It's fine if this needs to happen at the time the filesystem is ...
-1
votes
2answers
68 views

Does tar create new inodes to be archived?

When tar is asked to archive a directory, does it create a new inode for each file system object? If yes, how does it query and save the meta-data? Won't the format of storing this inode metadata vary ...
1
vote
1answer
327 views

Difference between a distributed and a cluster file system

I have been reading some articles and I didn't find the answer for which I am looking for. What I understand is the following: Both systems span over a network. A distributed file system features ...
1
vote
1answer
43 views

How to discard/TRIM a range in an open file ?

For an SSD, I can open the row device and discard a range of pages using ioctl() with BLKDISCARD command. My question is for an open file, how to discard a range of data? and Is that depends on the ...
1
vote
1answer
2k views

Give read-only access to specific folders?

I would like to give read-only access to a user but I want him/her to see only the exact folders I give access. for example he/she shouldn't travel around all the server and browse to all users ...
1
vote
1answer
53 views

Directories are missing in recovery mode

My service provider booted my virtual server in the recovery mode and now I'm a little bit lost. I'd like to save some files from my web-directory but I can't find /var/www. Though there are files in ...
3
votes
1answer
3k views

Can't resize a partition using resize2fs

I recently resized the hard drive of a VM from 150 GB to 500 GB in VMWare ESXi. After doing this, I used Gparted to effectively resize the partition of this image. Now all I have to do is to resize ...
6
votes
2answers
242 views

Why there are multiple folders for executable files in Linux? [duplicate]

I'm trying to understand Linux file system, and one of the question is: 1- Why there are multiple folders for executable files: /usr/bin, /usr/sbin/ and /usr/local/bin? Is there any differences ...
8
votes
3answers
867 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 ...
1
vote
1answer
207 views

debug mkfs.ext3 command output

I was creating a new file system in my external HDD. While formatting, I had to format this partition to the remaining available partition which is somewhere around 850GB. Now, I created an ext3 file ...
1
vote
0answers
29 views

“including” files in fstab [duplicate]

It would bice on some systems to break up one big fstab file and replace it with an fstab file "including" other files. Also it would be nice to mount things from a secondary "fstab" file relative to ...
5
votes
1answer
2k views

What's the easiest way to resize an ext4 partition from the command line?

What's the easiest way to resize an ext4 partition (or any type partition depending on the method) from the command line (potentially with the fewest commands, but also the easiest to understand)? ...
3
votes
1answer
69 views

Get device with major number 0 (btrfs subvolume)

When I stat a file on a btrfs subvolume I get a major device number of 0. Is there a reliable way to find the mount point of this device, without knowing in advance it is a btrfs subvolume? e.g. I'd ...
0
votes
2answers
215 views

Mount compressed tar file and update it

How do I mount a .tar.gz file, update it (add new files, edit files), and then unmount it such that changes are reflected in the original compressed file? I'm open to other compression formats if no ...
4
votes
2answers
1k views

Mounting Disk Image in Raw format [duplicate]

While Trying to mount a disk image in Raw(dd) format using the following command mount nps-2010-emails.dd /media/manu/ I get the following error message mount: you must specify the filesystem ...
1
vote
0answers
79 views

Conversion of disk image from Encase (E01) to Raw format [closed]

I am trying to convert from EnCase to Raw format using instructions given on this page. The following takes place: manu@ubuntu:~/Downloads$ ewfexport nps-2010-emails.E01 The program 'ewfexport' is ...
3
votes
1answer
302 views

Write-only permission for a directory doesn't allow to rename (move) files inside?

In fact, I would like to ask more general question -- "what does write permission for a directory allow you to do exactly?" -- but let's approach it with a concrete example. It is a long question, if ...
2
votes
1answer
433 views

What is type 'none' for mount points and why are mount points of the same type below /run?

In Ubuntu 14.04 when executing command mount I get following excerpt tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755) none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880) ...
11
votes
1answer
441 views

How is file owner and group remembered for an external drive?

I formatted an external hard drive with an ext4 partition and subsequently mounted it. So that I could use the new partition, I did: sudo chown me:me /mount/directory to change the file owner and ...
1
vote
2answers
269 views

Secure wipe (scrub) filesystem of VPS from VPS itself

I have a VPS I'm planning to delete. This particular cloud provider makes no guarantee that the data on the drive will be wiped before giving the disk to the next person. What's a best effort attempt ...
0
votes
1answer
240 views

What are the advantages / disadvantages Linux file hierarchy has in compare to other OSs? [duplicate]

does it make any difference whether a file system hierarchy chooses to sort files by types and put them all under one directory (like all the binaries are under bin) or on the other hand sort them by ...
2
votes
1answer
92 views

Filesystem types for encrypted partitions

I wish to encrypt two external hard drives using dm-crypt/LUKS for whole-disk encryption. I want one hard drive to have an ext4 filesystem for Linux use only, and the other to have an NTFS filesystem, ...
0
votes
1answer
86 views

setfacl remove all write access

I want to remove all write access to files & directories for any user or group while preserving other permissions. Is this possible?
2
votes
3answers
305 views

How to know if /dev/hda2 is Primary partition or Extended partition

If all four primary partitions exist on an IDE drive, they are numbered as follows: /dev/hda1 /dev/hda2 /dev/hda3 /dev/hda4 We have also the partitions on a disk with one primary partition and ...
1
vote
0answers
122 views

Is there a way to access Google Drive spreadsheet?

I'm using Linux Mint 16 Cinnamon. I tried google-drive-ocamlfuse and grive, but both of them can't access spreadsheet. google-drive-ocamlfuse shows this error: Device or resource busy W hen it ...
2
votes
1answer
47 views

How are files opened in unix?

What's the internal process of opening a file? To open a file, the system converts the pathname to inode and from the inode search the corresponding driver disk portion to look for the content of the ...
3
votes
3answers
714 views

Is maximum individual file size in ext3 imposed on mysql tables?

I am reading about the file systems in Linux from here. This particular sentence kind of confuses me. For ext3, Maximum individual file size can be from 16 GB to 2 TB. Overall ext3 file ...
2
votes
2answers
55 views

Save files to mounted partition (fstab), but also main partition

I've mounted a USB in /etc/fstab: UUID=xxxx-xxxx /mnt/someFolder auto users,uid=... I want to save important files to this partition, but I want to have a backup on my normal filesystem in case the ...
2
votes
3answers
93 views

Linux - preventing an application from failing due to lack of disk space

Due to an unpredicted scenario I am currently in need of finding a solution to the fact that an application (which I do not wish to kill) is slowly hogging the entire disk space. To give more context ...
1
vote
1answer
350 views

Why isn't sda1 showing up in dev and how can I fix that?

I have an embedded Linux device and I was trying to copy some files to it. I plugged in a USB stick, the dmesg shows that it was recognized, but for some reason /dev/sda1 never showed up. I'm trying ...
0
votes
3answers
97 views

How to interact with the concrete file system?

Can a userspace program interact with the concrete file system(not VFS). What i have got is, that VFS allow linux to treat all file systems alike and gives a abstracted api to user space. I want to ...
0
votes
1answer
50 views

btrfs snapshots without subvolumes?

I'm starting to use btrfs. I want to be able to snapshot certain directories but do not want to create sub-volumes. Is this possible?
0
votes
3answers
75 views

“Other” permissions on files

To my understanding, the last three character of file permission printed by ls command is about other user's file permission. If the other user"s" have separate file permissions to this file, what ...
1
vote
2answers
116 views

live dd over a mounted read-only root partiton

I'm trying to conceive a firmware update mechanism for a Linux-based embedded system without an additional initrd/initramfs/whatever. From within the running system which has a read-only mounted root ...