【LINUX學習】磁碟分割之建立primary和logical 分割槽
[root@localhost ~]# fdisk -l
Disk /dev/sda: 4294 MB, 4294967296 bytes
255 heads, 63 sectors/track, 522 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 522 4088542+ 83 Linux
Disk /dev/sdb: 3221 MB, 3221225472 bytes
255 heads, 63 sectors/track, 391 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdb doesn't contain a valid partition table
Disk /dev/sdc: 3221 MB, 3221225472 bytes
255 heads, 63 sectors/track, 391 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdc1 * 1 131 1052226 82 Linux swap / Solaris
Disk /dev/sdd: 3221 MB, 3221225472 bytes
255 heads, 63 sectors/track, 391 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
[root@localhost ~]# fdisk /dev/sdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): p
Disk /dev/sdb: 3221 MB, 3221225472 bytes
255 heads, 63 sectors/track, 391 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-391, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-391, default 391): 150
Command (m for help): p
Disk /dev/sdb: 3221 MB, 3221225472 bytes
255 heads, 63 sectors/track, 391 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 150 1204843+ 83 Linux
Command (m for help): n
Command action
e extended
p primary partition (1-4)
e --建立擴充分割槽
Partition number (1-4): 4
First cylinder (151-391, default 151):
Using default value 151
Last cylinder or +size or +sizeM or +sizeK (151-391, default 391):
Using default value 391
Command (m for help): p
Disk /dev/sdb: 3221 MB, 3221225472 bytes
255 heads, 63 sectors/track, 391 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 150 1204843+ 83 Linux
/dev/sdb4 151 391 1935832+ 5 Extended
Command (m for help): n
Command action
l logical (5 or over)
p primary partition (1-4)
l --在擴充分割槽中建立邏輯分割槽,因為擴充分割槽是不能夠直接被使用的,只有做成擴充分割槽時,才能夠被使用。
First cylinder (151-391, default 151):
Using default value 151
Last cylinder or +size or +sizeM or +sizeK (151-391, default 391): 250
Command (m for help): p
Disk /dev/sdb: 3221 MB, 3221225472 bytes
255 heads, 63 sectors/track, 391 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 150 1204843+ 83 Linux
/dev/sdb4 151 391 1935832+ 5 Extended
/dev/sdb5 151 250 803218+ 83 Linux
Command (m for help): n
Command action
l logical (5 or over)
p primary partition (1-4)
l --在擴充分割槽中建立邏輯分割槽
First cylinder (251-391, default 251):
Using default value 251
Last cylinder or +size or +sizeM or +sizeK (251-391, default 391):
Using default value 391
Command (m for help): p
Disk /dev/sdb: 3221 MB, 3221225472 bytes
255 heads, 63 sectors/track, 391 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 150 1204843+ 83 Linux
/dev/sdb4 151 391 1935832+ 5 Extended
/dev/sdb5 151 250 803218+ 83 Linux
/dev/sdb6 251 391 1132551 83 Linux
Command (m for help): w ---儲存
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
[root@localhost ~]# fdisk -l
Disk /dev/sda: 4294 MB, 4294967296 bytes
255 heads, 63 sectors/track, 522 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 522 4088542+ 83 Linux
Disk /dev/sdb: 3221 MB, 3221225472 bytes
255 heads, 63 sectors/track, 391 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 150 1204843+ 83 Linux
/dev/sdb4 151 391 1935832+ 5 Extended
/dev/sdb5 151 250 803218+ 83 Linux
/dev/sdb6 251 391 1132551 83 Linux
[root@localhost ~]#
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22664653/viewspace-680578/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- linux新增新磁碟和建立分割槽Linux
- Linux核心之磁碟和分割槽Linux
- Linux 磁碟與磁碟分割槽Linux
- Linux 磁碟分割槽和掛載Linux
- 學習筆記】分割槽表和分割槽索引——新增表分割槽(二)筆記索引
- 【學習筆記】分割槽表和分割槽索引——管理索引分割槽(四)筆記索引
- 全面學習分割槽表及分割槽索引(6)--建立range-list組合分割槽索引
- 深入學習分割槽表及分割槽索引(5)--建立range-hash組合分割槽(續)索引
- 【Linux】MBR磁碟分割槽表只能有四個分割槽?Linux
- Oracle分割槽之五:建立分割槽索引總結Oracle索引
- linux磁碟分割槽講解Linux
- linux 磁碟分割槽_luks cryptsetupLinux
- 全面學習分割槽表及分割槽索引(8)--增加和收縮表分割槽索引
- 全面學習分割槽表及分割槽索引(16)--增加和刪除索引分割槽索引
- 【學習筆記】分割槽表和分割槽索引——分割槽表的其他管理(三)筆記索引
- 全面學習分割槽表及分割槽索引(10)--交換分割槽索引
- Linux 建立swap分割槽Linux
- Linux dd建立分割槽Linux
- 【LINUX學習】磁碟分割之新建與刪除Linux
- Virtualbox中Linux新增新磁碟並建立分割槽Linux
- linux建立新分割槽擴充套件磁碟空間Linux套件
- 全面學習分割槽表及分割槽索引(15)--修改表分割槽屬性和模板索引
- Virtualbox中Linux新增一個新磁碟->建立分割槽->格式化->掛載分割槽Linux
- 全面學習分割槽表及分割槽索引(13)--分隔表分割槽索引
- 【學習筆記】分割槽表和分割槽索引——概念部分(一)筆記索引
- linux 新增磁碟 分割槽掛載Linux
- linux 磁碟分割槽掛載-fdiskLinux
- linux磁碟分割槽基本命令Linux
- Linux下磁碟分割槽,fdisk,mkfsLinux
- Linux精講——fdisk磁碟分割槽Linux
- linux下磁碟分割槽的案例Linux
- 全面學習分割槽表及分割槽索引(9)--刪除表分割槽索引
- 全面學習分割槽表及分割槽索引(11)--合併表分割槽索引
- 全面學習分割槽表及分割槽索引(12)--修改list表分割槽索引
- Linux 學習基礎入門之Linux分割槽Linux
- 深入學習Oracle分割槽表及分割槽索引Oracle索引
- 全面學習分割槽表及分割槽索引(1)索引
- 深入學習分割槽表及分割槽索引(1)索引