Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Apr 2004 20:30:00 +0800
From:      Robert Storey <y2kbug@ms25.hinet.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: Auto-mounting ext2 slices
Message-ID:  <20040426203000.47eb04fc.y2kbug@ms25.hinet.net>
In-Reply-To: <20040426160937.60dbbe5a.y2kbug@ms25.hinet.net>
References:  <3C73D6BD-9718-11D8-931D-000393A4799C@nospammail.net> <20040426002855.GA49376@xor.obsecurity.org> <20040426160937.60dbbe5a.y2kbug@ms25.hinet.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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@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@sonic:~> mount_ext2fs /dev/ad0s6 /shared
  root@sonic:~> ls -d b*
  bison-1.35              bison-1.35.tar.gz       book.txt
  root@sonic:~> cd
  root@sonic:~> umount /shared
  root@sonic:~> cd /shared
  root@sonic:/shared> ls
  root@sonic:/shared> 

But how can I fsck it? I must be doing something wrong.

best regards,
Robert




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040426203000.47eb04fc.y2kbug>