Depends, create an OpenBSD partition between mbr and 1st sector of the msdos fs,
lie and say there lies a 4.2BSD filessytem just enough to permit writing a
disklabel,
and wallah:
t...@blue/pF ~&9$ sudo fdisk sd1
Disk: sd1 geometry: 248/255/63 [3987456 Sectors]
Offset: 0 Signature: 0xAA55
Starting Ending LBA Info:
#: id C H S - C H S [ start: size ]
-------------------------------------------------------------------------------
0: 06 0 130 60 - 248 52 60 [ 8249: 3979207 ] DOS > 32MB
1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
3: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
t...@blue/pF ~&10$ sudo disklabel sd1
# /dev/rsd1c:
type: SCSI
disk: SCSI disk
label: BlackBerry SD
duid: 0000000000000000
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 248
total sectors: 3987456
boundstart: 0
boundend: 3987456
drivedata: 0
16 partitions:
# size offset fstype [fsize bsize cpg]
c: 3987456 0 unused
i: 3979207 8249 MSDOS
t...@blue/pF ~&11$ sudo fdisk -e sd1
Enter 'help' for information
fdisk: 1> e 3
Starting Ending LBA Info:
#: id C H S - C H S [ start: size ]
-------------------------------------------------------------------------------
3: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
Partition id ('0' to disable) [0 - FF]: [0] (? for help) a6
Do you wish to edit in CHS mode? [n]
offset: [0] 1
size: [0] 8248
fdisk:*1> p
Disk: sd1 geometry: 248/255/63 [3987456 Sectors]
Offset: 0 Signature: 0xAA55
Starting Ending LBA Info:
#: id C H S - C H S [ start: size ]
-------------------------------------------------------------------------------
0: 06 0 130 60 - 248 52 60 [ 8249: 3979207 ] DOS > 32MB
1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
3: A6 0 0 2 - 0 130 59 [ 1: 8248 ] OpenBSD
fdisk:*1> w
Writing MBR at offset 0.
fdisk: 1> q
t...@blue/pF ~&12$ sudo disklabel -E sd1
Label editor (enter '?' for help at any prompt)
> a a
offset: [1]
size: [8248]
FS type: [4.2BSD]
> p
OpenBSD area: 1-3987456; size: 3987455; free: 25
# size offset fstype [fsize bsize cpg]
a: 8223 1 4.2BSD 2048 16384 1
c: 3987456 0 unused
i: 3979207 8249 MSDOS
> w
> q
No label changes.
> w
> q
No label changes.
t...@blue/pF ~&14$ sudo disklabel sd1
# /dev/rsd1c:
type: SCSI
disk: SCSI disk
label: BlackBerry SD
duid: 3b5828501def25dc
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 248
total sectors: 3987456
boundstart: 1
boundend: 8249
drivedata: 0
16 partitions:
# size offset fstype [fsize bsize cpg]
a: 8223 1 4.2BSD 2048 16384 1
c: 3987456 0 unused
i: 3979207 8249 MSDOS
Some have smaller gaps, but it still is pleanty enough space for this.
Penned by Mark Kettenis on 20101213 14:27.51, we have:
| > Date: Mon, 13 Dec 2010 13:17:26 -0500
| > From: Ted Unangst <[email protected]>
| >
| > On Mon, Dec 13, 2010 at 7:41 AM, Mark Kettenis <[email protected]>
wrote:
| > > A bit late to the game, but I don't really agree with Tedu that the
| > > changed behaviour is an improvement. Say I have configured
| > > hotplugd(8) such that it automatically mounts things when I plug in my
| > > camera. Now I reboot my machine, without unplugging the camera.
| > > Previously hotplugd(8) would remount things upon boot. Now suddenly
| > > it doesn't and I have to unplug and replug the camera.
| >
| > I think the solution to that is to make adding the duid to fstab work.
| > At boot, if the duid exists, it's mounted. If it doesn't, it doesn't
| > mount but also doesn't error out. This may already work even, I
| > haven't tried it.
|
| Sorry, but a FAT-formatted USB device (which most cameras effectively
| are) will never have a duid.
--
Todd Fries .. [email protected]
_____________________________________________
| \ 1.636.410.0632 (voice)
| Free Daemon Consulting, LLC \ 1.405.227.9094 (voice)
| http://FreeDaemonConsulting.com \ 1.866.792.3418 (FAX)
| 2525 NW Expy #525, Oklahoma City, OK 73112 \ sip:[email protected]
| "..in support of free software solutions." \ sip:[email protected]
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
37E7 D3EB 74D0 8D66 A68D B866 0326 204E 3F42 004A
http://todd.fries.net/pgp.txt