In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Linux system how to install the use of ntfs-3g mount NTFS partition, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can get something.
The ntfs partition cannot be accessed after the system environment is installed by default, but after ntfs-3g is installed and configured.
1. Install ntfs-3g
The code is as follows:
Apt-get-y install ntfs-3g
two。 Create a mounted folder
There are three disks under my windows. All need to be visited. So three new folders are created in / mnt, which are / mnt/C, / mnt/D, / mnt/E
3. Mount partition
First use the fdisk command to check the current disk situation
The code is as follows:
Debian-hcshangxinli:/home/shang# fdisk-l
Disk / dev/sda: 74.7 GB, 74743119872 bytes
240 heads, 21 sectors/track, 28964 cylinders
Units = cylinders of 5040 * 512 = 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, 63 sectors/track, 1245 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x6f75ea16
Device Boot Start End Blocks Id System
/ dev/hda1 * 1 31 248976 83 Linux
/ dev/hda2 32 1245 9751455 8e Linux LVM
As you can see, I installed windows on the 80g hard drive and debian on the 10g hard drive.
/ dev/sda1 corresponds to disk C in windows
/ dev/sda2 corresponds to D disk in windows
/ dev/sda5 corresponds to the 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 boot auto mount
Just 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 you put this disk partition on your GNOME or KDE desktop?
Under KDE, you only need to click the mouse and press the right mouse button in the blank space of the desktop to find it.
It is also very simple under GNOME:
For example, I logged into the system as beinan, and I want to put it on the GNOME desktop of the user beinan.
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
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.