DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 6th November 2010
wesley wesley is offline
Real Name: Wesley
Shell Scout
 
Join Date: Aug 2009
Location: Reunion Island
Posts: 92
Default create a FAT32 partition and format it.

Hi,

I added a second disk to my OpenBSD 4.7 machine.
i done this :
fdisk -e w
I created a first full partition type : 0b

when i type : fdisk wd1, i have the following
0: 0B 0 0 1 - 41609 15 63 [ 0: 41942880 ] Win95 FAT-32

Now, i suppose i need a slice to format it.
disklabel -E wd1
I created a slice a but FSTYPE is 4.2BSD. I'm wrong somewhere.
disklabel wd1a
# size offset fstype [fsize bsize cpg]
a: 41943040 0 4.2BSD 2048 16384 1
c: 41943040 0 unused

How can i proceed to format a disk FAT32 ?
thanks
Reply With Quote
  #2   (View Single Post)  
Old 6th November 2010
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

OpenBSD normally probes the disk and automatically generates a pseudo disklabel with a single slice 'i' which spans the entire MBR partition.

I haven't really read the code that's responsible for this but maybe it also probes the filesystem for FAT metadata?

Try manually creating a disklabel 'i' with the type 'MSDOS', after that.. run:
$ sudo newfs_msdos -F 32 /dev/rwd1i

I'm not sure if this will work or not though, creating the filesystem on Windows is the more typical method.
Reply With Quote
  #3   (View Single Post)  
Old 6th November 2010
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by BSDfan666 View Post
OpenBSD normally probes the disk and automatically generates a pseudo disklabel with a single slice 'i' which spans the entire MBR partition.
In addition, disklabel(8) simply labels the first foreign file system encountered as "i", or whatever is the next available letter after "i". In looking at the code, I suspect the reason that "i" is used is because it is midway between "a" & "p".

FWIW.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tested-twice foolproof mounting FAT32 thumbdrive on FreeBSD jb_daefo Guides 1 11th November 2008 04:07 AM
Formatting fat32 drive quickly map7 FreeBSD General 10 26th July 2008 05:17 PM
Tried to create new partition using sysinstall but change is not permanent disappearedng FreeBSD General 7 6th July 2008 10:00 PM
How do I skip format on some partitions in a fresh install? Quaxo OpenBSD Installation and Upgrading 9 25th June 2008 07:57 PM
strange with dvd+rw-format cyberboy FreeBSD General 0 26th May 2008 05:43 PM


All times are GMT. The time now is 02:14 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick