View Single Post
  #4   (View Single Post)  
Old 28th February 2011
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,128
Default

Very strange indeed. I had a spare USB stick lying and under OpenBSD I split the one big FAT32 partition in two.
I bought the disk with the weird offset of 8046, so I left it that way.
The dmesg after inserting the stick :

Code:
umass0:0:0:-1: Attached to scbus0
da0 at umass-sim0 bus 0 scbus0 target 0 lun 0
da0: < USB DISK 2.0 PMAP> Removable Direct Access SCSI-0 device 
da0: 40.000MB/s transfers
da0: 3824MB (7831552 512 byte sectors: 255H 63S/T 487C)
GEOM: da0: partition 2 does not start on a track boundary.
GEOM: da0: partition 2 does not end on a track boundary.
GEOM: da0: partition 1 does not end on a track boundary.
The fdisk output:

Code:
# fdisk da0
******* Working on device /dev/da0 *******
parameters extracted from in-core disklabel are:
cylinders=487 heads=255 sectors/track=63 (16065 blks/cyl)

parameters to be used for BIOS calculations are:
cylinders=487 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 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA))
    start 8064, size 3907712 (1908 Meg), flag 0
        beg: cyl 0/ head 128/ sector 1;
        end: cyl 243/ head 190/ sector 11
The data for partition 2 is:
sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA))
    start 3915776, size 3915776 (1912 Meg), flag 0
        beg: cyl 243/ head 190/ sector 12;
        end: cyl 487/ head 125/ sector 22
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>
Note that you have a partition identifier/sysid of 11 decimal while I have 12 decimal. And I see '(LBA)' while you have not.

The '/dev/' output:
Code:
# ls -l /dev/da0*
crw-r-----  1 root  operator    0, 124 Feb 28 03:02 /dev/da0
crw-r-----  1 root  operator    0, 125 Feb 28 03:02 /dev/da0s1
crw-r-----  1 root  operator    0, 126 Feb 28 03:02 /dev/da0s2
I can mount both slice 1 and slice 2 without problem.
Code:
 # mount -o ro /dev/da0s1 /mnt
# ls -l /mnt
total 4620
-rwxr-xr-x  1 root  wheel  4726450 Feb 28 02:42 moderate_users_2.xwd
-rwxr-xr-x  1 root  wheel      191 Feb 28 02:42 reminders.txt
I am using FreeBSD 8.2-RC3.

You can burn a 7.2 fixit or livefs CD and see whether you can mount the disk partitions from there. Then try the fixit CD from to 7.3 and 7.4. When those still work try 8.0, and 8.1. That way you can discover where it went wrong and file a bug report.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump

Last edited by J65nko; 28th February 2011 at 06:49 AM. Reason: Added livefs CD alternative
Reply With Quote