On Tuesday 22 November 2005 04.00, you wrote:
> Per-Olov Sjvholm wrote:
> > Hi
> >
> > Maybe my brain is sleeping. But I can't find a solution to why my
> > externally connected disk with a FAT partition wont show up in OpenBSD. A
> > simple USB memory stick seems to work and the FAT partition on the stick
> > show up as "sd1i" and can easily be mounted...
>
> your simple USB memory stick had NO disklabel on it, so OpenBSD made a
> "pretend" one out of nothing for you.  Disklabels are an OpenBSD thing,
> they don't exist naturally on DOS-only media.
>
> > I have attached an externa USB Sarotech disk storage with a 250 GB SATA
> > disk inside to my OpenBSD 3.8. It show up as the following in dmesg:
> > sd1 at scsibus3 targ 1 lun 0: <Maxtor 7, Y250M0, YAR5> SCSI0 0/direct
> > fixed sd1: 238418MB, 238418 cyl, 64 head, 32 sec, 512 bytes/sec,
> > 488281250 sec total
> >
> > I have created partitions as follows:
> > [EMAIL PROTECTED]:~#fdisk -e sd1
> > fdisk: sysctl(machdep.bios.diskinfo): Device not configured
> > Enter 'help' for information
> > fdisk: 1> p
> > Disk: sd1       geometry: 238418/64/32 [488281250 Sectors]
> > Offset: 0       Signature: 0xAA55
> >          Starting       Ending       LBA Info:
> >  #: id    C   H  S -    C   H  S [       start:      size   ]
> > ------------------------------------------------------------------------
> > *0: A6    0   0  1 - 210000  63 32 [           0:   430082048 ] OpenBSD
> >  1: 0C 210001   0  1 - 238417  63 32 [   430082048:    58198016 ] Win95
> > FAT32L 2: 00    0   0  0 -    0   0  0 [           0:           0 ]
> > unused 3: 00    0   0  0 -    0   0  0 [           0:           0 ]
> > unused
> >
> > I have formatted sd1a and mounted it sucessfully as a 210GB std 4.2BSD
> > partion on /mnt/TEST. I have also  moved the external disk to a Windows
> > XP machine which can use the 27GB FAT32L partion that is left. However...
> > A "disklabel sd1" wont show anything about my FAT partition at all. I can
> > see that the space is there (subtraction of "a" from "c"). But that is
> > all.
> >
> >
> > [EMAIL PROTECTED]:~#disklabel  sd1
>
> ...
>
> > 16 partitions:
> > #             size        offset  fstype [fsize bsize  cpg]
> >   a:     430082048             0  4.2BSD   2048 16384  323 # Cyl     0
> > -210000 c:     488281250             0  unused      0     0      # Cyl   
> >  0 -238418*
> >
> > ok ok my brain is sleeping. But I don't see where the problem is...
> > Do I have to add this FAT partition manually according to section 14.16.1
> > of the FAQ? Or what?
>
> You created a REAL disklabel on your disk as part of creating that
> OpenBSD partition, and it was probably on the disk BEFORE you created
> the FAT partition, so yes, you have to manually add the FAT partition to
> that disklabel.  OpenBSD won't do that for you.
>
> Nick.

Hi Nick

Yes I think the label was set before I created the FAT partition... 


Setting the offset etc is an easy thing.. But how should I set "fsize", 
"bsize"  and "cpg" on the windows partition when adding it using "disklabel 
-e sd1". And last... How should  I set the "fstype" (it is a "0C" FAT32L 
partition). MSDOS, FAT32L, FAT or what? 

(can this info be found in any manpage or FAQ that I have missed?)

Tnx in advance
Per-Olov
-- 
GPG keyID: 4DB2 83CE
GPG fingerprint: 45E8 3D0E DE05 B714 D549 45BC CFB4 BBE9 4DB2 83CE

Reply via email to