linux下線上擴大擴充套件分割槽的方法
下面是我在linux下擴大檔案系統的的詳細步驟,說明懶得寫了,以後有時間再填一下吧,呵呵
Command (m for help): p
Disk c0d0: 440.3 GB, 440346238976 bytes
255 heads, 32 sectors/track, 105398 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes
Device Boot Start End Blocks Id System
c0d0p1 * 1 25 101984 83 Linux
c0d0p2 26 25725 104856000 f W95 Ext'd (LBA)
Partition 2 does not end on cylinder boundary.
c0d0p5 26 25725 104855984 8e Linux LVM
me
[root@kmdb02 cciss]# fdisk c0d0
The number of cylinders for this disk is set to 105398.
There is nothing wrong with that, 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 of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk c0d0: 440.3 GB, 440346238976 bytes
255 heads, 32 sectors/track, 105398 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes
Device Boot Start End Blocks Id System
c0d0p1 * 1 25 101984 83 Linux
c0d0p2 26 25725 104856000 f W95 Ext'd (LBA)
Partition 2 does not end on cylinder boundary.
c0d0p5 26 25725 104855984 8e Linux LVM
Command (m for help): d
Partition number (1-5): 2
Command (m for help): p
Disk c0d0: 440.3 GB, 440346238976 bytes
255 heads, 32 sectors/track, 105398 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes
Device Boot Start End Blocks Id System
c0d0p1 * 1 25 101984 83 Linux
Command (m for help): m
Command 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 new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
Command (m for help): n
Command action
e extended
p primary partition (1-4)
e
Partition number (1-4): 2
First cylinder (26-105398, default 26):
Using default value 26
Last cylinder or +size or +sizeM or +sizeK (26-105398, default 105398):
Using default value 105398
Command (m for help): p
Disk c0d0: 440.3 GB, 440346238976 bytes
255 heads, 32 sectors/track, 105398 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes
Device Boot Start End Blocks Id System
c0d0p1 * 1 25 101984 83 Linux
c0d0p2 26 105398 429921840 5 Extended
Command (m for help): t
Partition number (1-5): 2
Hex code (type L to list codes): f
Changed system type of partition 2 to f (W95 Ext'd (LBA))
Command (m for help): p
Disk c0d0: 440.3 GB, 440346238976 bytes
255 heads, 32 sectors/track, 105398 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes
Device Boot Start End Blocks Id System
c0d0p1 * 1 25 101984 83 Linux
c0d0p2 26 105398 429921840 f W95 Ext'd (LBA)
Command (m for help): n
Command action
l logical (5 or over)
p primary partition (1-4)
l
First cylinder (26-105398, default 26):
Using default value 26
Last cylinder or +size or +sizeM or +sizeK (26-105398, default 105398): 25725
Command (m for help): p
Disk c0d0: 440.3 GB, 440346238976 bytes
255 heads, 32 sectors/track, 105398 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes
Device Boot Start End Blocks Id System
c0d0p1 * 1 25 101984 83 Linux
c0d0p2 26 105398 429921840 f W95 Ext'd (LBA)
c0d0p5 26 25725 104855984 83 Linux
Command (m for help): t
Partition number (1-5): 5
Hex code (type L to list codes): 8e
Changed system type of partition 5 to 8e (Linux LVM)
Command (m for help): p
Disk c0d0: 440.3 GB, 440346238976 bytes
255 heads, 32 sectors/track, 105398 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes
Device Boot Start End Blocks Id System
c0d0p1 * 1 25 101984 83 Linux
c0d0p2 26 105398 429921840 f W95 Ext'd (LBA)
c0d0p5 26 25725 104855984 8e Linux LVM
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: 裝置或資源忙.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
[root@kmdb02 cciss]# fdisk c0d0
The number of cylinders for this disk is set to 105398.
There is nothing wrong with that, 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 of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk c0d0: 440.3 GB, 440346238976 bytes
255 heads, 32 sectors/track, 105398 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes
Device Boot Start End Blocks Id System
c0d0p1 * 1 25 101984 83 Linux
c0d0p2 26 105398 429921840 f W95 Ext'd (LBA)
c0d0p5 26 25725 104855984 8e Linux LVM
Command (m for help): reboot
r: unknown command
Command 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 new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
Command (m for help): q
[root@kmdb02 cciss]# reboot
Broadcast message from root (pts/1) (Tue Mar 10 11:13:34 2009):
The system is going down for reboot NOW!
[root@kmdb02 cciss]#
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/185751/viewspace-1018393/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Ubunut擴充套件分割槽套件
- Linux主分割槽,擴充套件分割槽,邏輯分割槽Linux套件
- 在 Linux 下使用 fdisk 擴充套件分割槽容量Linux套件
- redhat linux swap分割槽擴充套件的三種方法RedhatLinux套件
- 擴充套件aix交換分割槽套件AI
- Linux LVM 擴充套件磁碟分割槽LinuxLVM套件
- 擴充套件redhat linux as 5 的swap分割槽套件RedhatLinux
- Linux主分割槽,擴充套件分割槽,邏輯分割槽[final]Linux套件
- SQL Server大分割槽表沒有空分割槽的情況下如何擴充套件分割槽的方法SQLServer套件
- 帶default分割槽的列表分割槽表的擴充套件套件
- Linux 格式化擴充套件分割槽(Extended)Linux套件
- Linux 擴充套件磁碟分割槽(命令列操作)Linux套件命令列
- Linux下擴充套件根檔案系統所在的分割槽Linux套件
- Hash分割槽表的使用及擴充套件套件
- centos 擴充套件root根分割槽的大小CentOS套件
- 如何在 Linux 中擴充套件 XFS 根分割槽Linux套件
- linux建立新分割槽擴充套件磁碟空間Linux套件
- Windows 8.1怎麼建立擴充套件分割槽?Windows套件
- 【Linux】分割槽向左擴容的方法Linux
- Linux 分割槽擴容(根分割槽擴容,SWAP 分割槽擴容,掛載新分割槽為目錄)Linux
- 擴充套件Linux虛擬機器硬碟、分割槽一例薦套件Linux虛擬機硬碟
- win10硬碟分割槽合併擴充套件卷沒法點怎麼解決 win10硬碟分割槽不能點擴充套件卷修復方法Win10硬碟套件
- aix擴充 交換分割槽的步驟AI
- 運維實戰:Linux系統擴充套件oracle資料庫所在的分割槽運維Linux套件Oracle資料庫
- kotlin 擴充套件(擴充套件函式和擴充套件屬性)Kotlin套件函式
- Json擴充套件方法JSON套件
- LINQ擴充套件方法套件
- Linux下為PHP新增FTP擴充套件LinuxPHPFTP套件
- 使用Kafka分割槽擴充套件Spring Batch大資料排程批處理 – ArnoldKafka套件SpringBAT大資料
- PHPWAMP安裝Redis擴充套件的方式與相關擴充套件的下載PHPRedis套件
- Java 缺失的特性:擴充套件方法Java套件
- 五、談擴充套件方法的理解套件
- C# 擴充套件方法 借籤於 Objective-C 擴充套件類.C#套件Object
- linux 使用fdisk分割槽擴容Linux
- 大資料——Scala擴充套件大資料套件
- WCF擴充套件:行為擴充套件Behavior Extension套件
- 再學Blazor——擴充套件方法Blazor套件
- C#.NET擴充套件方法C#套件