Auto-mounting ext2 slices

Robert Storey y2kbug at ms25.hinet.net
Mon Apr 26 05:49:14 PDT 2004


Just to make sure my partition table wasn't borked, I booted into Linux, and
fsck on the same ext2 partition does work as expected:

  root at sonic:~> fsck /dev/hda6
  fsck 1.35-WIP (21-Aug-2003)
  e2fsck 1.35-WIP (21-Aug-2003)
  /dev/hda6: clean, 7920/671744 files, 90705/1343427 blocks

So, I don't know...

 - Robert

On Mon, 26 Apr 2004 20:30:00 +0800
Robert Storey <y2kbug at ms25.hinet.net> wrote:

> 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