Hi Today I had problem with creating mbr partition on my pendrive. I tried using gpart as I am most familiar with this tool. On clean device I did: [~] # gpart create -s mbr da1 da1 created [~] # gpart add -t mbr da1 gpart: Invalid argument What the heck? In gpart(8) under partition types I can see 'The symbolic names currently understood are: [...] mbr' Oh well I tried: [~] # gpart add -t fat da1 gpart: Invalid argument [~] # gpart add -t vfat da1 gpart: Invalid argument [~] # gpart add -t fat32 da1 gpart: Invalid argument [~] # gpart add -t msdosfs da1 gpart: Invalid argument As I was in a little hurry I used sysinstall to create msdosfs [~] # /sbin/newfs_msdos /dev/da1s1 Did the thing. Few moments ago I discovered that I can easily create ntfs partition [~] # gpart add -t ntfs da1 da1s1 added Using decimal values for partition types which isn't mentioned in gpart(8) is also supported: [~] # gpart add -t \!11 da1 da1s1 added Gpart(8) is unprecise especially itemising in partition types mbr which is partition scheme. Remembering decimal values for each partition types is inpractical, maybe most common should have theirs symbolic name.
On 19 November 2010 01:06, Krzysztof Dajka <alteriks@gmail.com> wrote:> Hi > Today I had problem with creating mbr partition on my pendrive. > I tried using gpart as I am most familiar with this tool. On clean device I did: > > [~] # ?gpart create -s mbr da1 > da1 created > [~] # ?gpart add ?-t mbr da1 > gpart: Invalid argumentHmm.. I use the next sequence (on 8.x): gpart create -s mbr ${device} gpart add -b 63 -t freebsd ${device} gpart create -s bsd ${device}s1 gpart add -t freebsd-ufs -s 1024m ${device}s1 [..more partitions there..] gpart bootcode -b /boot/boot0 ${device} gpart bootcode -b /boot/boot ${device}s1 gpart set -a active -i 1 ${device} -- wbr, pluknet
On 19.11.2010 1:06, Krzysztof Dajka wrote:> [~] # gpart create -s mbr da1 > da1 created > [~] # gpart add -t mbr da1 > gpart: Invalid argument > > What the heck? In gpart(8) under partition types I can see 'The > symbolic names currently understood are: [...] mbr'"mbr" partition type is a symbolic name for GPT's type 024dee41-33e7-11d3-9d69-0008c781f39f. MBR does not have similar partition type. -- WBR, Andrey V. Elsukov -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 488 bytes Desc: OpenPGP digital signature Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20101119/55f8eca2/signature.pgp