Reference themacwrangler.wordpress.com

[root@pdscatner ~]# cat /etc/redhat-release
ClearOS release 7.3.0 (Final)

การเพิ่ม Hard Disk บน ClearOS release 7.3.0 (Final) สำหรับเก็บข้อมูลก้อนที่สาม /dev/sdc

[root@pdscatner ~]# fdisk -l /dev/sdc

Disk /dev/sdc: 500.1 GB, 500107862016 bytes, 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk label type: dos
Disk identifier: 0x000027cd

Device Boot Start End Blocks Id System
/dev/sdc1 * 2048 499711 248832 83 Linux
/dev/sdc2 501758 976771071 488134657 5 Extended
Partition 2 does not start on physical sector boundary.
/dev/sdc5 501760 976771071 488134656 8e Linux LVM

[root@pdscatner KitDee]# pwd
/KitDee
[root@pdscatner KitDee]# cd /
[root@pdscatner /]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 279.4G 0 disk
└─sda1 8:1 0 279.4G 0 part /home
sdb 8:16 0 111.8G 0 disk
├─sdb1 8:17 0 500M 0 part /boot
└─sdb2 8:18 0 111.3G 0 part
├─clearos-root 253:0 0 103.4G 0 lvm /
└─clearos-swap 253:1 0 7.9G 0 lvm [SWAP]
sdc 8:32 0 465.8G 0 disk
└─sdc1 8:33 0 465.8G 0 part /KitDee
[root@pdscatner /]#

 

*** How to Deleted Hard disk Partition on ClearOS release 7.3.0 (Final)***

[root@pdscatner ~]# fdisk /dev/sdc

Command (m for help): p => print the partition table
Disk /dev/sdc: 500.1 GB, 500107862016 bytes, 976773168 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 4096 bytesI/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk label type: dosDisk identifier: 0x000027cd
Device Boot      Start         End      Blocks   Id  System/dev/sdc1           2048      499711      248832   83  Linux/dev/sdc2          501758   976771071   488134657    5  ExtendedPartition 2 does not start on physical sector boundary./dev/sdc3          499712      501757        1023   83  Linux/dev/sdc5          501760   976771071   488134656   8e  Linux LVM
Partition table entries are not in disk order
Command (m for help): d => delete a partitionPartition number (1-3,5, default 5): 5Partition 5 is deleted
Command (m for help): d => delete a partitionPartition number (1-3, default 3): 3Partition 3 is deleted
Command (m for help): d => delete a partitionPartition number (1,2, default 2): 2Partition 2 is deleted
Command (m for help): p => print the partition table
Disk /dev/sdc: 500.1 GB, 500107862016 bytes, 976773168 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 4096 bytesI/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk label type: dosDisk identifier: 0x000027cd
Device Boot      Start         End      Blocks   Id  System/dev/sdc1   
        2048      499711      248832   83  Linux
Command (m for help): d => delete a partitionSelected partition 1Partition 1 is deleted
Command (m for help): p => print the partition table
Disk /dev/sdc: 500.1 GB, 500107862016 bytes, 976773168 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 4096 bytesI/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk label type: dosDisk identifier: 0x000027cd
Device Boot      Start         End      Blocks   Id  System
Command (m for help): w => write table to disk and exit

*** Format Hard Disk /dev/sdc1 ***

[root@pdscatner /]# mkfs.ext3 /dev/sdc1
mke2fs 1.42.9 (28-Dec-2013)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
30531584 inodes, 122096390 blocks
6104819 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
3727 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000

Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: Produce and Service
done

Change /hone Directory to /dev/sda 

[root@pdscatner KitDee]# mount  /dev/sda  /home