1. æè½½USB
æ¥ äºä¸ä¸èµæï¼ä¾æ®ä»¥ä¸æ¥éª¤å³å¯æå®ã
1ãç»é
2ãå¨/mnt æ件夹å建ä¸ä¸ªusbdiskç®å½ï¼ç¨æ¥å 载移å¨ç¡¬çç¨ã
3ãæ£æ¥æ ¸å¿æ¯å¦å è½½USB模å
æ§è¡ #dmesg | grep usb
å¦ææ"usb.c: registered....."ä¿¡æ¯è¯´æ模åå·²å è½½,å¦åéè¦æ§è¡:
# modprobe usb-uhci
# modprobe usb-storage
#dmesg
ï¼è¾åºä¸æä¸è¥¿ï¼
4ãæå
¥ç§»å¨ç¡¬ç
ç¶åæ¥çå è½½ç»æï¼
#dmesg | tail
å¯ä»¥çå°
SCSI device sda: 19640880 512-byte hdwr sectors (10056 MB)
sdb: sdb......
-----------------------------------
å è½½usbçå½ä»¤æ¯ mount /dev/sda1 /mnt/usb -o iocharset=cp936,umask=0000
å
¶ä¸mountæ¯å è½½å½ ä»¤,/dev/sda1æ¯usb设å¤å¨ä½ çlinuxéè¾¹ç表示,linuxæ¯ç¨æ件æ¥è¡¨ç¤ºææçä¸è¥¿ç,/mnt/usbæ¯ä½ è¦å è½½å°çç®å½,-o iocharset=cp936æ¯ä¸ºäºæ¾ç¤ºä¸æ
=============================
2. 使ç¨å
驱
ï¼1ï¼ä½¿ç¨å
驱åï¼è¦å
mountä¸ä¸ï¼ï¼mount /dev/cdrom /mnt/cdromï¼ç¶åæ¨å°±å¯ä»¥è¿å
¥/mnt/cdromç®å½ä¸è¯»åå
çå
容äºï¼
ï¼2ï¼å½æ¨æ³é åºå
çæ¶ï¼é¡»ä½¿ç¨umoutå½ä»¤ï¼å¦åå
驱就ä¼ä¸ç´å¤äºæ»éç¶æï¼ï¼umount /mnt/cdromã
æ示ï¼mount:block device /dev/cdrom is write - protected , mounting read-only
è¿ä¸ªä¿¡æ¯åºæ¥è¯´æ å
驱已ç»æè½½æåäºã
åªæ¯ç±äºå
çæ¯åªè¯»è®¾å¤ï¼ä¸è½åã
================================
3. æ载软ç
ãã
ããå°è½¯çæè½½å°/mnt/floppyç®å½çå½ä»¤å¦ä¸ï¼
ãã
ãã# mount /dev/fd0 /mnt/floppy
ãã
ããå¸è½½è½¯ççå½ä»¤å¦ä¸ï¼
ãã
ãã#umount /mnt/floppy
=========================================
4. æè½½å¤æ硬çååº
ãã
ããæè½½å¤æ硬çååºï¼FAT32æ ¼å¼ï¼åæ ·éè¦å
ç¨âfdisk -1âæ¥çå¤æç硬çååºè®¾å¤å·ï¼å设为/dev/hda1ã建ç«/mnt/vfatæè½½ç®å½åï¼ä½¿ç¨å¦ä¸å½ä»¤è¿è¡æè½½ï¼
ãã
ãã# mount -t vfat /dev/hda1 /mnt/vfat
ãã
ãã注æï¼é»è®¤æ
åµä¸Linuxåªå
许rootç¨æ·æ§è¡ mountå½ä»¤ãå¦ææ³è®©ä¸è¬ç¨æ·ä¹è½æè½½ï¼å¹¶ä¸å¸æå¨ç³»ç»å¯å¨æ¶èªå¨æè½½å
çæ软çï¼éè¦ä¿®æ¹/etc/fstabé
ç½®æ件ï¼å å
¥ä»¥ä¸å
容ï¼
ã ã
ããLABEL=/ /ãext3ãããdefaultsãã11
ãã/dev/cdrom/mnt/cdrom iSo9660 auto,owner,kudzu,ro,user 00
ãã/dev/fdoã/mnt/floppy autoãauto,owner,kudzu,ro,user 00
ãã
ããå
¶ä¸ï¼âuserâ表示å°mountå½ä»¤èµäºä¸è¬ç¨æ·ä½¿ç¨ã
=============================================
5. èªå¨æè½½çååº
ããæ¯æ¬¡å¼æºè®¿é®windowsååºé½è¦è¿è¡mountå½ä»¤æ¾ç¶å¤ªç¦çï¼ä¸ºä»ä¹è®¿é®å
¶ä»çlinux ååºä¸ç¨ä½¿ç¨mountå½ä»¤å¢ï¼
ããå
¶å®ï¼æ¯æ¬¡å¼æºæ¶ï¼linuxèªå¨å°éè¦æè½½çlinuxååºæè½½ä¸äºãé£ä¹æ们æ¯ä¸æ¯å¯ä»¥è®¾å®è®© linuxå¨å¯å¨çæ¶åä¹æè½½æ们å¸ææè½½çååºï¼å¦windowsååºï¼ä»¥å®ç°æ件系ç»çèªå¨æè½½å¢ï¼
ããè¿æ¯å®å
¨å¯ä»¥çãå¨/etc ç®å½ä¸æ个fstabæ件ï¼å®éé¢ååºäºlinuxå¼æºæ¶èªå¨æè½½çæ件系ç»çå表ãæç/etc/fstabæ件å¦ä¸ï¼
ãã /dev/hda2 / ext3 defaults 1 1
ãã /dev/hda1 /boot ext3 defaults 1 2
ã ãnone /dev/pts devpts gid=5,mode=620 0 0
ãã none /proc proc defaults 0 0
ãã none /dev/shm tmpfs defaults 0 0
ãã /dev/hda3 swap swap defaults 0 0
ãã/dev/cdrom /mnt/cdrom iso9660 noauto,codepage=936,iocharset=gb2312 0 0
ãã/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
ãã/dev/hdb1 /mnt/winc vfat defaults,codepage=936,iocharset=cp936 0 0
ãã/dev/hda5 /mnt/wind vfat defaults,codepage=936,iocharset=cp936 0 0
ããå¨/etc/fstabæ件éï¼ç¬¬ ä¸åæ¯æè½½çæ件系ç»ç设å¤åï¼ç¬¬äºåæ¯æè½½ç¹ï¼ç¬¬ä¸åæ¯æè½½çæ件系ç»ç±»åï¼ç¬¬ååæ¯æè½½çé项ï¼é项é´ç¨éå·åéã第äºå
åä¸ç¥éæ¯ä»ä¹ææï¼è¿æé«ææç¹ã
ããå¨æå两è¡æ¯ææ工添å çwindowsä¸çCï¼Dçï¼å äºcodepage=936åiocharset=cp936åæ°ä»¥æ¯æä¸ææ件åãåæ°defaultså®é
ä¸å
å«äºä¸ç»é»è®¤åæ°ï¼
ããrw 以å¯è¯»å模å¼æè½½
ããsuid å¼å¯ç¨æ·IDå群ç»ID设置ä½
ããdev å¯è§£è¯»æ件系ç»ä¸çå符æåºå设å¤
ããexec å¯æ§è¡äºè¿å¶æ件
ã ãauto èªå¨æè½½
ããnouser 使ä¸è¬ç¨æ·æ æ³æè½½
ããasync 以éåæ¥æ¹å¼æ§è¡æ件系ç»çè¾å
¥è¾åºæä½
ã 驱å软驱æ¯ä¸èªå¨æè½½çï¼åæ°è®¾ç½®ä¸ºnoautoãï¼å¦æä½ éè¦è®¾æèªå¨æè½½ï¼ä½ è¦ç¡®ä¿æ¯æ¬¡å¼æºæ¶ä½ çå
驱å软驱éé½è¦æçãï¼
温馨提示:内容为网友见解,仅供参考