how to make repartition of disk


 
Thread Tools Search this Thread
Operating Systems Solaris how to make repartition of disk
# 1  
Old 10-01-2008
how to make repartition of disk

hi I am working with sun solaris 9 and I have 40 GB hard disk and I want to recreate the partition.

1)how can I recreate the partition??
2) how can I take the back-up of my application so that I will not loose the data..
# 2  
Old 10-01-2008
Quote:
Originally Posted by smartgupta
hi I am working with sun solaris 9 and I have 40 GB hard disk and I want to recreate the partition.

1)how can I recreate the partition??
2) how can I take the back-up of my application so that I will not loose the data..
#sudo format

select your disk on which you have to make partition........

format> partition
print - check current status of your disk
modify - to create partition

Select partitioning base:
0. Current partition table (default)
1. All Free Hog
Choose base (enter number) [0]? 1

Part Tag Flag Cylinders Size Blocks
0 root wm 0 0 (0/0/0) 0
1 swap wu 0 0 (0/0/0) 0
2 backup wu 0 - 49149 60.00GB (49150/0/0) 125824000
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 usr wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0

Do you wish to continue creating a new partition
table based on above table[yes]?
Free Hog partition[6]? 5
Enter size of partition '0' [0b, 0c, 0.00mb, 0.00gb]: 12gb
Enter size of partition '1' [0b, 0c, 0.00mb, 0.00gb]: 12gb
Enter size of partition '3' [0b, 0c, 0.00mb, 0.00gb]: 12gb
Enter size of partition '4' [0b, 0c, 0.00mb, 0.00gb]: 12gb
Enter size of partition '6' [0b, 0c, 0.00mb, 0.00gb]: 0gb
Enter size of partition '7' [0b, 0c, 0.00mb, 0.00gb]: 0gb

Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 9830 12.00GB (9831/0/0) 25167360
1 swap wu 9831 - 19661 12.00GB (9831/0/0) 25167360
2 backup wu 0 - 49149 60.00GB (49150/0/0) 125824000
3 unassigned wm 19662 - 29492 12.00GB (9831/0/0) 25167360
4 unassigned wm 29493 - 39323 12.00GB (9831/0/0) 25167360
5 unassigned wm 39324 - 49149 11.99GB (9826/0/0) 25154560
6 usr wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0

Okay to make this the current partition table[yes]? yes
Enter table name (remember quotes): new

Ready to label disk, continue? yes

After this we can create the file systems on each slice:

newfs /dev/rdsk/c0t0d0s and so on....

At this point we must create the mount points:

mkdir -p /mount/data (note -p makes the parent directories if they don't exist since




Now change ownership to oracle user for all file systems so oracle database can write to them:

sudo chown oracle:dba /mount/data



Finally, we're ready to edit the vfstab with the new entries:

/dev/dsk/c0t0d0s0 /dev/rdsk/c0t0d0s0 / ufs 2
no -


Now we can mount up the file systems:

sudo mount /mount/data
# 3  
Old 10-01-2008
Quote:
Originally Posted by admin@solaris
#sudo format

select your disk on which you have to make partition........

format> partition
print - check current status of your disk
modify - to create partition

Select partitioning base:
0. Current partition table (default)
1. All Free Hog
Choose base (enter number) [0]? 1

Part Tag Flag Cylinders Size Blocks
0 root wm 0 0 (0/0/0) 0
1 swap wu 0 0 (0/0/0) 0
2 backup wu 0 - 49149 60.00GB (49150/0/0) 125824000
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 usr wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0

Do you wish to continue creating a new partition
table based on above table[yes]?
Free Hog partition[6]? 5
Enter size of partition '0' [0b, 0c, 0.00mb, 0.00gb]: 12gb
Enter size of partition '1' [0b, 0c, 0.00mb, 0.00gb]: 12gb
Enter size of partition '3' [0b, 0c, 0.00mb, 0.00gb]: 12gb
Enter size of partition '4' [0b, 0c, 0.00mb, 0.00gb]: 12gb
Enter size of partition '6' [0b, 0c, 0.00mb, 0.00gb]: 0gb
Enter size of partition '7' [0b, 0c, 0.00mb, 0.00gb]: 0gb

Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 9830 12.00GB (9831/0/0) 25167360
1 swap wu 9831 - 19661 12.00GB (9831/0/0) 25167360
2 backup wu 0 - 49149 60.00GB (49150/0/0) 125824000
3 unassigned wm 19662 - 29492 12.00GB (9831/0/0) 25167360
4 unassigned wm 29493 - 39323 12.00GB (9831/0/0) 25167360
5 unassigned wm 39324 - 49149 11.99GB (9826/0/0) 25154560
6 usr wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0

Okay to make this the current partition table[yes]? yes
Enter table name (remember quotes): new

Ready to label disk, continue? yes

After this we can create the file systems on each slice:

newfs /dev/rdsk/c0t0d0s and so on....

At this point we must create the mount points:

mkdir -p /mount/data (note -p makes the parent directories if they don't exist since




Now change ownership to oracle user for all file systems so oracle database can write to them:

sudo chown oracle:dba /mount/data



Finally, we're ready to edit the vfstab with the new entries:

/dev/dsk/c0t0d0s0 /dev/rdsk/c0t0d0s0 / ufs 2
no -


Now we can mount up the file systems:

sudo mount /mount/data
and now he has no OS on his disk!

The only guaranteed way to do this is to take a copy of your more important data and reinstall the OS, doing your relayout as you go along.

You can do this by running a backup to an external disk and then making the changes as listed above and then restoring your OS but in the long run yuor would be better to just reinstall.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Make a disk disappear from fdisk output

Hello, 1 ) Fdisk -l # Displays all the disk with partition table information My Query ) A ) How can i make one disk ex: /dev/sdd not visible in fdisk -l output ? B) From where fdisk -l collect and display the information ? (8 Replies)
Discussion started by: saurabh84g
8 Replies

2. Ubuntu

how to make others have read/write permission when the aotu mounted usb flash disk pluge in ?

hi all: as we know , when usb flash disk plug in and aotu mounted , the default permission of the usb flash disk is 700. that means others have no permission . the question: how to make others have read/write permission when the aotu mounted usb flash disk pluge in ? thanks !! (0 Replies)
Discussion started by: arnold.king
0 Replies

3. SCO

Make a Copy Entire Hard Disk

Dear All, I have a standalone desktop with SCO Openserver V 5, this is used to control a machine with custom written software. The problem is that the machine manufacturer has closed shop (bankruptcy) and there is no support on software. As a precaution I would want to make a complete backup of... (3 Replies)
Discussion started by: iqbal_siddiqui
3 Replies

4. Solaris

How to make sure that a disk is not used?

Hi, I want to make sure a local disk c1t1d0s2 is not being used. SVM and VxVM are used on this Solaris 10 systems. This disk can not be found using 'df -k', 'metastat' and 'vxprint -ht'. But I can't mount it though format shows it contains ufs filesystem: # mount /dev/dsk/c1t1d0s0 /mnt Aug 18... (5 Replies)
Discussion started by: aixlover
5 Replies

5. Solaris

Gani Network Driver Won't Install - make: Fatal error: Don't know how to make targ...

I attached a README file that I will refer to. I successfully completed everything in the README file until step 4. # pwd /gani/gani-2.4.4 # ls COPYING Makefile.macros gem.c Makefile Makefile.sparc_gcc gem.h Makefile.amd64_gcc ... (1 Reply)
Discussion started by: Bradj47
1 Replies

6. UNIX for Advanced & Expert Users

Using newfs to make file system on a sata disk using Acard adaptor

Hi All: I am using an adaptor between a 1TB SATA hard drive and solaris 8 box with 68 pin scsi. I use the format utility to partition the HD which works fine but when I use newfs, I get some errors. I will place them below. I have blocked and the error message is in red. Anybody got any... (1 Reply)
Discussion started by: mndavies
1 Replies

7. Solaris

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... (16 Replies)
Discussion started by: pondlife
16 Replies

8. HP-UX

Need to make disk device files match

Hi, I was wondering if there was a way to change the disk device files ex. /dev/dsk/cxtxd0 ? What I have are two HPUX 11.0 servers using MC Service Guard 11.13. A consultant attached a SAN and both servers had created the same identical LUN device files. Now I could begin creating my volume... (0 Replies)
Discussion started by: mvizza
0 Replies

9. UNIX for Dummies Questions & Answers

recover DIsk and make bootable

Hello all, I'm trying to recover from backup file to a new system with a new disk. I'm able to partition my new hard drive the same way as my old drive, but I'm unable to boot off of it. I have set the fdisk to toogle as a boot flag. But it does not seem to be working. Does anyone know how to... (4 Replies)
Discussion started by: larryase
4 Replies

10. UNIX for Dummies Questions & Answers

how to make a boot disk

I need to know how to make a boot disk to get Solaris 7 to load on a intel machine. I have checked out Sun.Com, but did not understand how to download and convert the files to a disk. any help would be appericated thanks Bobby (2 Replies)
Discussion started by: Youngadmin
2 Replies
Login or Register to Ask a Question