1829118 Members
1998 Online
109986 Solutions
New Discussion

Re: Change partition

 
hangyu
Regular Advisor

Change partition

/dev/sda6 ... ... ... /
/dev/sda1 ... ... ... /boot
none ... ... ... /dev/shm
/dev/sda8 ... ... ... /tmp
/dev/sda2 ... ... ... /usr
/dev/sda5 ... ... ... /home

the above is my "df" output, if I want add one volumn "/ora" so that the output is as below , what can I do ? thx

/dev/sda6 ... ... ... /
/dev/sda1 ... ... ... /boot
none ... ... ... /dev/shm
/dev/sda8 ... ... ... /tmp
/dev/sda2 ... ... ... /usr
/dev/sda5 ... ... ... /home
/dev/sda7 ... ... ... /ora
1 REPLY 1
Steven E. Protter
Exalted Contributor

Re: Change partition

Shalom,

Compare the list to sfdisk -l /dev/sda output

This will show any partitions that may have been set up raw but not be visible on the df output.

If nothing is abnormal:

fdsik /dev/sda

p (prints the partition table should match outpout above)
n (adds a new partition) You can set size in MB .

fisk is the first step.
After fdisk, you'll need to use mkfs.ext3 to set up a filesystem, modify /etc/fstab for boot mounting and mount the partition.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com