[TOC]
[ VMware虛擬機Linux系統根目錄空間擴充操作](http://blog.itpub.net/177006/viewspace-1382842/)
關鍵點:由于Redhat7中默認的文件系統開始使用xfs,總結下xfs的一些內容:
[如何創建一個分區掛載/home目錄](http://blog.sina.com.cn/s/blog_605f5b4f01014god.html)
知識點:`$find . -depth -print0 | cpio --null --sparse -pvd /mnt/newhome/`
# 硬盤掛載
## hdb 和 sdb
`fdisk -l` 會看到有一塊新的設置,如果你先前有一塊硬盤(sda1, sda3...),新加的這塊應該是(/dev/sdb)。 (如果添加的第二塊硬盤是IDE硬盤,應該看到hdb,如果是SCSI硬盤,看到的就是應該sdb)
~~~
[root@localhost ~]# fdisk -l
Disk /dev/sda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda3 14 1044 8281507+ 83 Linux
Disk /dev/sdb: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdb doesn't contain a valid partition table
~~~
## 關于 Partition 1 does not end on cylinder boundary 的理解
在Ubuntu上的終端運行命令:`sudo fdisk –l`后,終端出現如下圖情況:

sda2是拓展分區,sda5,6,7,8都是sda2下的邏輯分區,可以看到sda1的End位置和sda5的Start位置重疊了,終端提示: Partition 1 does not end on cylinder boundary。這句話的意思是說:分區 1 沒有在柱面上結束。
網上查了一下資料,很多論壇上都說出現這種情況的原因是正常的,總體的原因如下:
因為 sudo fdisk –l 命令是按照柱面來進行分區顯示的,所以需要按照垂直的空間進行理解,但現在的計算機在顯示時仍然會按照扇區來理解(因為現在磁盤是使用LBA(使用扇區進行尋址)取代以前的CHS(柱面、磁頭、扇區)方式記錄硬盤分區的),所以會判斷分區沒有在柱面結束;如果我們使用命令 sudo fdisk –uS -l ,這個命令的意思是:“give size in sectors instead of sylinders”即是按照扇區的來進行分區顯示,這樣就可以看到以扇區方式顯示分區的了。可以看到相鄰邏輯分區之間都有 64 扇區的空間,那里存放邏輯分區表。如上圖。
## W95 Ext'd (LBA)
這個是擴展分區。
W95 Ext'd (LBA)
It simply states that your 4th partition is an extended partition instead of a primary partition. The partition info in stored in MBR. However, the MBR can only store four partition entries. If you want more than four partitions, you will have to create an extended parition and with in which you can create more. In your case partition 5,6,7,8
Actually,W95 Ext'd (LBA) is extended partition, that is "擴展分區". For instance:
~~~
/sbin/fdisk -l
Disk /dev/sda: 80.0 GB, 80032038912 bytes
255 heads, 63 sectors/track, 9730 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 131 1052226 83 Linux
/dev/sda2 132 9730 77103967+ f Win95 Ext'd (LBA)
/dev/sda5 132 9055 71681998+ 83 Linux
/dev/sda6 9056 9730 5421906 82 Linux swap
~~~
`sda2=sda5+sda6 ` 應該是關于邏輯分區的東東。(只是名字是sda2,實際不存在,已經劃分為了sda5,sda6,我們要操作sda5和sda6。)