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--
This article introduces the relevant knowledge of "how to mount U disk, hard disk and CD-ROM drive under Linux system". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
1. Mount the USB disk on Linux:
1. Insert a U disk into the computer. If only one U disk is currently inserted and your hard disk is not the hard disk interface of scsi, its hardware name is: sda1.
2. Create a usb directory under the mnt directory (for example: [root@localhost root] # mkdir / mnt/usb)
3. Mount the USB flash drive: mount-t vfat / dev/sda1 / mnt/usb
4. Uninstall USB flash drive: umount / mnt/usb
5. Delete the usb directory: rm-rf / mnt/usb
2. Mount the hard disk in Linux:
1. Add FAT32 file system
The simplest use
Mount / dev/hda6 / mnt/wine
/ dev/hda6 is the E disk of Windows, and / mnt/wine is the directory plus mount point. Linux will recognize the file system type of the / dev/hda6 partition and add it. Of course, you can also specify the file system type of the partition. The command is as follows:
Mount-t vfat / dev/hda6 / mnt/wine
In practice, if you directly attach a partition of windows, the Chinese file name and directory name will be garbled. To avoid this, you can specify the character set as follows:
Mount / dev/hda6 / mnt/d-o codepage=936,iocharset=cp936
Mount-t vfat / dev/hda6 / mnt/d-o codepage=936,iocharset=cp936
Mount-t vfat-o iocharset=cp936,codepage=936 / dev/hda6 / mnt/wine (commonly used by authors)
Note: cp936 refers to simplified Chinese and cp950 refers to traditional Chinese.
Uninstall the hanging hard drive umount / mnt/wine
Delete the hanging hard drive rm-rf / mnt/wine
two。 Add NTFS file system
On most current versions of Linux, you need to recompile the Linux core to add the NTFS partition (see other articles for compilation methods). After the core supports NTFS, you can add it with the following command:
Mount-t ntfs / dev/hda2 / mnt/c
Similarly, for the problem of garbled Chinese file and directory names, you can specify the character set, but unlike adding vfat partitions, it is feasible to use the following command in practice:
Mount-t ntfs-o iocharset=cp936 / dev/hda2 / mnt/c-r
Mount-t ntfs-o iocharset=cp936,rw / dev/hda2 / mnt/c
Note: cp936 refers to simplified Chinese and cp950 refers to traditional Chinese.
Uninstall and delete ditto!
3. Linux automatically mounts the hard disk
Open / etc to find the fstab file in it for editing. If you are logged in as an administrator, you can right-click-open-gedit, and add the line directly:
/ dev/hda6 / mnt/wine vfat codepage=936,iocharset=cp936,defaults,umask=0 0 0
/ dev/hda5 / mnt/wind vfat codepage=936,iocharset=cp936 0 0
4. Mount the optical drive on Linux:
Command: mount-t iso9660 / dev/hdc / mnt/cdrom
Uninstall and delete ditto!
This is the end of the content of "how to mount U disk, hard disk and CD-ROM drive under Linux system". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.