How to convert an NTFS partition to an EXT3 partition format

Source: Internet
Author: User
Tags hex code
Article Title: how to convert an NTFS partition to an EXT3 partition format. Linux is a technology channel of the IT lab in China. Some basic categories, such as desktop applications, Linux system management, kernel research, embedded systems, and open-source systems, take the e-disk as an example. In Linux, it corresponds to/dev/hda6. The operation steps are as follows:
 
1. First uninstall/dev/hda6 (sudo umount/dev/hda6)
 
2. Use fdisk to convert the partition format to 83.
 
Sudo fdisk/dev/hda
 
Command (m for help): m (here m can take a look at the meaning of each parameter)
 
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 // This t is what we need
 
U change display/entry units
 
V verify the partition table
 
W write table to disk and exit
 
X extra functionality (experts only)
 
The following describes how to modify the id of the next partition by using the "t" command.
 
Command (m for help): t
 
Partition number (1-10): 6 // This is the Partition number.
 
Hex code (type L to list codes): 83 // 83 is the Linux id. You can click "l" to view it.
 
In this way, the partition format will be converted. Next we need to modify the/etc/fstab file and comment out the code automatically loaded for/dev/hda6. If not, the system may not be able to start. Find
 
#/Dev/hda6
 
UUID = *************/media/hda6 **********
 
This UUID seems to have been introduced in 6.10. It is a hardware Code. It is very helpful. Now, you don't need to worry about this, what we need to do is add a # sign in front of the UUID, and the comment is complete. Now restart.
 
3. After restart, use mkfs. ext3/dev/hda6 or mkfs-t ext3/dev/hda to create a new file system.
 
4. Modify/etc/fstab and activate the comments. Note that the UUID of the partition will change after the file system is re-created, so confirm the UUID. Run the following command to view the UUID of the partition.
 
Ls-l/dev/disk/by-uuid
 
After the UUID is modified, you can modify the following parameters by referring to other ext3 partitions.
 
5. mount-a can load the created partition.
 
In addition, after the restart, X may not be started. Haha, this is what I do, because after I restart, I found that the UUID of/dev/hda6 has changed, nnd, use the new UUID and modify the/etc/fstab file again. You can rest assured that this UUID is not changed every time. Otherwise, people will not go crazy and machines will go crazy. This is a special case. It may start normally in the future.
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.