Ubuntu實在太吸引人了,Windows也不想要了,因為早些的時候用的Windows,所以有2個硬盤分區一直是NTFS格式的。不想要了,反正Windows系統都給我刪掉的。
這裡用我的D盤當例子吧,因為是分區格式轉換完了寫的這個,所以,可能中間的操作可能會有些不是很准確(哈哈,也差不到哪裡去),不過,步驟是錯不了的!
D:在Linux下對應於/dev/hda6,操作步驟如下:
1、先將/dev/hda6給卸載掉(sudo umount /dev/hda6 )
2、用fdisk轉換分區格式,改為83
sudo fdisk /dev/hda
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 //這個t就是偶們要用的
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
下面就是要用t命來修改下分區的id
Command (m for help): t
Partition number (1-10): 6 //這個是分區號
Hex code (type L to list codes):83 // 83是Linux的id,可以敲一個“l”查看一下