On Thu, 15 Feb 2007, John Brewer wrote:
Does this tool support a function like a /mbr in old dos fdisk?
fdisk(1M):
DESCRIPTION
This command is used to do the following:
[ ... ]
o Install the master boot record that is put in the first
sector of the fixed disk on x86 systems only
[ ... ]
-b master_boot
Specify the file master_boot as the master boot program.
The default master boot program is
/usr/lib/fs/ufs/mboot.
[ ... ]
-n
Don't update fdisk table unless explicitly specified by
another option. If no other options are used, -n will
only write the master boot record to the disk. In addi-
tion, note that fdisk will not come up in interactive
mode if the -n option is specified.
Hence: "fdisk -n /dev/dsk/....." should do what you want.
The standard bootblock, even though it is named /usr/lib/fs/ufs/mboot,
just boots the "active" partition, as does the MSDOS/Windows one (the
'ufs' is a misnomer it doesn't look for that). You may need to set the
partition you wish to boot to 'active', though.
Why do you need a new MBR ? Doesn't grub do the job ? In what way does it
fail ?
FrankH.
This message posted from opensolaris.org
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org