0
votes
0answers
17 views

Files and Directories Dissappearing from Software Raid on Power Failure

I have a home samba file "server" (a raspberry pi) with two hard drives in a software raid 1, which have proven less reliable than any of my non-raid disks. I know there is a chance for data ...
0
votes
1answer
56 views

Can't mount SD card - Wrong filesystem

Just bought a SanDisk microSDHC 8Gb card and tried to change the file system to ntfs (used cfdisk thru terminal). Couldn't mount the device. Tried to change back to FAT32, but still can't mount. ...
3
votes
1answer
82 views

cannot create special file /dev/pts/0

When using midnight commander in console, I cannot "toggle" the window (using CTRL-o Not an xterm or Linux console; the panels cannot be toggled however, my $TERM is set to linux. After some ...
2
votes
3answers
78 views

How to repair a file system corruption?

Debian on external USB SSD drive. There was some error in dmesg log file: ...[ 3.320718] EXT4-fs (sdb2): INFO: recovery required on readonly filesystem [ 3.320721] EXT4-fs (sdb2): write access ...
0
votes
1answer
66 views

Linux and Windows 8 shared data partition [closed]

I currently have a dual-boot system between Linux Mint and Windows 8. I currently have it set up that both systems have about 500 GB for data storage. I prefer using Linux, but school requires me to ...
2
votes
1answer
51 views

RHEL Error message mounting luks crypted filesystem at boot

I am configuring a luks crypted file system to be mounted at boot time using RHEL 6.5 I did all the configuration from command line and tt worked but printed an error message after asking for ...
0
votes
1answer
38 views

iozone runs fail with “No such file or directory” errors

I want to start using iozone to benchmark an aufs filesystem on a virtual machine on ubuntu. I tried following the manual to use relevant parameters, but I keep getting a weird error on most runs. I ...
0
votes
1answer
37 views

mv deleted my directory. Why?

I was trying to correct the spelling on a directory, issued a mv command, and the directory is now gone. I'd like to understand--specifically--what happened. Here's the command I ran: mv ...
1
vote
1answer
75 views

Check the filesystem format with BusyBox (stat -f and df -T do not work)

I am using latest BusyBox v1.22.1 in my target. I want to check the filesystem type using stat -f or df -T but busybox doesn't support such commands. busybox help shows stat command as supported but ...
0
votes
1answer
21 views

Multiple file systems on BeagleBone Black?

I'm trying to put together a BeagleBone Black using Debian on the EMMC, a separate MicroSD card and a flash USB disk (but could ostensibly be platter media on USB). My question, simply put: are there ...
2
votes
0answers
21 views

Defining Languages Available at boot - LiveCD

I am trying to create a refined version of the buggy uck for customizing Ubuntu LiveCD ISO, here it is if you're interested in helping. NOTE: The process is straight-forward, except when customizing ...
3
votes
0answers
76 views

Why are block sizes limited by page size in Linux?

In many (all?) file systems that Linux uses, including ext2/3/4, the maximum block size is the page size of the architecture Linux is running on, ie. 4KiB on x86. Why is there this limit? Might this ...
0
votes
1answer
91 views

NFS mounting wrong File System

I have followed this How To ( https://help.ubuntu.com/community/SettingUpNFSHowTo ). My machine has a file system 30GB and other File System of 1TB mounted on /backup As this How To says to create a ...
2
votes
1answer
20 views

Get allocation status of a file's range in an FS which supports delayed allocation

For a very large file with delayed-allocation, some sectors may have been allocated and some may not. Delayed allocation is supported by ext4/xfs/etc.. For example, create an empty file and set to ...
1
vote
0answers
64 views

Cannot mount second 1TB harddrive in Linux, works fine in Windows 8.1

So I have this problem with my second hard-drive that I have been trying to fix for quite awhile now with no luck. I have searched around to try to find solutions to my problem but nothing seemed to ...
3
votes
1answer
76 views

Does “mount -o remount,ro” flush filesystem buffers?

On Linux, does mount -o remount,ro flush filesystem buffers/cache, or should I also run sync to achieve that?
1
vote
1answer
3k views

read only root filesystem

Somehow my Debian went to read only in root file system. I have no idea how this could have happened. For example when I am in /root folder and type command nano and after that press Tab to list ...
2
votes
0answers
40 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 ...
2
votes
1answer
3k 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
40 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 ...
6
votes
2answers
236 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 ...
2
votes
1answer
206 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) ...
1
vote
2answers
174 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
173 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 ...
0
votes
1answer
48 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
86 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
218 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
1answer
42 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?
1
vote
2answers
85 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 ...
13
votes
4answers
480 views

Corruption-proof SD card filesystem for embedded Linux?

Recently we had a rather unpleasant situation with our customer - Raspberry Pi based "kiosk" used to display remote sensing data (nothing more fancy than a kiosk mode browser displaying a ...
5
votes
1answer
253 views

Kernel panic when passing noatime in bootargs

I have an embedded system using jffs2 and want to pass rootflags=noatime in the kernel bootargs parameter. This results in a kernel panic: jffs2: Error: unrecognized mount option 'noatime' or ...
3
votes
1answer
54 views

filesystem that works under qemu and I can mount on my host

I'm using qemu for different kind of tasks, I would like to pick a filesystem that is both qemu-compatible and easy to mount under my host. I already discarded both qcow and qcow2 because apparently ...
9
votes
3answers
1k views

EXT3: If block size is 4K, why does ls -l show file sizes below that?

If you run ls -l on a file that contains one letter, it will list as 2B in size. If your file system is in 4k blocks, I thought it rounded files up to the block size? Is it because ls -l actually ...
6
votes
2answers
824 views

“Converting” a filesystem from ext3 to ext4

I've read on some Q&A on this website that one can "convert" an ext3 filesystem to ext4 without formatting, by issuing tune2fs -O extents,uninit_bg,dir_index /dev/dev-name And then running ...
5
votes
3answers
188 views

What filesystem metadata operations are actually journaled in ext4 & xfs?

I can't find a simple, straight answer about which filesystem metadata operations are actually persisted to the ext4 & xfs filesystem journals. Note that I am not inquiring about what POSIX ...
1
vote
1answer
179 views

Best parameters for ext4 filesystem to handle virtualbox disk images

I have ext4 partition, which holds disk image files VirtualBox works with. They all are fixed-size images (i.e. files never change their size). They are defragmented as much as possible (with ...
1
vote
1answer
136 views

File has bytes - appears to be empty

I'm having the following problem: Some text files (also some binary files) on my system are listed with the correct file size but when I open them, they appear empty. >ls -la -rw-rw-r-- 1 user ...
4
votes
1answer
88 views

“hard-linking” parts of a big file in which only a small part has changed

I use rsync to make backups: rsync -a --link-dest=PATHTO/$PREVIOUSBACKUP $SOURCE $CURRENTBACKUP This way I save space due to using hard links. The problem appears when I need to backup a huge file ...
2
votes
2answers
295 views

Merging /usr/bin and /usr/sbin into /bin (GNU/Linux)

I've read quite a number of discussions about people wanting to merge /bin and /sbin into /usr/bin. The same cannot be said for doing it the other way around. Is there any technical reason why one ...
4
votes
2answers
253 views

File system that never breaks (data loss acceptable)

There're several existing topics revolving around this issue, but what I seek is slightly different. I have an sd card on an embedded Linux and it suffers from power loss. I might be able to modify ...
11
votes
3answers
749 views

On system memory… specifically the difference between `tmpfs,` `shm,` and `hugepages…`

I've been curious lately about the various Linux kernel memory based filesystems. Note: As far as I'm concerned, the questions below should be considered more or less optional when compared with a ...
1
vote
0answers
141 views

How to use fslint (in particular findnl) on the command line to actually mimic the behavior of the fslint-gui?

So I am trying the fslint tools. However, the help included in those tools as well as the man page don't indicate that the cleanup actions offered by the fslint-gui are also available through fslint ...
3
votes
1answer
82 views

ext4, why 70k file takes 88 blocks

[root@xx]# cat -n create_extents.sh 1 #!/bin/bash 2 3 if [ $# -ne 2 ] 4 then 5 echo "$0 [filename] [size in kb]" 6 exit 1 7 fi 8 9 ...
4
votes
3answers
435 views

Hidden Files&Directories in user's home directory [closed]

I am in my user's home directory, I do: ls -a Then it shows me large number of hidden files and directories in my user's directory. Which of them I am allowed to remove? Which ones are necessary ...
1
vote
1answer
106 views

File monitoring to pre-empt hacker

We have a hacker occasionally attempting to hack a site, and so far unsuccessful, but I would like a way to determine if the site has been compromised (i.e., files edited). The type of attacks are LFI ...
1
vote
0answers
110 views

How can i determine the block size of an vxfs filesystem?

I am looking for a way to see what the current blocksize of an filesystem is. Normaly i would use tune2fs -l | grep "Block size", but that doesn't work on vxfs. I googled a bit and found fstyp -v ...
0
votes
1answer
108 views

Recovering truncated file

I'm in a peculiar situation. While editing a Perl program I accidentally truncated the file to zero length (using an Emacs lisp code I was developing). I need to recover that program... How do I that ...
5
votes
1answer
613 views

Cannot delete broken symbolic link

I have a symbolic link formerly pointing to a Dropbox directory. I don't know what I did wrong, but apparently now it points to itself. hyper@mypi:/home/hyper/test$ ls -l total 1024 lrwxrwxrwx 1 ...
0
votes
1answer
58 views

mke2fs difference between -i and -I options

sudo mke2fs Usage: mke2fs [-c|-l filename] [-b block-size] [-C cluster-size] [-i bytes-per-inode] [-I inode-size] [-J journal-options] [-G flex-group-size] [-N number-of-inodes] [-m ...
4
votes
3answers
181 views

Linux file system that ages off older files when partition is full

I am wondering if there is a file system equivalent to a round-robin database, which for a fixed size, ages off the oldest files. It is pretty easy to implement with a simple cron job, which I have, ...