Re: how to fsck

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Brad Brad wrote:
> My encrypted /home/ mounts and works fine, but i can't fsck it.  I unmount
> it, and try fsck /dev/loop2 but i'm told there's no first or second
> superblock.  The /dev/loop2 loop still exists with definatly the correct
> password as i can remount it without being prompted for a password.
> 
> Its ext3 on a software raid5 looping through /dev/md0.  Am i fscking the
> wrong place? or, since it mounts ok still, should i copy the files off to
> another drive, recreate filesystem, then copy files back?

On correctly set up box, umount detaches loop, so file system data won't be
there for fsck to find. If you have loop mount options defined in
/etc/fstab, do this:

umount /home
losetup -F /dev/loop2
fsck -t ext3 -f -y /dev/loop2
losetup -d /dev/loop2
mount /home

Regards,
Jari Ruusu <jari.ruusu@xxxxxxxxxx>

-
Linux-crypto:  cryptography in and on the Linux system
Archive:       http://mail.nl.linux.org/linux-crypto/


[Index of Archives]     [Kernel]     [Linux Crypto]     [Gnu Crypto]     [Gnu Classpath]     [Netfilter]     [Bugtraq]
  Powered by Linux