⑴ linux怎麼刪除分區
fdisk命令可以對磁碟分區進行維護,包括查詢,增加,刪除等功能
使用方法:
fdisk /dev/xxxx
進入後,p命令顯示當前分區表信息,其它操作可以通過幫助命令了解。
⑵ linux下如何刪除磁碟分區
分區示例:比如分/dev/sda 硬碟#: fdisk /dev/sdaThe number of cylinders for this disk is set to 19457.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): m #幫助,輸入MCommand actiona toggle a bootable flagb edit bsd disklabelc toggle the dos compatibility flagd delete a partition 刪除一個分區l list known partition typesm print this menun add a new partition 創建一個新的分區o create a new empty DOS partition tablep print the partition table 列印分區表q quit without saving changes 退出不保存s create a new empty Sun disklabelt 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): d #刪除分區Partition number (1-8): 2Command (m for help): p # 列印分區表Disk /dev/sda: 160.0 GB, 160041885696 bytes255 heads, 63 sectors/track, 19457 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesDisk identifier: 0x0003ce53Device Boot Start End Blocks Id System/dev/sda1 * 1 3825 30720000 7 HPFS/NTFS/dev/sda3 7650 11474 30720000 7 HPFS/NTFS/dev/sda4 11475 19457 64123447+ 5 Extended/dev/sda5 11475 14444 23856472+ 7 HPFS/NTFS/dev/sda6 19247 19457 1694826 82 Linux swap / Solaris/dev/sda7 14445 15660 9767488+ 83 Linux/dev/sda8 15661 19246 28804513+ 83 LinuxPartition table entries are not in disk orderCommand (m for help): n #建立新分區Command actionl logical (5 or over)p primary partition (1-4)p #主分區Selected partition 2First cylinder (3825-19457, default 3825): 可以選Using default value 3825Last cylinder, +cylinders or +size{K,M,G} (3825-7649, default 7649): 輸入分區大小 比如100GUsing default value 7649Command (m for help):
⑶ linux下如何刪除磁碟分區
分區示例:比如分/dev/sda 硬碟
#: fdisk /dev/sda
The number of cylinders for this disk is set to 19457.
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): m #幫助,輸入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): d #刪除分區
Partition number (1-8): 2
Command (m for help): p # 列印分區表
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0003ce53
Device Boot Start End Blocks Id System
/dev/sda1 * 1 3825 30720000 7 HPFS/NTFS
/dev/sda3 7650 11474 30720000 7 HPFS/NTFS
/dev/sda4 11475 19457 64123447+ 5 Extended
/dev/sda5 11475 14444 23856472+ 7 HPFS/NTFS
/dev/sda6 19247 19457 1694826 82 Linux swap / Solaris
/dev/sda7 14445 15660 9767488+ 83 Linux
/dev/sda8 15661 19246 28804513+ 83 Linux
Partition table entries are not in disk order
Command (m for help): n #建立新分區
Command action
l logical (5 or over)
p primary partition (1-4)
p #主分區
Selected partition 2
First cylinder (3825-19457, default 3825): 可以選
Using default value 3825
Last cylinder, +cylinders or +size{K,M,G} (3825-7649, default 7649): 輸入分區大小 比如100G
Using default value 7649
Command (m for help):
⑷ linux怎麼刪除分區
右鍵單擊我的電腦,選擇管理-裡面有個磁碟管理,會顯示出你電腦目前的所有分區,linux分區在這裡面顯示的應該是未分配空間,或者未知空間,記不太清了,你根據自己windows下的正常分區一般是很容易判斷的,在你確認是linux分區的那個分區右鍵單擊,選擇刪除,就成了空閑空間,再分配盤符就可以使用了。
⑸ 如何刪除linux 分區
進入xp系統,右鍵單擊我的電腦,選"管理",在彈出的對話框左下角點"磁碟管理",在中央區出現各分區的狀況,右鍵單擊linux所在盤,要麼格式化,要麼刪除此分區(推薦),提示你此分區東西都會丟,你若不需備份就直接刪,刪了後,它成了,可利用空間,再對它點右鍵,進行合並操作就行了.很簡單.
⑹ 怎麼刪除linux分區
刪除linux分區,用到的工具:xshell,步驟如下:
登錄linux伺服器,執行以下命令:
fdisk-l
輸出以下信息:
Disk/dev/vda:32.2GB,32212254720bytes,62914560sectors
Units=sectorsof1*512=512bytes
Sectorsize(logical/physical):512bytes/512bytes
I/Osize(minimum/optimal):512bytes/512bytes
Disklabeltype:dos
Diskidentifier:0x000c1d0e
/dev/vda1*2048614420473072000083Linux
Disk/dev/vdb:75.2GB,75161927680bytes,146800640sectors
Units=sectorsof1*512=512bytes
Sectorsize(logical/physical):512bytes/512bytes
I/Osize(minimum/optimal):512bytes/512bytes
Disklabeltype:dos
Diskidentifier:0x000cc312
/dev/
說明:測試伺服器有兩個分區,vda1和vdb1。
效果圖:
d
然後選擇分區號
最後輸入w保存。
注意事項:刪除分區前備份數據。
⑺ linux 刪除lvm分區
這里以red hat as4 為例。當磁碟分區發現不夠用時,能想道的第一個做法就是增加分區大小。但是一般linux如果沒有採用邏輯卷管理,則動態增加分區大小很困難,一個能想道的辦法就是,備份分區文件系統數據,刪除分區,然後再重新創建分區,恢復備份的文件系統,這個做法比較玄,可能刪除分區後導致系統無法啟動。
第二個做法就是,創建一個新的邏輯分區(當然必須有未使用的磁碟空間能分配),將文件系統從老分區拷貝到新分區,然後修改fstab,使用新分區/文件系統替換老的分區/文件系統
第三種做法是,創建一個新的邏輯分區,將新的邏輯分區格式化ext3(或其他類型)的文件系統,mount到磁碟空間不夠的文件系統,就跟原來的分區/文件系統一樣的使用。