Tag Info

New answers tagged

1

You need to add a label to the partition. To do this, either use a filesystem specific tool, such as e2label for ext2/3/4 or use gparted. For example: #e2label /dev/sda2 Schijf-2 Do NOT mount the partition on a mount point (such as /home/Schijf-2) as it will then be part of that directory tree in your file manager and consequently will not show up. The ...


1

Mount point name doesn't matter (in the pic below sda2 labelled as "Schijf-2" is mounted under /media/whatever). You'll have to label your partition (assuming sda2 is your partition): e2label /dev/sda2 Schijf-2 Edit: garrethTheRed's answer did ring a bell... Actually, the entry in /etc/fstab is irrelevant, whether you use UUID, LABEL or even /dev/sda2 it ...


0

UUID=913aedd1-9c06-46fa-a26e-32bf5ef0a150 /media/Schijf-2 ext4 rw,relatime,discard 0 2 See man fstab for the complete list and description of the options.


0

If you care much about battery life, you should not waste cpu time on compression. For example, just browsing the web would cause your system to spend energy on compressing cached data. If you're having storage space issues, consider using remote storage more often (see samba, sshfs, etc). You may still want to use btrfs for it's other features useful to ...


0

You will need to use TestDisk's sister program PhotoRec to recover your files. It's been a couple of years since I last used these programs, but IIRC you won't be able to recover them in-place, so I hope you have enough spare HD space to recover your files to. It's a good idea to read through the relevant TestDisk & PhotoRec docs before you attempt to ...


0

I need help on this as well. Was using a version of Ubuntu and accidentally formatted my Windows main and recovery partition, along with everything that was on it. Any help would be appreciated. P.S. I'm new to Linux so any installation instructions would also go a long way. Thanks.


4

The imap command in debugfs can tell you where an inode is. Example: $ debugfs -R 'imap <128901>' /dev/whatever debugfs 1.42.5 (29-Jul-2012) Inode 128901 is part of block group 16 located at block 524344, offset 0x0400 To get a raw dump of inode 128901, you'd seek to byte 524344*block_size + 0x0400 and read inode_size bytes. You can get the ...


3

You can optimize the directory using fsck.ext4 -D on an unmounted filesystem: -D Optimize directories in filesystem. This option causes e2fsck to try to optimize all directories, either by reindexing them if the filesystem supports directory indexing, or by sorting and compressing directories for smaller ...


1

Could be that: The immutable flag is set. As PM 2Ring pointed out - you can use the lsattr ldlinux.sys command and look for the 'i' flag. If this is the case, a chattr -i should remove it. The filesystem is mounted read only (take at look at the output for the mount command) Reference: chattr wikipedia page


0

As mentioned in the question: What does size of a directory mean in output of 'ls -l' command? The metadata of the folder is always stored in blocks, so it allocates 4kb even if there is not much data that needs to be stored. -Duplicate Question.



Top 50 recent answers are included