Use a USB hard drive on my Linux box.

xiaoxiao2021-03-06  113

background:

I installed a Linux3.0a, just made a friend with a USB hard drive to take something. So I tested my own USB hard drive. My hard disk is divided into 3 districts, the first primary partition is NTFS, the partition used in the past. Extension Partition is divided into two Logical Partitions, which is FAT32.

step:

1.plug the USB Disk and check it:

#fdisk -l / dev / sda device boot start end blocks id system / dev / sda1 * 1 1410 11325793 7 HPFS / NTFS / DEV / SDA2 1411 2432 8209215 F Win95 ext'd (lba) / dev / sda5 1411 2432 8209183 B Win95 FAT32 can be seen that the first partition is NTFS.

2. Check The File System My Linux Box Supports.

Adopt: #dmesg | grep -i ntfs did not return any information. #grep -i ntfs / var / log / messages or: # cd /lib/modules/2.4.21-4.el/kernel/fs# ls or

Oh, NTFS is not in the list. So I decided to install this module first.

3. Download the RPM

http://linux-ntfs.sourceforge.net/rpm/rhel3.html

4. It took a long time, RPM-I told me to run on 2.4.21-4.l, uname -a, which was originally started to 2.4.21-4.ELSMP, so modified / etc / grub. Conf, choose 1. Then reboot

5. Run rpm -i kernel-ntfs-2.4.21-4.el.i686.rpm, successfully installed.

6. Surprise, CAT / Proc / FileSystems can't find NTFS., Other /lib/modules/.../fs is there.

7. Mount Try #CD / MNT # mkdir USBDisk # mount / dev / sda1 / mnt / usbdisk -t ntfs -r # cd / mnt / usbdisk # ll

Yes, you can see something.

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

New Post(0)