Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting up boot loader

Status
Not open for further replies.

martvar

Programmer
Jan 10, 2005
19
SK
How can I set up the boot loader to mount
as root filesystem filesystem that is different
than that which is mounted to /boot directory.
Thanks a lot for advise, ...
 
What platform are you using? On a Sparc platform, you have to install the boot block on the root partition. So if you install one file system on /dev/rdsk/c0t0d0s0 and another one on /dev/rdsk/c0t0d0s6, you will install the boot block on both partition 0 and 6. To select which filesystem you boot your workstation to, you would use:

boot disk0:a "For Partition c0t0d0s0"
boot disk0:f "For Partition c0t0d0s6"

To install the boot block, change directory to: /usr/platform/<workstation platform>/lib/fs/ufs

/usr/sbin/installboot ./bootblk /dev/rdsk/c0t0d0s0 "for partition (a)"

/usr/sbin/installboot ./bootblk /dev/rdsk/c0t0d0s6 "for partition (f)
 
I'm using x86 platform,
and I want to boot from one partition
e.g. c0t0d0s0 and mount another filesystem
e.g. c0t0d0s6 to root in directory tree.
Someone adviced me to set the root filesystem
in /etc/system file, but how can that file
be used to set the root filesystem when it is a part
of that filesystem and can not be read until
that filesystem is mounted.
 
I am assuming you are not trying to mount another UFS (Unix File System) as I first thought. To do this:

Create a directory under root:
Example: mkdir mountpoint

Run the mount command:
Example: mount /dev/dsk/c0t0d0s06 /mountpoint
 
I want to set the bootloader to mount
to root directory / the filesystem
that is different than the filesystem
mounted to /boot directory.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top