本篇文章给大家谈谈如何清除linux分区,以及linux怎么删分区对应的知识点,希望对各位有所帮助,不要忘了收藏本站喔。
本文目录一览:
1、linux怎么删除分区
右键单击我的电脑,选择管理-里面有个磁盘管理,会显示出你电脑目前的所有分区,linux分区在这里面显示的应该是未分配空间,或者未知空间,记不太清了,你根据自己windows下的正常分区一般是很容易判断的,在你确认是linux分区的那个分区右键单击,选择删除,就成了空闲空间,再分配盘符就可以使用了。
2、如何删除linux系统及其分区
我们不但要知道如何安装linux系统,也应该知道如何卸载linux
在linux和windows共存的情况下,如果删除linu所占分区,可以用以下方法。
windows系统可能无法识别linux系统分区,我们可以利用linux本身的fdisk切割程序删除linux分区:
[root@free root]# fdisk
/dev/hda
←指定linux分区所在的硬盘
Command (m for
help):p
←显示目前硬盘分割情况
Disk /dev/hda:64headers,63 sectors,1015 cylinders
Units = cylinders of 4032 * 512 bytes
Device
Boot
Start
End
Blocks
Id System
/dev/hda1
*
1
254 512032+
6
FAT16
←此为DOS/windows分区
/dev/hda2 255 964 1431360
83 Linux
/dev/hda3
965 1015
102816 5
Extented
/dev/hda5 965 1015
102784+ 82
Swap
Command (m for help):d
Partition number
(1-5):5 ←删除第5号分区
Command (m for help):d
Partition number
(1-5):3 ←删除第3号分区
Command (m for help):d
Partition number
(1-4):2 ←删除第2号分区
Command (m for
help):p ←再显示一次目前硬盘分割情况
Disk /dev/hda:64headers,63 sectors,1015
cylinders
Units = cylinders of 4032 * 512 bytes
Device
Boot
Start
End
Blocks
Id System
/dev/hda1
*
1
254 512032+
6
FAT16
←只剩下DOS/windows分区
Command (m for
help):w ←将所更改的结果写入到硬盘
然后会显示提示信息,系统在重启后更改磁盘
[root@free root]# reboot
删除linux后如何进入windows系统
在windows与linux系统共存的情况下,删除了linux分区后,可能会不能正常进入windows系统。若在安装linux时使用Grub开机管理程序,并将其安装在MBR中,删除linux分区后,由于/boot的相关文件已被删除,所以只会出现一行提示符:
grub
这是可用下列方式启动进入windows:
grub rootnoverify
(hd0,0)
←指定windows分区为第一硬盘的第一分区
grub chainloader
+1
←读取第一扇区中的启动程序
grub makeactive
←设置可启动
grub
boot
←启动
若将lilo安装在MBR中,开机启动时还会显示lilo的启动菜单,可选择进入windows,但已不能进入linux系统汇中。
也可在DOS模式下重写MBR,即可删除lilo或grub,开机默认启动到windows系统。
3、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):
4、如何删除linux 分区
进入xp系统,右键单击我的电脑,选"管理",在弹出的对话框左下角点"磁盘管理",在中央区出现各分区的状况,右键单击linux所在盘,要么格式化,要么删除此分区(推荐),提示你此分区东西都会丢,你若不需备份就直接删,删了后,它成了,可利用空间,再对它点右键,进行合并操作就行了.很简单.
5、怎么删除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怎么删分区的介绍到此就结束了,不知道你从中找到你需要的信息了吗 ?如果你还想了解更多这方面的信息,记得收藏关注本站。