[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Creating an MSDOS partiotion on OpenBSD



Hello,

I have an OpenBSD 3.7 i386 installation on an external usb-enclosure.
I have some space left, and I would like to create an msdos partition
(to transfer files between windows and OpenBSD).

I have tried to create one using OpenBSD's fdisk; then I have
formatted the new partition in windows xp.

But now I don't see how to access the new partition from OpenBSD -- it
does not appear in disklabel, so I don't know how to mount it.

Here is some relevant data:

mhv2040at# dmesg | grep sd0
sd0 at scsibus1 targ 1 lun 0: <FUJITSU, MHV2040AT, 0000> SCSI0 0/direct fixed
sd0: 38154MB, 38154 cyl, 64 head, 32 sec, 512 bytes/sec, 78140161 sec total
dkcsum: sd0 matched BIOS disk 80
root on sd0a

mhv2040at# fdisk sd0
Disk: sd0       geometry: 4864/255/63 [78140160 Sectors]
Offset: 0       Signature: 0xAA55
         Starting       Ending       LBA Info:
 #: id    C   H  S -    C   H  S [       start:      size   ]
------------------------------------------------------------------------
*0: A6    0   1  1 - 4177 254 63 [          63:    67119507 ] OpenBSD
 1: 0C 4178   0  1 - 4308 254 63 [    67119570:     2104515 ] Win95 FAT32L
 2: 00    0   0  0 -    0   0  0 [           0:           0 ] unused
 3: 00    0   0  0 -    0   0  0 [           0:           0 ] unused

mhv2040at# disklabel sd0
# using MBR partition 0: type A6 off 63 (0x3f) size 67119507 (0x4002993)
# /dev/rsd0c:
type: SCSI
disk: SCSI disk
label: MHV2040AT
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 38154
total sectors: 78140161
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

16 partitions:
#             size        offset  fstype [fsize bsize  cpg]
  a:        524225            63  4.2BSD   2048 16384  255 # Cyl     0*-   255
  b:       2097152        524288    swap                   # Cyl   256 -  1279
  c:      78140161             0  unused      0     0      # Cyl     0 - 38154*
  d:        524288       2621440  4.2BSD   2048 16384  256 # Cyl  1280 -  1535
  e:       2097152       3145728  4.2BSD   2048 16384  323 # Cyl  1536 -  2559
  f:       4194304       5242880  4.2BSD   2048 16384  323 # Cyl  2560 -  4607
  g:        524288       9437184  4.2BSD   2048 16384  256 # Cyl  4608 -  4863
  h:       4194304       9961472  4.2BSD   2048 16384  323 # Cyl  4864 -  6911
  i:       2097152      14155776  4.2BSD   2048 16384  323 # Cyl  6912 -  7935
  j:       2097152      16252928  4.2BSD   2048 16384  323 # Cyl  7936 -  8959
  k:       2097152      18350080  4.2BSD   2048 16384  323 # Cyl  8960 -  9983
  l:       4194304      20447232  4.2BSD   2048 16384  323 # Cyl  9984 - 12031
  m:       8388608      24641536  4.2BSD   2048 16384  323 # Cyl 12032 - 16127
  n:      34089426      33030144  4.2BSD   2048 16384  323 # Cyl 16128 - 32773*

mhv2040at# mount
/dev/sd0a on / type ffs (local)
/dev/sd0l on /home type ffs (local, nodev, nosuid)
/dev/sd0m on /mozilla type ffs (local, nodev, nosuid)
/dev/sd0n on /share type ffs (local, nodev, nosuid)
/dev/sd0d on /tmp type ffs (local, nodev, nosuid)
/dev/sd0f on /usr type ffs (local, nodev)
/dev/sd0g on /usr/X11R6 type ffs (local, nodev)
/dev/sd0h on /usr/local type ffs (local, nodev)
/dev/sd0e on /var type ffs (local, nodev, nosuid)
/dev/sd0j on /var/mail type ffs (local, nodev, nosuid)
/dev/sd0k on /var/mysql type ffs (local, nodev, nosuid)
/dev/sd0i on /var/www type ffs (local, nodev, nosuid)

mhv2040at# ll /dev/sd0*
brw-r-----  1 root  operator    4,   0 Sep  4 22:33 /dev/sd0a
brw-r-----  1 root  operator    4,   1 Sep  4 22:33 /dev/sd0b
brw-r-----  1 root  operator    4,   2 Sep  4 22:33 /dev/sd0c
brw-r-----  1 root  operator    4,   3 Sep  4 22:33 /dev/sd0d
brw-r-----  1 root  operator    4,   4 Sep  4 22:33 /dev/sd0e
brw-r-----  1 root  operator    4,   5 Sep  4 22:33 /dev/sd0f
brw-r-----  1 root  operator    4,   6 Sep  4 22:33 /dev/sd0g
brw-r-----  1 root  operator    4,   7 Sep  4 22:33 /dev/sd0h
brw-r-----  1 root  operator    4,   8 Sep  4 22:33 /dev/sd0i
brw-r-----  1 root  operator    4,   9 Sep  4 22:33 /dev/sd0j
brw-r-----  1 root  operator    4,  10 Sep  4 22:33 /dev/sd0k
brw-r-----  1 root  operator    4,  11 Sep  4 22:33 /dev/sd0l
brw-r-----  1 root  operator    4,  12 Sep  4 22:33 /dev/sd0m
brw-r-----  1 root  operator    4,  13 Sep  4 22:33 /dev/sd0n
brw-r-----  1 root  operator    4,  14 Sep  4 22:33 /dev/sd0o
brw-r-----  1 root  operator    4,  15 Sep  4 22:33 /dev/sd0p

mhv2040at#

I think sd0o and sd0p are the leftovers from the installation
procedure (I might have created sd0o and sd0p, but deleted it during
the installation).

Cheers,
Constantine.