*********************************************** Declaration ************************************************
original works, from the "Blue Blog" blog, Welcome to reprint, please be sure to indicate the source ( Http://blog.csdn.net/huangyanlong ).
Please leave a message or email ([email protected]) to indicate the error.
************************** ***************************************************************************
Continue on: "Example: SDB1 formatted as ext3 file system" Click to open the link
*****************************************************************************************************
Linux hard disk partition (ii): Delete
*****************************************************************************************************
*************************
Example: Umount the SDB1
*************************
<span style= "FONT-SIZE:14PX;" >[[email protected]/]# df-hfilesystem Size used Avail use% mounted ON/DEV/SDA1 9.7G 5.4 G 3.9G 59%//dev/sda3 35G 17G 17G 50%/hometmpfs 1006M 0 1006M 0%/dev/shm/dev/sd B1 1.9G 35M 1.8G 2%/data1[[email protected]/]# umount/data1[[email protected]/]# df-hfiles Ystem Size used Avail use% mounted on/dev/sda1 9.7G 5.4G 3.9G 59%//dev/sda3 35G 17G 17G 50%/hometmpfs 1006M 0 1006M 0%/dev/shm[[email protected]/]# FDISK-LDISK/DEV/SDA : 53.6 GB, 53687091200 bytes255 heads, $ sectors/track, 6527 cylindersunits = cylinders of 16065 * = 8225280 bytes Device Boot Start End Blocks Id system/dev/sda1 * 1 1305 10482381 linux/d Ev/sda2 1306 1827 4192965 1828 Linux Swap/solaris/dev/sda3 6527 37752750 linuxdisk/dev/sdb:10.7 GB, 10737418240 bytes255 heads, sectors/track, 1305 cylindersunits = cylinders of 16065 * 8225280 = bytes Device Boot Start End Blocks Id system/dev/sdb1 1 2008093+ LINUX/DEV/SDB2 251 2008125 LINUX/DEV/SDB3 501 2008125 LINUX/DEV/SDB4 751 1305 4458037+ 5 EXTENDED/DEV/SDB5 751 875 1004031 LINUX/DEV/SDB6 876 1004031 1001 1305 2449881 linux</span>
*************************
for the second disk operation (that is,/DEV/SDB)
*
<span style= "FONT-SIZE:14PX;" >[[email protected]/]# fdisk/dev/sdbthe number of cylinders for this disk are set to 1305.There are nothing wrong With which, but this is larger than 1024,and could in certain setups cause problems with:1) software that runs at boot time (e.g., old versions's LILO) 2) booting and partitioning software from the other OSs (e.g., DOS fdisk, OS/2 fdisk) Command (M For help): Mcommand action A toggle a bootable flag B edit BSD Disklabel c toggle the DOS compatibility flag D Delete a partition L list known partition types m print this menu n add a new partition o create a N EW empty DOS partition table p print the partition table Q quit without saving changes s create a new empty Su N Disklabel t change a partition ' s system ID u change display/entry units v Verify the partition table W W Rite table to disk and exit X extra functionality (experts only) Command (M-help): pdisk/dev/sdb:10.7 GB, 10737418240 bytes255 heads, sectors/track, 1305 cylindersunits = cylinders of 16065 * = 8225280 bytes Device Boo T Start End Blocks Id system/dev/sdb1 1 2008093+ linux/dev/sdb2 251 2008125 LINUX/DEV/SDB3 501 2008125 751 1305 4458037+ 5 EXTENDED/DEV/SDB5 751 875 1004031 876 1004031 linux/dev/sdb7 1001 1305 2449881 >
*************************
Delete Partition: SDB1 and others
*************************
<span style= "FONT-SIZE:14PX;" >command (M for help): d--input Delete instruction partition number (1-7): input deleted partition No. command (M for help): p--print partition Table disk/dev/sdb:10.7 GB , 10737418240 bytes255 heads, sectors/track, 1305 cylindersunits = cylinders of 16065 * = 8225280 bytes Device Bo OT Start End Blocks Id system/dev/sdb2 251 2008125 linux/dev/sdb3 501 2008125 LINUX/DEV/SDB4 751 1305 4458037+ 5 Extended/dev/sdb 5 751 875 1004031 876 LINUX/DEV/SDB6 1004031 linux/dev/sdb 7 1001 1305 2449881 linux--You can see that SDB1 has been deleted--and next, delete the other partition command (M for help): Dpartition number (1-7): 2Command (M for help): Dpartition number (1-7): 3Command (M to help): Dpartition number (1-7): 4Command (M for He LP): P disk/dev/sdb:10.7 GB, 10737418240 bytes255 heads, $ sectors/track, 1305 cylindersunits = cylinders of 16065 * 8225280 bytes Device Boot Start End Blocks Id systemcommand (M for help): w--Save exit the PA Rtition table has been altered! Calling IOCTL () to re-read partition table. Syncing disks.--can now remove the disk </span>
*********************************************** Declaration ************************************************
original works, from the "Blue Blog" blog, Welcome to reprint, please be sure to indicate the source ( Http://blog.csdn.net/huangyanlong ).
Please leave a message or email ([email protected]) to indicate the error.
************************** ***************************************************************************
Linux disk partition (ii): Delete