Auto-mounting ext2 slices
Robert Storey
y2kbug at ms25.hinet.net
Mon Apr 26 05:32:19 PDT 2004
I am not having good luck doing an fsck on /dev/ad0s6 (which is indeed a Linux
ext2 partition). Here's what happens (note that partition is unmounted):
root at sonic:~> e2fsck /dev/ad0s6
e2fsck 1.32 (09-Nov-2002)
The filesystem size (according to the superblock) is 1343427 blocks
The physical size of the device is 0 blocks
Either the superblock or the partition table is likely to be corrupt!
Abort<y>? yes
root at sonic:~> fsck_ext2fs /dev/ad0s6
** /dev/ad0s6
BAD SUPER BLOCK: MAGIC NUMBER WRONG
ioctl (GCINFO): Inappropriate ioctl for device
/dev/ad0s6: can't read disk label
This partition is not dirty, and I can mount and unmount it if I want to:
root at sonic:~> mount_ext2fs /dev/ad0s6 /shared
root at sonic:~> ls -d b*
bison-1.35 bison-1.35.tar.gz book.txt
root at sonic:~> cd
root at sonic:~> umount /shared
root at sonic:~> cd /shared
root at sonic:/shared> ls
root at sonic:/shared>
But how can I fsck it? I must be doing something wrong.
best regards,
Robert
More information about the freebsd-questions
mailing list