The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Make non-bootable scsi drive, bootable bfisk Filesystems, Disks and Memory 1 02-17-2007 02:54 AM
iso files to make bootable dvd image bdsffl SUN Solaris 0 11-18-2006 02:25 AM
Size of LVM header in non bootable disk gorayen HP-UX 0 12-06-2005 07:21 AM
recover DIsk and make bootable larryase UNIX for Dummies Questions & Answers 4 07-05-2005 02:29 PM
Bootable disk sshokunbi UNIX for Advanced & Expert Users 6 02-02-2002 12:01 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-12-2007
pondlife pondlife is offline
Registered User
  
 

Join Date: May 2004
Location: UK
Posts: 85
Question How to make a bootable disk?

The second disk that I'm trying to make bootable is to hold another version of Solaris (9).

I've created the partitions with format and labeled the disk - created the filesystems with newfs - created and mounted the directories.

...but I think I've missed something out like using fdisk to create a bootable partition (8 I think?). I'm not sure how to do this; do I need to create partition 8 with format first? What fdisk command do I need for creating the boot slice?


Thanks in advance.
  #2 (permalink)  
Old 01-12-2007
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,209
What architecture?
  #3 (permalink)  
Old 01-12-2007
pondlife pondlife is offline
Registered User
  
 

Join Date: May 2004
Location: UK
Posts: 85
# isainfo -kv
64-bit sparcv9 kernel modules

# uname -a
SunOS icarus 5.8 Generic_117350-27 sun4u sparc SUNW,Sun-Fire-V240

Not sure what type of disks they are but here's the partition table:

Quote:
Current partition table (original):
Total disk cylinders available: 14087 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 1279 6.21GB (1280/0/0) 13025280
1 swap wm 1281 - 1921 3.11GB (641/0/0) 6522816
2 backup wu 0 - 14086 68.35GB (14087/0/0) 143349312
3 unassigned wm 1922 - 8961 34.16GB (7040/0/0) 71639040
4 usr wm 8962 - 10241 6.21GB (1280/0/0) 13025280
5 unassigned wm 10242 - 12801 12.42GB (2560/0/0) 26050560
6 var wm 12802 - 14081 6.21GB (1280/0/0) 13025280
7 unassigned wm 0 0 (0/0/0) 0
Will doing an fdisk to toggle the bootability mess up my partitions?

I get this when I try the fdisk:

# fdisk /dev/dsk/c0t2d0s0
fdisk: Cannot stat device /dev/dsk/c0t2d0s0.

Any ideas will be gratefully appreciated
  #4 (permalink)  
Old 01-12-2007
pressy's Avatar
pressy pressy is offline Forum Staff  
solaris cultist
  
 

Join Date: Aug 2003
Location: Vienna / Austria (Europe) [EARTH]
Posts: 726
with solaris on sparc you don't need fdisk to set a boot flag on a partition...

use "installboot" to install a bootblock on a slice:

# installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c0t2d0s0

for more information see "man installboot"

regards pressy
  #5 (permalink)  
Old 01-12-2007
pondlife pondlife is offline
Registered User
  
 

Join Date: May 2004
Location: UK
Posts: 85
Hey pressy,

Thanks for the reply. I've just tried the installboot command again (I've previously wiped the drive - this is about my third attempt ) but I got the following error:

# installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c0t2d0s0
/dev/rdsk/c0t2d0s0: Not a character device

Have I screwed something up?

Cheers, p.
  #6 (permalink)  
Old 01-12-2007
pondlife pondlife is offline
Registered User
  
 

Join Date: May 2004
Location: UK
Posts: 85
Hold the phones, I've just spotted one of my mistakes: my disk is on controller 1 (c1t2d0s0)....

The installboot command has now worked correctly.

I'm now left with an empty disk that's been partitioned ... I've now got to restore Solaris 9 from tape, will this write over the installboot area?

My previous restore was interactive and I just added all the directories and then extracted them, is this correct?

Many thanks, p.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:38 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0