Questions tagged [mkfs]

34 questions
0
votes
0 answers

What are the differences between these ext4 features: dir_nlink vs large_dir

From the ext4(5) man page: dir_nlink Normally, ext4 allows an inode to have no more than 65,000 hard links. This applies to regular files as well as directories, which means that there can be no more than 64,998 sub‐directories in a directory…
0
votes
1 answer

Mounted .img file does not clear up disk space when files are deleted

I have a requirement to use more inodes than normally available on most file systems. Therefore, I create and mount a ext4 filesystem with a custom inode setting: dd if=/dev/zero of=loop0.img bs=1MB count=5000 losetup --find --show…
ParoX
  • 302
  • 1
  • 6
  • 21
0
votes
0 answers

mkfs + any solution for “could not read block” or disk replacing

we doing mkfs on the disk sda as the following mkfs.ext4 -j -m 0 /dev/sda -F mke2fs 1.42.9 (28-Dec-2013) Warning: could not erase sector 2: Attempt to write block to filesystem resulted in short write Filesystem label= OS type: Linux Block…
King David
  • 433
  • 4
  • 17
-1
votes
2 answers

getting "/dev/sdb is apparently in use by the system" after adding an independent disk to the machine

In my centos7 when I add and partition a new disk to the machine and try to make files system on top of it , I get this annoying error message /dev/sdb is apparently in use by the system; will not make a filesystem here The point is that the disk…
Houdini
  • 11
  • 1
  • 3
1 2
3