当前位置: 技术问答>linux和unix
关于mount命令,应挂载哪个硬件的问题
来源: 互联网 发布时间:2016-04-13
本文导语: 大家都知道, 用mount命令可以挂载硬件, 但是有个问题, 我想挂载一个优盘,用ls -al 命令查看/dev下面的文件,结果如下 drwxr-xr-x 12 root root 13960 2008-09-18 22:21 . drwxr-xr-x 21 root root 4096 ...
大家都知道, 用mount命令可以挂载硬件, 但是有个问题, 我想挂载一个优盘,用ls -al 命令查看/dev下面的文件,结果如下
drwxr-xr-x 12 root root 13960 2008-09-18 22:21 .
drwxr-xr-x 21 root root 4096 2008-08-01 09:23 ..
crw-rw----+ 1 root audio 14, 12 2008-09-18 22:02 adsp
crw-rw---- 1 root video 10, 175 2008-09-18 22:02 agpgart
crw-rw----+ 1 root audio 14, 4 2008-09-18 22:02 audio
drwxr-xr-x 3 root root 60 2008-09-18 22:01 bus
lrwxrwxrwx 1 root root 4 2008-09-18 22:02 cdrom -> scd0
crw------- 1 root dialout 5, 1 2008-09-18 22:05 console
drwxr-xr-x 4 root root 80 2008-09-18 22:01 disk
crw-rw---- 1 root audio 14, 9 2008-09-18 22:02 dmmidi
crw-rw----+ 1 root audio 14, 3 2008-09-18 22:02 dsp
lrwxrwxrwx 1 root root 13 2008-09-18 22:02 fd -> /proc/self/fd
brw-rw---- 1 root floppy 2, 0 2008-09-18 22:01 fd0
brw-r----- 1 root disk 2, 84 2008-09-18 22:02 fd0u1040
brw-r----- 1 root disk 2, 88 2008-09-18 22:02 fd0u1120
brw-r----- 1 root disk 2, 28 2008-09-18 22:02 fd0u1440
brw-r----- 1 root disk 2, 124 2008-09-18 22:02 fd0u1600
brw-r----- 1 root disk 2, 44 2008-09-18 22:02 fd0u1680
brw-r----- 1 root disk 2, 60 2008-09-18 22:02 fd0u1722
brw-r----- 1 root disk 2, 76 2008-09-18 22:02 fd0u1743
brw-r----- 1 root disk 2, 96 2008-09-18 22:02 fd0u1760
brw-r----- 1 root disk 2, 116 2008-09-18 22:02 fd0u1840
brw-r----- 1 root disk 2, 100 2008-09-18 22:02 fd0u1920
brw-r----- 1 root disk 2, 12 2008-09-18 22:02 fd0u360
brw-r----- 1 root disk 2, 16 2008-09-18 22:02 fd0u720
brw-r----- 1 root disk 2, 120 2008-09-18 22:02 fd0u800
brw-r----- 1 root disk 2, 52 2008-09-18 22:02 fd0u820
brw-r----- 1 root disk 2, 68 2008-09-18 22:02 fd0u830
drwxr-xr-x 3 root root 100 2008-09-18 22:01 .initramfs
drwxr-xr-x 3 root root 220 2008-09-18 22:02 input
crw-rw----+ 1 root audio 14, 2 2008-09-18 22:02 midi
crw-rw----+ 1 root audio 14, 0 2008-09-18 22:02 mixer
drwxr-xr-x 2 root root 60 2008-04-22 13:49 net
crw-rw---- 1 root video 195, 0 2008-09-18 22:05 nvidia0
crw-rw---- 1 root video 195, 255 2008-09-18 22:05 nvidiactl
crw-rw---- 1 root root 1, 12 2008-09-18 22:01 oldmem
crw-rw-rw- 1 root dialout 5, 2 2008-09-18 22:41 ptmx
drwxr-xr-x 2 root root 0 2008-09-18 22:01 pts
crw-rw-rw- 1 root tty 2, 189 2008-09-18 22:01 ptyad
crw-rw-rw- 1 root tty 2, 77 2008-09-18 22:01 ptytd
crw-rw-rw- 1 root tty 2, 93 2008-09-18 22:01 ptyud
crw-rw-rw- 1 root tty 2, 109 2008-09-18 22:01 ptyvd
crw-rw-rw- 1 root tty 2, 125 2008-09-18 22:01 ptywd
crw-rw-rw- 1 root tty 2, 141 2008-09-18 22:01 ptyxd
crw-rw-rw- 1 root tty 2, 157 2008-09-18 22:01 ptyyd
crw-rw-rw- 1 root tty 2, 173 2008-09-18 22:01 ptyzd
brw-rw---- 1 root disk 1, 0 2008-09-18 22:01 ram0
brw-rw---- 1 root disk 1, 1 2008-09-18 22:01 ram1
brw-rw---- 1 root disk 1, 10 2008-09-18 22:01 ram10
brw-rw---- 1 root disk 1, 11 2008-09-18 22:01 ram11
brw-rw---- 1 root disk 1, 12 2008-09-18 22:01 ram12
brw-rw---- 1 root disk 1, 13 2008-09-18 22:01 ram13
brw-rw---- 1 root disk 1, 14 2008-09-18 22:01 ram14
brw-rw---- 1 root disk 1, 15 2008-09-18 22:01 ram15
brw-rw---- 1 root disk 1, 2 2008-09-18 22:01 ram2
brw-rw---- 1 root disk 1, 3 2008-09-18 22:01 ram3
brw-rw---- 1 root disk 1, 4 2008-09-18 22:01 ram4
brw-rw---- 1 root disk 1, 5 2008-09-18 22:01 ram5
brw-rw---- 1 root disk 1, 6 2008-09-18 22:01 ram6
brw-rw---- 1 root disk 1, 7 2008-09-18 22:01 ram7
brw-rw---- 1 root disk 1, 8 2008-09-18 22:01 ram8
brw-rw---- 1 root disk 1, 9 2008-09-18 22:01 ram9
crw-rw-rw- 1 root root 1, 8 2008-09-18 22:01 random
crw-rw---- 1 root audio 10, 135 2008-09-18 22:01 rtc
brw-rw----+ 1 root cdrom 11, 0 2008-09-18 22:01 scd0
brw-rw---- 1 root disk 8, 0 2008-09-18 22:01 sda
brw-rw---- 1 root disk 8, 1 2008-09-18 22:02 sda1
brw-rw---- 1 root disk 8, 2 2008-09-18 22:01 sda2
brw-rw---- 1 root disk 8, 5 2008-09-18 22:01 sda5
crw-rw----+ 1 root audio 14, 1 2008-09-18 22:02 sequencer
crw-rw----+ 1 root audio 14, 8 2008-09-18 22:02 sequencer2
crw-rw---- 1 root cdrom 21, 0 2008-09-18 22:01 sg0
crw-rw---- 1 root disk 21, 1 2008-09-18 22:01 sg1
drwxrwxrwt 2 root root 60 2008-09-18 22:14 shm
drwxr-xr-x 2 root root 180 2008-09-18 22:02 snd
lrwxrwxrwx 1 root root 24 2008-09-18 22:02 sndstat -> /proc/asound/oss/sndstat
lrwxrwxrwx 1 root root 4 2008-09-18 22:02 sr0 -> scd0
drwxr-xr-x 3 root root 60 2008-09-18 22:01 .static
lrwxrwxrwx 1 root root 15 2008-09-18 22:02 stderr -> /proc/self/fd/2
lrwxrwxrwx 1 root root 15 2008-09-18 22:02 stdin -> /proc/self/fd/0
lrwxrwxrwx 1 root root 15 2008-09-18 22:02 stdout -> /proc/self/fd/1
crw-rw-rw- 1 root dialout 5, 0 2008-09-18 22:01 tty
drwxr-xr-x 6 root root 140 2008-09-18 22:34 .udev
crw-rw-rw- 1 root root 1, 9 2008-09-18 22:02 urandom
crw-rw---- 1 root root 254, 0 2008-09-18 22:01 usbdev1.1_ep00
crw-rw---- 1 root root 254, 1 2008-09-18 22:01 usbdev1.1_ep81
crw-rw---- 1 root root 254, 2 2008-09-18 22:21 usbdev1.3_ep00
crw-rw---- 1 root root 254, 3 2008-09-18 22:21 usbdev1.3_ep01
crw-rw---- 1 root root 254, 4 2008-09-18 22:21 usbdev1.3_ep82
prw-r----- 1 syslog adm 0 2008-09-18 22:36 xconsole
显示为disk的有很多个, 显示为usbdev的,也有很多个, 到时我应挂载哪一个呢? 请问那位高手能教我用什么规律来判定吗?
还有
crw-rw-rw- 1 root tty 2, 93 2008-09-18 22:01 ptyud
我见有很多行是tty类型的, 是指什么东西呢?
brw-rw---- 1 root disk 1, 4 2008-09-18 22:01 ram4
这种*ram的,也有很多个, 具体是指什么呢?
先谢谢大家了.
drwxr-xr-x 12 root root 13960 2008-09-18 22:21 .
drwxr-xr-x 21 root root 4096 2008-08-01 09:23 ..
crw-rw----+ 1 root audio 14, 12 2008-09-18 22:02 adsp
crw-rw---- 1 root video 10, 175 2008-09-18 22:02 agpgart
crw-rw----+ 1 root audio 14, 4 2008-09-18 22:02 audio
drwxr-xr-x 3 root root 60 2008-09-18 22:01 bus
lrwxrwxrwx 1 root root 4 2008-09-18 22:02 cdrom -> scd0
crw------- 1 root dialout 5, 1 2008-09-18 22:05 console
drwxr-xr-x 4 root root 80 2008-09-18 22:01 disk
crw-rw---- 1 root audio 14, 9 2008-09-18 22:02 dmmidi
crw-rw----+ 1 root audio 14, 3 2008-09-18 22:02 dsp
lrwxrwxrwx 1 root root 13 2008-09-18 22:02 fd -> /proc/self/fd
brw-rw---- 1 root floppy 2, 0 2008-09-18 22:01 fd0
brw-r----- 1 root disk 2, 84 2008-09-18 22:02 fd0u1040
brw-r----- 1 root disk 2, 88 2008-09-18 22:02 fd0u1120
brw-r----- 1 root disk 2, 28 2008-09-18 22:02 fd0u1440
brw-r----- 1 root disk 2, 124 2008-09-18 22:02 fd0u1600
brw-r----- 1 root disk 2, 44 2008-09-18 22:02 fd0u1680
brw-r----- 1 root disk 2, 60 2008-09-18 22:02 fd0u1722
brw-r----- 1 root disk 2, 76 2008-09-18 22:02 fd0u1743
brw-r----- 1 root disk 2, 96 2008-09-18 22:02 fd0u1760
brw-r----- 1 root disk 2, 116 2008-09-18 22:02 fd0u1840
brw-r----- 1 root disk 2, 100 2008-09-18 22:02 fd0u1920
brw-r----- 1 root disk 2, 12 2008-09-18 22:02 fd0u360
brw-r----- 1 root disk 2, 16 2008-09-18 22:02 fd0u720
brw-r----- 1 root disk 2, 120 2008-09-18 22:02 fd0u800
brw-r----- 1 root disk 2, 52 2008-09-18 22:02 fd0u820
brw-r----- 1 root disk 2, 68 2008-09-18 22:02 fd0u830
drwxr-xr-x 3 root root 100 2008-09-18 22:01 .initramfs
drwxr-xr-x 3 root root 220 2008-09-18 22:02 input
crw-rw----+ 1 root audio 14, 2 2008-09-18 22:02 midi
crw-rw----+ 1 root audio 14, 0 2008-09-18 22:02 mixer
drwxr-xr-x 2 root root 60 2008-04-22 13:49 net
crw-rw---- 1 root video 195, 0 2008-09-18 22:05 nvidia0
crw-rw---- 1 root video 195, 255 2008-09-18 22:05 nvidiactl
crw-rw---- 1 root root 1, 12 2008-09-18 22:01 oldmem
crw-rw-rw- 1 root dialout 5, 2 2008-09-18 22:41 ptmx
drwxr-xr-x 2 root root 0 2008-09-18 22:01 pts
crw-rw-rw- 1 root tty 2, 189 2008-09-18 22:01 ptyad
crw-rw-rw- 1 root tty 2, 77 2008-09-18 22:01 ptytd
crw-rw-rw- 1 root tty 2, 93 2008-09-18 22:01 ptyud
crw-rw-rw- 1 root tty 2, 109 2008-09-18 22:01 ptyvd
crw-rw-rw- 1 root tty 2, 125 2008-09-18 22:01 ptywd
crw-rw-rw- 1 root tty 2, 141 2008-09-18 22:01 ptyxd
crw-rw-rw- 1 root tty 2, 157 2008-09-18 22:01 ptyyd
crw-rw-rw- 1 root tty 2, 173 2008-09-18 22:01 ptyzd
brw-rw---- 1 root disk 1, 0 2008-09-18 22:01 ram0
brw-rw---- 1 root disk 1, 1 2008-09-18 22:01 ram1
brw-rw---- 1 root disk 1, 10 2008-09-18 22:01 ram10
brw-rw---- 1 root disk 1, 11 2008-09-18 22:01 ram11
brw-rw---- 1 root disk 1, 12 2008-09-18 22:01 ram12
brw-rw---- 1 root disk 1, 13 2008-09-18 22:01 ram13
brw-rw---- 1 root disk 1, 14 2008-09-18 22:01 ram14
brw-rw---- 1 root disk 1, 15 2008-09-18 22:01 ram15
brw-rw---- 1 root disk 1, 2 2008-09-18 22:01 ram2
brw-rw---- 1 root disk 1, 3 2008-09-18 22:01 ram3
brw-rw---- 1 root disk 1, 4 2008-09-18 22:01 ram4
brw-rw---- 1 root disk 1, 5 2008-09-18 22:01 ram5
brw-rw---- 1 root disk 1, 6 2008-09-18 22:01 ram6
brw-rw---- 1 root disk 1, 7 2008-09-18 22:01 ram7
brw-rw---- 1 root disk 1, 8 2008-09-18 22:01 ram8
brw-rw---- 1 root disk 1, 9 2008-09-18 22:01 ram9
crw-rw-rw- 1 root root 1, 8 2008-09-18 22:01 random
crw-rw---- 1 root audio 10, 135 2008-09-18 22:01 rtc
brw-rw----+ 1 root cdrom 11, 0 2008-09-18 22:01 scd0
brw-rw---- 1 root disk 8, 0 2008-09-18 22:01 sda
brw-rw---- 1 root disk 8, 1 2008-09-18 22:02 sda1
brw-rw---- 1 root disk 8, 2 2008-09-18 22:01 sda2
brw-rw---- 1 root disk 8, 5 2008-09-18 22:01 sda5
crw-rw----+ 1 root audio 14, 1 2008-09-18 22:02 sequencer
crw-rw----+ 1 root audio 14, 8 2008-09-18 22:02 sequencer2
crw-rw---- 1 root cdrom 21, 0 2008-09-18 22:01 sg0
crw-rw---- 1 root disk 21, 1 2008-09-18 22:01 sg1
drwxrwxrwt 2 root root 60 2008-09-18 22:14 shm
drwxr-xr-x 2 root root 180 2008-09-18 22:02 snd
lrwxrwxrwx 1 root root 24 2008-09-18 22:02 sndstat -> /proc/asound/oss/sndstat
lrwxrwxrwx 1 root root 4 2008-09-18 22:02 sr0 -> scd0
drwxr-xr-x 3 root root 60 2008-09-18 22:01 .static
lrwxrwxrwx 1 root root 15 2008-09-18 22:02 stderr -> /proc/self/fd/2
lrwxrwxrwx 1 root root 15 2008-09-18 22:02 stdin -> /proc/self/fd/0
lrwxrwxrwx 1 root root 15 2008-09-18 22:02 stdout -> /proc/self/fd/1
crw-rw-rw- 1 root dialout 5, 0 2008-09-18 22:01 tty
drwxr-xr-x 6 root root 140 2008-09-18 22:34 .udev
crw-rw-rw- 1 root root 1, 9 2008-09-18 22:02 urandom
crw-rw---- 1 root root 254, 0 2008-09-18 22:01 usbdev1.1_ep00
crw-rw---- 1 root root 254, 1 2008-09-18 22:01 usbdev1.1_ep81
crw-rw---- 1 root root 254, 2 2008-09-18 22:21 usbdev1.3_ep00
crw-rw---- 1 root root 254, 3 2008-09-18 22:21 usbdev1.3_ep01
crw-rw---- 1 root root 254, 4 2008-09-18 22:21 usbdev1.3_ep82
prw-r----- 1 syslog adm 0 2008-09-18 22:36 xconsole
显示为disk的有很多个, 显示为usbdev的,也有很多个, 到时我应挂载哪一个呢? 请问那位高手能教我用什么规律来判定吗?
还有
crw-rw-rw- 1 root tty 2, 93 2008-09-18 22:01 ptyud
我见有很多行是tty类型的, 是指什么东西呢?
brw-rw---- 1 root disk 1, 4 2008-09-18 22:01 ram4
这种*ram的,也有很多个, 具体是指什么呢?
先谢谢大家了.
|
用fdisk -l试试
tty是terminal
ram是ramdisk
tty是terminal
ram是ramdisk
|
Linux把U盘看作SCSI设备
所以一般就是sda1……,当然如果你有了sda1,那就是后来的了
所以一般就是sda1……,当然如果你有了sda1,那就是后来的了
|
一般挂载sda*