Adding New Hard Disk

Submitted by xwings
on January 20, 2004 - 12:04pm
Title   : Adding New Hard Disk
Os      : Unix
Distro  : Solaris 9 x86
URL     : http://


Solaris 9 x86 Disk Controller Table

IDE

/dev/rdsk/c0d0s0~7Primary IDE Master
/dev/rdsk/c0d1s0~7Primary IDE Slave
/dev/rdsk/c1d0s0~7Secondary IDE Master
/dev/rdsk/c1d1s0~7Secondary IDE Slave

SCSI

/dev/rdsk/c0t0d0s0~7First SCSI ?No 0 ? Disk Drive
/dev/rdsk/c0t1d0s0~7First SCSI ?No 1 ? Disk Drive
/dev/rdsk/c0t2d0s0~7First SCSI ?No 2 ? Disk Drive
/dev/rdsk/c0t3d0s0~7First SCSI ?No 3 ? Disk Drive
/dev/rdsk/c0t4d0s0~7First SCSI ?No 4 ? Disk Drive
/dev/rdsk/c0t5d0s0~7First SCSI ?No 5 ? Disk Drive
/dev/rdsk/c0t6d0s0~7First SCSI ?No 6 ? Disk Drive
/dev/rdsk/c0t7d0s0~7First SCSI ?No 7 ? Disk Drive

After Putting In New HDD Login as root.

# drvconfig ( configure the /devices directory )
# disks ( creates /dev entries for hard disks attached to the system )
# format
Searching for disks...done

AVAILABLE DISK SELECTIONS:
0. c0d0 
/pci@0,0/pci-ide@7,1/ide@0/cmdk@0,0
1. c1t6d0 
/pci@0,0/pci9004,8178@f/sd@6,0
Specify disk (enter its number): ** Select Your New Drive **

AVAILABLE DRIVE TYPES:
0. other
1. default
Specify disk type (enter its number): **Select One **

format>fdisk
No fdisk table exists. The default partition for the disk is:

a 100% "SOLARIS System" partition

Type "y" to accept the default partition, otherwise type "n" to edit the
partition table.
y

WARNING: Solaris fdisk partition changed - Please relabel the disk
format>fdisk

Select the partition type to create:
1=SOLARIS2=UNIX3=PCIXOS4=Other
5=DOS126=DOS167=DOSEXT8=DOSBIG
9=DOS16LBAA=x86 BootB=DiagnosticC=FAT32
D=FAT32LBAE=DOSEXTLBA0=Exit? 1

Specify the percentage of disk to use for this partition
(or type "c" to specify the size in cylinders). 100

Should this become the active partition? If yes, it will be activated
each time the computer is reset or turned on.
Please type "y" or "n". n

WARNING: Solaris fdisk partition changed - Please relabel the disk

format> partition


PARTITION MENU:
0 - change `0' partition
1 - change `1' partition
2 - change `2' partition
3 - change `3' partition
4 - change `4' partition
5 - change `5' partition
6 - change `6' partition
7 - change `7' partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
! - execute , then return
quit
partition> print
Current partition table (cyl):
Total disk cylinders available: 25229 + 2 (reserved cylinders)


partition> **Edit Part 0**
partition> print


partition> label
Ready to label disk, continue? y

partition> quit
format> label
Ready to label disk, continue? y
format> quit

# newfs /dev/rdsk/c0d0s0
# mkdir  /mnt/newhdd
# echo "/dev/dsk/c0d0s0 /dev/rdsk/c0d0s0 /mnt/newhd ufs 1 yes -" >> vfstab
# touch /reconfigure

Re: Adding New Hard Disk

Anonymous
on
January 30, 2004 - 8:23am

A perfect guide to Solaris partitioning.

Note: for Solaris 8 (Sparc) seems, there is no option "format>fdisk". I was using just "format>partition".

Made easy

Anonymous
on
March 30, 2004 - 3:38am

Nice blog - made my hard disk admin learning curve a lot less steep
:)
Thankyou!
dave.

no problem :)

on
April 5, 2004 - 12:40am

Thanx For reading.
--
Eventually, all things merge into one, and a river runs through it.

** From : XwinGs @ LazyInstaller Team
** http://kerneltrap.org/blog/2463

AWESOME

Anonymous
on
September 23, 2004 - 3:33pm

This might be the best step-by-step guide for adding a new HD to solaris 9 x86 that i've seen.

THANK YOU
JULIO V.

You rock

Rick (not verified)
on
February 3, 2005 - 10:22am

I struggled for an hour trying to get a new hd to work properly in solaris. After finding your site it took 15min. Awsome!

thnx
rick

On more thank you

DanielD (not verified)
on
May 17, 2005 - 8:44am

A real timesaver... thanks again

I get great help from youe pa

henry (not verified)
on
September 26, 2006 - 5:35am

I get great help from youe page. But what i can do is to say thank u.

adding HDD

James.G.A (not verified)
on
February 21, 2007 - 1:18am

To say that you are a lifesaver is an understatement

You have saved me much time and frustration. I am pretty new to the UNIX field, and found that you directions were perfect, even for my Solaris 10 x86 box.

Thanks

errors

Anonymous (not verified)
on
March 27, 2007 - 9:50am

Hello I followed all the step and when issue the
newfs /dev/rdsk/c0d0s0

I get

# newfs /dev/rdsk/c0d0s0
newfs: /dev/rdsk/c0d0s0 last mounted as /
newfs: construct a new file system /dev/rdsk/c0d0s0: (y/n)? y
/dev/dsk/c0d0s0 is mounted, can't mkfs

what can i do to resolve this, any hints ,,,,for you that can see..Im not a really unixer;)

cheers
Lars

sorry i saw the

Anonymous (not verified)
on
March 31, 2007 - 4:41pm

sorry i saw the problem.

Lars

**Edit Part 0**

Duncan (not verified)
on
May 18, 2007 - 2:22am

Greate, except for the "**Edit Part 0**" bit ....

adding a 2 TB disk

Nicolas (not verified)
on
July 17, 2007 - 4:42pm

I have a RAID0 array of 2.1 TB.

OS: Sun 10 x86

It gives the following error:

"WARNING: /pci@0/pci8086/..../sd@6,0 (sd7) disk capacity is too large for current cbd length"

Is there any way I can format this hard drive ?

Thanks for this great guide!

awesome

lemartian1 (not verified)
on
August 16, 2007 - 9:55pm

..simple and to the point. thanks a lot.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.