Quote:
Originally Posted by bluefish1
So I would run:
losetup --offset 404 /dev/loop0 /dev/md2
Then run:
fsck -f /dev/loop0
|
The --offset parameter is given in bytes. According to the screen dump, your first partition starts at sector 1. Since the first sector is 0 and each sector is 512 bytes,
--offset 512 would be the correct parameter for the first partition, while
--offset 208384 (407 * 512) would create a loop device starting at the second partition.
Since the 2nd partition is a PV for LVM, you'll also have to activate the volume group (vgscan/vgmknodes) and possibly also the logical volume for the LVM device to appear under /dev/
<volume group>.
Quote:
Originally Posted by bluefish1
oops... I would have to mount the loop0 first before running fsck?
mount /dev/loop0 /mnt/systemtocheck
|
No, you should
never run fsck on a mounted filesystem.