Questions tagged [mkfs]
33 questions
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
- 7
- 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
- 549
- 6
- 20
-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