Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.
5 votes

Manually telling EXT4 about bad sectors?

This is serious: Make a backup of your data and throw away that hard drive. Until you can make that backup, don't use the drive; disconnect it. There's a direct way to tell ext4 which sectors are bad ...
user avatar
3 votes

Tried to open external harddrive img file

Use losetup to associate the image file with a free /dev/loopN device: losetup -P -f /mnt/usb/vdisk1.img This will report the name of the actual loop device used: if there are no other loop devices ...
user avatar
  • 67.1k
3 votes
Accepted

Copy on write for directories?

Are there any particular technical obstacles that need to be overcome? One big obstacle is the difference in semantics. Copying a directory (in the case where the target doesn’t already exist) ...
user avatar
3 votes

Manually telling EXT4 about bad sectors?

About 20-25 years ago, before disks had internal defect management, it made sense for the filesystem to do block level defect management and add blocks to bad block lists both while formatting and as ...
user avatar
  • 2,661
2 votes
Accepted

How can i add up unused disk to existing partition folder

Not at all. sda3 is simply a partition on sda, and not on sdb. You can't change that. What you can do is have a multi-disk volume that spans multiple disks, but first only includes sdb. you copy your ...
user avatar
1 vote
Accepted

Why does Parted mkpart ask for file system type, if I can later format with another file system?

Depending on where you're going to use that disk: there might be problems - Linux doesn't care, but other OS'es/appliances might. Years ago I had a box for recording TV that needed an external disk to ...
user avatar
1 vote
Accepted

Manually telling EXT4 about bad sectors?

You can use the "badblocks" command together with e2fsck to specify a list of bad disk blocks to the filesystem. As others have commented, that is not great, because that means your disk is ...
user avatar
  • 1,256
1 vote

Are commas and dots accepted in folder names?

Yes. Commas and dots are fine. Actually, any character apart from / and NULs (ASCII zero) is acceptable as part of a filename. You would have to escape "difficult" character, but that is ...
user avatar
  • 1,198
1 vote

How to tag everything stored in a Linux filesystem?

The simplest way is to create a tags/ directory and in there make directories for each tag. Then link (hard links are probably best) your file into the tag directory to assign it that tag. One thing ...
user avatar
  • 111
1 vote

Tried to open external harddrive img file

Use losetup to create a loop device from the image losetup -P -f /mnt/usb/vdisk1.img the content of the image will be available as /dev/loopX, if the LVM structure on it isn't auto activated use vgs ...
user avatar
1 vote

Ideas to clear user xattrs from files without get/setfattr

GNU tar can read xattrs and do filtering on them, see https://www.gnu.org/software/tar/manual/html_node/Extended-File-Attributes.html. A Squashfs filesystem can now be created from a tar archive using ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible