Sponsored Content
Operating Systems Solaris how to make repartition of disk Post 302242100 by admin@solaris on Wednesday 1st of October 2008 07:25:29 AM
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
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
disktab(5)							File Formats Manual							disktab(5)

Name
       disktab - disk description file

Syntax
       #include <disktab.h>

Description
       The file is a simple data base that describes disk geometries and disk partition characteristics.  The format is patterned after the termi-
       nal data base.  Entries in consist of a number of fields separated by colons (:).  The first entry for each disk gives the names  that  are
       known for the disk, separated by vertical bars (|).  The last name given should be a long name fully identifying the disk.

       The following list indicates the normal values stored for each disk entry:
       Name Type Description
       ns   num  Number of sectors per track
       nt   num  Number of tracks per cylinder
       nc   num  Total number of cylinders on the disk
       ba   num  Block size for partition `a' (bytes)
       bd   num  Block size for partition `d' (bytes)
       be   num  Block size for partition `e' (bytes)
       bf   num  Block size for partition `f' (bytes)
       bg   num  Block size for partition `g' (bytes)
       bh   num  Block size for partition `h' (bytes)
       fa   num  Fragment size for partition `a' (bytes)
       fd   num  Fragment size for partition `d' (bytes)
       fe   num  Fragment size for partition `e' (bytes)
       ff   num  Fragment size for partition `f' (bytes)
       fg   num  Fragment size for partition `g' (bytes)
       fh   num  Fragment size for partition `h' (bytes)
       pa   num  Size of partition `a' in sectors
       pb   num  Size of partition `b' in sectors
       pc   num  Size of partition `c' in sectors
       pd   num  Size of partition `d' in sectors
       pe   num  Size of partition `e' in sectors
       pf   num  Size of partition `f' in sectors
       pg   num  Size of partition `g' in sectors
       ph   num  Size of partition `h' in sectors
       se   num  Sector size in bytes
       ty   str  Type of disk (e.g. removable, winchester)

       The entries can be automatically generated with the program.

Files
See Also
       chpt(8), newfs(8)

																	disktab(5)
All times are GMT -4. The time now is 12:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy