How to attach new partition?

Hello all.

I install Solaris 10 06/06 onto HDD with WindowsXP installed(with preserving this existing windows-partiotion during installation, both OS's boots finely):

My HDD - Seagate Barracuda SATA 80Gb

There are list of partitions:

1. Windows NTFS 10GB

2. solaris root 8 Gb

3. solaris swap 2 Gb

How i can use free space on my disk?

When i use format command i see solaris slices only:

format

Searchingfor disks...done

AVAILABLE DISK SELECTIONS:

0. c1d0 <DEFAULT cyl 1273 alt 2 hd 255 sec 63>

/pci@0,0/pci-ide@1f,2/ide@0/cmdk@0,0

Specify disk (enter its number): 0

selecting c1d0

Controller working list found

[disk formatted, defect list found]

Warning: Current Disk has mounted partitions.

/dev/dsk/c1d0s0 is currently mounted on /. Please see umount(1M).

/dev/dsk/c1d0s1 is currently used by swap. Please see swap(1M).

... SKIPED HELP...

partition> p

Current partition table (original):

Total disk cylinders available: 1273 + 2 (reserved cylinders)

PartTagFlagCylindersSizeBlocks

0rootwm264 - 12727.73GB(1009/0/0) 16209585

1swapwu3 - 2632.00GB(261/0/0)4192965

2backupwm0 - 12729.75GB(1273/0/0) 20450745

3 unassignedwm00 (0/0/0)0

4 unassignedwm00 (0/0/0)0

5 unassignedwm00 (0/0/0)0

6 unassignedwm00 (0/0/0)0

7 unassignedwm00 (0/0/0)0

8bootwu0 -07.84MB(1/0/0)16065

9 alternateswu1 -215.69MB(2/0/0)32130

[1585 byte] By [mozheyko_d] at [2007-11-26 10:39:12]
# 1

> Hello all.

> I install Solaris 10 06/06 onto HDD with WindowsXP

> installed(with preserving this existing

> windows-partiotion during installation, both OS's

> boots finely):

>

> My HDD - Seagate Barracuda SATA 80Gb

>

> There are list of partitions:

> 1. Windows NTFS 10GB

> 2. solaris root 8 Gb

> 3. solaris swap 2 Gb

What do you mean by "partition"? If you mean a Solaris VTOC slice, then windows NTFS wouldn't be in one.

If you mean an x86 primary partition, then all your Solaris data should be in only one partition.

> How i can use free space on my disk?

Solaris will only use the space in the Solaris partition.

> When i use format command i see solaris slices only:

Yes. 'fdisk' can modify the x86 partitions, but 'format' and other utilities only see the space in the Solaris partition.

--

Darren

Darren_Dunham at 2007-7-7 2:50:38 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 2
> > How i can use free space on my disk?> > Solaris will only use the space in the Solaris> partition.> Ok, thank you, and how i can enlarge existing "Solaris partiotion" ?
mozheyko_d at 2007-7-7 2:50:39 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 3

Good question. Presumably if there is free space past the end of it, you could use 'fdisk' or a similar program to expand the Solaris partition.

However I'm not sure if there's a good way to get the Solaris VTOC to reflect the new space. The general method of doing this is to overwrite the label with a new one, then set the slices back to the old data. However that's a bit tricky (if even possible) with your root disk.

I don't know of any supported way of doing this. A dump/rebuild/restore may be the fastest way.

--

Darren

Darren_Dunham at 2007-7-7 2:50:39 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...