cannot mount slices of usbdrive

2009-05-01 Thread till plewe
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:  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   offsetfstype   [fsize bsize bps/cpg]
  a: 1465149152   16unused0 0
  c: 14651491680unused0 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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: cannot mount slices of usbdrive

2009-05-01 Thread Matthias Apitz
El día Saturday, May 02, 2009 a las 01:06:09PM +0900, till plewe escribió:

> 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).
...

I have had the same problem: booting CURRENT from an USB key and wanting
to get access to the SSD partitions created with RELENG_7 kernel in the
EeePC. I've found no way to do and labeled the SSD from scratch (had
even to overwrite the 1st blocks with dd(1) to make fdisk(1M) create
partitions there).

In your case: boot a RELENG_7 rescue CD, mount the usbdrive and backup
the data (via LAN) to some other place.

matthias

-- 
Matthias Apitz
Manager Technical Support - OCLC GmbH
Gruenwalder Weg 28g - 82041 Oberhaching - Germany
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e  - w http://www.oclc.org/ http://www.UnixArea.de/
People who hate Microsoft Windows use Linux but people who love UNIX use 
FreeBSD.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: cannot mount slices of usbdrive

2009-05-01 Thread till plewe
On 5/2/09, Matthias Apitz  wrote:
> El día Saturday, May 02, 2009 a las 01:06:09PM +0900, till plewe escribió:
>
>> 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).
> ...
>
> I have had the same problem: booting CURRENT from an USB key and wanting
> to get access to the SSD partitions created with RELENG_7 kernel in the
> EeePC. I've found no way to do and labeled the SSD from scratch (had
> even to overwrite the 1st blocks with dd(1) to make fdisk(1M) create
> partitions there).
>
> In your case: boot a RELENG_7 rescue CD, mount the usbdrive and backup
> the data (via LAN) to some other place.
>
>   matthias
>

Thanks. That sounds much more reasonable than what I was planning to do.
I don't know why I wasn't thinking of the rescue CDs (most likely
since I did not
have to use them before).
I'll give it a try once I find a big enough backup disk.

- Till


> --
> Matthias Apitz
> Manager Technical Support - OCLC GmbH
> Gruenwalder Weg 28g - 82041 Oberhaching - Germany
> t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
> e  - w http://www.oclc.org/ http://www.UnixArea.de/
> People who hate Microsoft Windows use Linux but people who love UNIX use
> FreeBSD.
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"