cannot mount slices of usbdrive

till plewe till.plewe at gmail.com
Sat May 2 04:06:10 UTC 2009


I have a  usbdrive which was used on FreeBSD 6 or 7 but cannot
be mounted now (on CURRENT with generic kernel). The drive is
recognized but the individual slices do not seem to exist (see below).

Any pointers on how to recover the content of the disk would be appreciated.
I was thinking of building a new disk label from the fdisk output but
am not sure
that I understand what is involved properly (where does the in-core disklabel
fdisk uses come from?)

1) # mount /dev/da1s1 /mnt1
mount: /dev/da1s1 : No such file or directory
-------------------------------------
2) # dmesg
da1 at umass-sim2 bus 2 target 0 lun 0
da1: <SAMSUNG HD753LJ > Fixed Direct Access SCSI-2 device
da1: 40.000MB/s transfers
da1: 715404MB (1465149168 512 byte sectors: 255H 63S/T 91201C)
----------------------------------------
3) # bsdlabel /dev/da1
# /dev/da1:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a: 1465149152       16    unused        0     0
  c: 1465149168        0    unused        0     0         # "raw"
part, don't edit
------------------------------------------------------------------------
4) # fdisk /dev/da1
******* Working on device /dev/da1 *******
parameters extracted from in-core disklabel are:
cylinders=91201 heads=255 sectors/track=63 (16065 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=91201 heads=255 sectors/track=63 (16065 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 63, size 377479242 (184316 Meg), flag 80 (active)
        beg: cyl 0/ head 1/ sector 1;
        end: cyl 1023/ head 254/ sector 63
The data for partition 2 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 377479305, size 377479305 (184316 Meg), flag 80 (active)
        beg: cyl 1023/ head 255/ sector 63;
        end: cyl 1023/ head 254/ sector 63
The data for partition 3 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 754958610, size 377479305 (184316 Meg), flag 80 (active)
        beg: cyl 1023/ head 255/ sector 63;
        end: cyl 1023/ head 254/ sector 63
The data for partition 4 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 1132437915, size 332706150 (162454 Meg), flag 80 (active)
        beg: cyl 1023/ head 255/ sector 63;
        end: cyl 1023/ head 254/ sector 63

5) # fdisk /dev/da1s1
fdisk: unable to get correct path for /dev/da1s1: No such file or directory


More information about the freebsd-questions mailing list