导航:首页 > 操作系统 > linux如何删除分区

linux如何删除分区

发布时间:2022-09-19 15:29:37

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,步骤如下:

  1. 登录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到磁盘空间不够的文件系统,就跟原来的分区/文件系统一样的使用。

阅读全文

与linux如何删除分区相关的资料

热点内容
怎么使用access的命令按钮 浏览:897
有点钱app在哪里下载 浏览:832
博途v15解压后无法安装 浏览:203
什么是根服务器主机 浏览:436
安卓手游怎么申请退款 浏览:553
安卓系统如何分享网页 浏览:278
ad如何编译pcb工程 浏览:412
除了滴滴app哪里还能用滴滴 浏览:399
截图怎么保存文件夹然后压缩 浏览:8
幻影服务器怎么样 浏览:27
具体哪些广东公司招程序员 浏览:870
嵌入式编译器教程 浏览:306
ssl数据加密传输 浏览:86
51单片机定时器方式2 浏览:331
命令行查看开机时间 浏览:813
python微博复杂网络分析 浏览:550
rf3148编程器 浏览:505
浙江标准网络服务器机柜云主机 浏览:589
设置网络的服务器地址 浏览:600
java图形界面设计 浏览:752