How to access NTFS partitions under Linux

xiaoxiao2021-03-06  38

Problem Description:

In some cases, the system needs to access the data on the local NTFS partition, or you may need to access data on the NTFS file format on the network. When using the mount -t mount file system, the system report does not support NTFS errors.

Solution:

Due to the default, the Linux core does not support NTFS file systems. Therefore, customers need to re-link the core.

1. Log in to the system as root, run StartX, enter X Windows.

2. Open a terminal window, # cd / usr / src / linux, enter the source file directory.

3, # make Xconfig, a "Linux Kernel Configuration" window appears.

4. Click the "FileSystems" button, which will find two lines related to the NTFS file system, "NTFS FileSystem Support (" NTFS Read-Write Support (Dangerous) ", is currently set to" N ".

5. As needed, change the corresponding setting by "N" to "Y", generally set only the read-only options, as needed.

6. Click the "Main Menu" button to return to the main interface, click the "Save and EXIT" button to return to the terminal window.

7, run the following command, regenerate the core file:

#make dep

#make clean

#make zimage (Note: If the generated core is large, please use bzimage)

#make modules

#make modules_install

8, # cp / usr / src / linux- [version number] / Arch / i386 / boot / bzimage / boot

9, # mkinitrd / boot / initrd- [version number] NTFS.IMG [version number]

10, # vi /etc/lilo.conf, edit file, join the following

Image = / boot / bzimage

Label = NTFS

Initrd = / boot / initrd- [version number] NTFS.IMG

Read-only

root = / dev / sda1

11, # lilo -v makes the LILO file take effect.

12. Restart the machine, type "NTFS" in the "Boot:" prompt, you can enter the Linux system that supports the NTFS file format.

转载请注明原文地址:https://www.9cbs.com/read-62610.html

New Post(0)