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

learn more… | top users | synonyms (2)

0
votes
0answers
4 views

Can't access shared folders with a file manager in OpenSuse, but can access with text editor

I have a Windows 10 host running a virtualbox with OpenSuse & KDE. Copy/paste and drag and drop are set to bidirectionnal, but do not work for files, only for text. 2 Windows partitions are set ...
0
votes
1answer
19 views

How do I append contents from fileA.txt to fileB.txt? [on hold]

I am trying to take updated contents from fileA.txt to update fileB.txt's information. I have already tried appending contents from fileA.txt to fileB.txt using the command, "cat /root/important/...
0
votes
1answer
12 views

Linux distribution with out-of-the-box exFAT support

I have to create a live USB media I can boot a machine with that has no network devices. At the same time, it has to be capable of writing to/reading from exFAT formatted devices. I had to find out ...
3
votes
1answer
36 views

Let a process read and write all files inside a certain directory, at any depth

I have a directory, owned by me (e.g. /sync), and a process, run by me, which I want to have full read&write access to this directory (in my case the process is Resilio Sync, formerly known as ...
4
votes
1answer
37 views

Why is man statfs' FUTEXFS_SUPER_MAGIC equal to bad idea (0xBAD1DEA)?

Doing man statfs on my system tell me that __SWORD_TYPE f_type can be a list of arbitrary values which are defined in header files. Why is FUTEXFS_SUPER_MAGIC defined as 0xBAD1DEA, which obviously ...
0
votes
0answers
28 views

Can't write to file system even though there is free space as said by df -h

I was writing files (large amount of small files) to the file system in a java programme and then it suddenly threw a 'No space left on device' exception. Then I checked the output of df-h and it says ...
1
vote
0answers
17 views

Linux Not Performing Sync on Reboot

The production machines in my shop are running Red Hat Linux Server release 6.3. I have found that Linux appears to not flush file caches to disk upon reboot. Here is the following test I ran under ...
1
vote
2answers
35 views

Stripe array which stores each (whole) file on one disk (zfs/lvm?)

My configuration is: two HDD drives (3TB+4TB), which I want to use as a stripe array. I want to achieve that if one of my drive fails, half of my files (on good drive) are guaranteed to be safe. In ...
1
vote
1answer
27 views

How to use inotifywait to watch a directory for creation of files of a specific extension

I have seen this answer. You should consider using inotifywait, as an example: inotifywait -m /path -e create -e moved_to | while read path action file; do echo "The file '$file' ...
3
votes
1answer
98 views

du command showing different results than st_blocks

I'm implementing du -a in C and I'm using the stat function for this. The problem is that what I get from using st_blocks is 2× what I get when I use the command itself, does this make any sense? or ...
2
votes
1answer
21 views

Is it possible to give caching preferences to the filesystem?

I have a directory (/srv/data) with a large number (20,000,000) with a number of small (4-40KB) files. These files are all located in subdirectories of /srv/data, where the concatenation of the ...
-1
votes
1answer
15 views

Does F2FS support permissions and symlinks?

Just wondering before I do the migration from EXT4 to F2FS for my Raspberry Pi setup. Does F2FS support permissions and symlinks? https://github.com/Fourdee/DietPi/issues/606#issuecomment-260327177
0
votes
0answers
36 views

when are the linux bin files built?

I've a vendor-supplied Linux/arm kernel image burned into onboard NAND flash. However it seems that it's a very scaled down Linux with min. bin commands. Common commands like 'make' is unavailable. ...
2
votes
0answers
53 views

fsck on an ext2 filesystem. “…directory corrupted” [closed]

UPDATE: Fixed! The final directory entry in a block must point to the end of the block that it is in (I did this by adjusting the length of the final block to span the remainder of the block). I'm ...
-1
votes
1answer
72 views

Complex multiline search & replace to remove injected code [duplicate]

Note this is NOT a duplicate, though it very much SEEMS like one. Before posting, I extensively tried the other solutions to very similar questions. This case is different because the large multi-line ...
0
votes
1answer
23 views

centOS: full file system backup and restoration [duplicate]

I have a dedicated server with centOS. I need to do a full system backup, save backup file on server and download a copy of that backup file to my personal computer (local computer in office). From ...
1
vote
1answer
16 views

SD card “broken” - changes in files do not persist over reboot

I have a Raspberry Pi which is run from a micro SD card. It boots fine and dandy, but there's something peculiar going on. If I for instance create a new file and reboot, the file is not there. For ...
0
votes
0answers
42 views

Number of inodes automatically decreasing [closed]

I have been using a CentOS 7 cloud servers for a while now, last week we decided to get an upgrade on the specs of one of the servers and had the number of cores increased from 4 to 12, after the ...
1
vote
0answers
12 views

is there difference between running an application from nand and ramdisk?

I'm using an application on an embedded linux platform. I copied this application to a nand device with a jffs2 filesystem and ran it from there and system performance is significantly degraded. I ...
0
votes
2answers
12 views

Purpose of /etc/centos-release-upstream

What does the centos-release-upstream file mean in CentOS? The centos-release file already tells me that a CentOS 7.2.x release was installed. root# cat /etc/centos-release CentOS Linux release 7.2....
0
votes
0answers
24 views

tune2fs still shows “Bad magic number in super-block” even after filesystem errors are corrected using fsck

I am able to recover a corrupted filesystem associated with a drbd device. But after recovering using 'fsck', tune2fs (tunes2fs -l lv_name) still shows 'Bad magic number in super-block..' though ...
3
votes
2answers
20 views

U-Boot env from Linux WITHOUT MTD

I'm trying to access U-Boot environment from Linux. It seems that there is only one tool to achieve that : fw_printenv/fw_setenv. But those tools are only usable on a MTD with UBIFS, and I'm running ...
-1
votes
4answers
44 views

How to pass a file as an argument in linux and get the list of all files in it from file system?

Lets say I have a file by name searchfiles.txt with file names in it: 2345098.txt 2345099.txt 2345100.txt and so on (100 file entries) Now I want to list out or display all the file names that ...
2
votes
0answers
18 views

Unable to resize filesystem on multipath device

I've encountered an issue with multipath storage. I've resized a LUN and have rescanned the system to account for it. Multipath recognizes the new size. Before rescan: mpathax (...
0
votes
0answers
15 views

RAID Array gone to read-only

I've created a virtual machine running on KVM only for testing and learning purposes. During the installation RAID 1 array has been configured with 3 disks for root and 3 for boot. After some playing ...
2
votes
1answer
33 views

correct method to corrupt super block in ext3 filesystem associated with drbd

I am trying to simulate file system super block corruption. During this experiment I could not understand the difference between below super block corruption. Please help to know the difference. A ...
1
vote
1answer
36 views

Extend a LUKS encrypted partition to fill disk

I recently upgraded my disk from a 128GB SSD to 512GB SSD. The / partition is encrypted with LUKS. I'm looking for help extending the partition to use all the free space on the new disk. I've ...
5
votes
2answers
163 views

what are /dev/sdxx nodes?

This image from TLDP is pretty awesome. It shows that before giving user space actual read, write, open access to the filesystem the blocks get mapped onto the virtual filesystem. and Wikipedia says ...
3
votes
0answers
18 views

File names contained in particular block group blocks

How do I see/list what files have blocks in a particular block group? I'm looking at a small disk image with ext3 file system. Can I use debugfs, and if so, how?
1
vote
1answer
53 views

Permissions of /dev/shm and /dev/mqueue

Environment Distro: CentOS7 Kernel: 3.10.0-427.10.1.lve1.4.7.el7.x86_64. Scenario This is a shared hosting environment and I just noticed that only /dev/mqueue and /dev/shm have 1777 permissions (/...
2
votes
1answer
25 views

“Error: Can't have a partition outside the disk!” even though number of sectors is fine

I am looking at an image file which was created using dd with an SD card with Raspbian (with Qt 5.7 on it that I compiled a while ago) as input. When invoking sudo parted raspbian_jessie_qt5....
1
vote
1answer
28 views

If a directory is a file, can I see the contents of that file? [duplicate]

If a directory is a special file in unix with filenames and corresponding inodes, is there any way to print the entire contents of this file?
4
votes
2answers
53 views

Backing up SD card filesystem-only to image file

EDIT: For some reason only part of my post got saved. I have updated it now to its full content Although this topic circles around the Raspberry Pi it is applicable to basically all SD cards that ...
0
votes
2answers
36 views

Linux filesystems recoverability

I am on Debian 8.6 and have 1x 4 member RAID6 2TB size in effect. Apart from backup system I now need to decide what filesystem to use. Can you help me with that? The purpose of this array is ...
6
votes
3answers
110 views

Filesystem to share disks between Linux and FreeBSD

I have recently decided to install FreeBSD on my desktop but I still have several computers running GNU/Linux and I would like to share disk partitions between the two OSs, in particular: The ...
0
votes
0answers
34 views

Many files in my home folder got lost. What happened?

I was working in my computer as I usually do. I was editing some text files with Geany when it told me that the one file has disappeared from the disk. I checked it up, in fact the file was not ...
0
votes
2answers
53 views

I have a usb flash drive mounted in both sdb1 and sdb2. How to format it correctly?

I have a 4GB usb flash drive. When I plugged it on my debian linux I found that it mounted on both /dev/sdb1 and /dev/sdb2. Each one detected as 2.5GB EFI System and 1.3GB Linux filesystem ...
3
votes
0answers
12 views

software-level error detection and correction for raw storage

If I understand data storage correctly, all storage devices are unreliable to some extent, which is why most have hardware-level abstraction layers. Hard drives use error correction. If a sector is ...
1
vote
1answer
28 views

Moving a file inside the same File System

I am trying to understand what it happens to a file when I move it from a directory to another, inside the same File System. Here is the example I made up. I have two directories and a file : ~/...
0
votes
1answer
22 views

Locked out of ssh after mounting bind /dev /run /proc and reboot

I've added the following commands in my /etc/rc.local file to automatically mount kernel's virtual file system, as said on Linux From Scratch (LFS). And rebooted... Sections 6.2.2 Mounting and ...
3
votes
1answer
85 views

Advanced Programming in the Unix Envinronment 3rd, 4.21, I want to how rmdir deal with link count

I read about this in APUE 3rd, 4.21: If one or more processes have the directory open when the link count reaches 0, the last link is removed and the dot and dot-dot entries are removed before this ...
0
votes
0answers
38 views

Thinkpad T430 boots to read-only after Ubuntu 16.04 upgrade

So after upgrading to Ubuntu 16.04 the system boots to a command-line login. It throws the following errors: /usr/lib/ubuntu-release-upgrader/release-upgrade-motd: 39: /usr/lib/ubuntu-release-...
1
vote
0answers
41 views

Does it make sense to have separate ubi volumes for safety with ubifs?

In the pre-ubifs days it was common practice in embedded systems to setup several (MTD) partitions in flash for protection. For example, a partition containing a read-only file system could be mounted ...
1
vote
1answer
63 views

mount: mount point none does not exist

I am having problems trying to mount a swap file for use. Every time I use this command to mount (with /var/swap being the file): $ sudo mount /var/swap I keep getting this message: mount: mount ...
27
votes
4answers
2k views

How to unlink (remove) the special hardlink “.” created for a folder?

On Linux, when you a create folder, it automatically creates two hard links to the corresponding inode. One which is the folder you asked to create, the other being the . special folder this folder. ...
0
votes
0answers
16 views

Kiosk Mode User Account to access a localhost website only

Warning: I'm a noob using Linux, please bear with me. I have a computer running Ubuntu which is running a Node server for a website to be used locally at stores. I wish to have two user accounts: ...
0
votes
0answers
9 views

fsck on root partition on BBB based custom board

We have BeagleBone Black based custom Embedded Linux Board. It has Linux-3.12, 256MB RAM and 4GB eMMC with ext4 file system on it. Sometimes we run into file system errors(rare but not impossible). ...
1
vote
1answer
23 views

What file system to use on embedded static ram device?

On an embedded system, we have a a 512Kb static ram on a character device /dev/mem. We're currently using it by memory-mapping the file directly in our application with a mmap. I would like to ...
0
votes
0answers
39 views

How mount a .img with read and write permissions in linux mint

I have a .img file with luks in Linux Mint 18. When I mount the file from cinnamon (Open With Disk Image Mounter), it ask password and mount ok but as readonly. When I mount it with a little sript it'...
1
vote
2answers
60 views

Why is inode size fixed?

I'm reading about file systems and storage medium and I can't understand why if I create a one block size file I can't have a smaller inode than a one of a bigger file. Can't the OS dynamically ...