tutorial on installing NTFS partitions using NTFS-3G on Linux systems

Source: Internet
Author: User

Install a tutorial using NTFS-3G to mount NTFS partitions on a Linux system. After the system environment is installed by default, you cannot access NTFS partitions, after installing and configuring NTFS-3G.

1. Install ntfs-3g

The code is as follows:

Apt-get-y Install ntfs-3g

2. Create a Mounted folder

I have three disks under Windows. All need access. So three new folders were created in/mnt,/mnt/c,/mnt/d,/mnt/e

3. Mount Partition

First use the Fdisk command to view current disk conditions

The code is as follows:

debian-hcshangxinli:/home/shang# fdisk-l

disk/dev/sda:74.7 GB, 74743119872 bytes

Heads, Sectors/track, 28964 cylinders

Units = Cylinders of 5040 * 2580480 bytes

Disk identifier:0xf0b1ebb0

Device Boot Start End Blocks Id System

/DEV/SDA1 * 1 6096 15361909+ 7 hpfs/ntfs

/dev/sda2 6097 16796 26964000 f W95 Ext ' d (LBA)

/dev/sda3 16797 28964 30663360 7 hpfs/ntfs

/dev/sda5 6097 16796 26963989+ 7 hpfs/ntfs

disk/dev/hda:10.2 GB, 10242892800 bytes

255 heads, Sectors/track, 1245 cylinders

Units = Cylinders of 16065 * 8225280 bytes

Disk Identifier:0x6f75ea16

Device Boot Start End Blocks Id System

/DEV/HDA1 * 1 248976 Linux

/dev/hda2 1245 9751455 8e Linux LVM

As you can see, I have Windows installed on my 80G hard drive and Debian is installed on the 10G hard drive.

/DEV/SDA1 corresponds to the C disk in Windows

/dev/sda2 corresponds to D disk in Windows

/dev/sda5 corresponds to E disk in Windows

The Mount command is as follows

The code is as follows:

Mount-t ntfs-3g/dev/sda1/mnt/c

Mount-t ntfs-3g/dev/sda3/mnt/d

Mount-t ntfs-3g/dev/sda5/mnt/e

4. Set up automatic mount

Add these three statements to the/etc/fstab file

The code is as follows:

/DEV/HDB1/MNT/C ntfs-3g Defaults 0 0

/DEV/HDB3/MNT/D ntfs-3g Defaults 0 0

/dev/hdb3/mnt/e ntfs-3g Defaults 0 0

5. How do i put this disk partition on the GNOME or KDE desktop?

In KDE, only need to click the mouse, in the desktop blank press the right mouse button can be found; not much said, too simple;

It's also very simple under gnome:

For example, I am beinan This user login system, want to put in Beinan this user's GNOME desktop;

The code is as follows:

[Beinan@localhost ~]$ ln-s/mnt/wind/~beinan/desktop/wind

6. View the number of the NTFS system

The code is as follows:

#/sbin/fdisk-l |grep NTFS

/DEV/SDC1 1 60801 488384001 7 hpfs/ntfs

Related Article

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.