linux下mount
2014-04-30 18:25
302 查看
命令格式:
mount [-t vfstype] [-o options]
device dir
1、-t vfstype指定文件系统类型,通常不必指定。mount会自动选择正确的类型。常用的类型有:
linux文件网络共享:nfs
2、-o options描述设备或档案的挂接方式。常用参数有:
loop:用来把一个文件当成硬盘分区挂接上系统
ro:采用只读方式挂接设备
rw:采用读写方式挂接设备
iocharset:指定访问文件系统所用字符集
3、device 要挂接的设备
4、dir设备在系统上的挂接点
linux挂接usb设备:
fdisk -l 查看系统硬盘和硬盘分区情况
root@ubuntu:/horoot@ubuntu:/home/ad# fdisk -l
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168
sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xef24b474
Device
Boot
Start
End
Blocks Id
System
/dev/sda1
2048
52430847
26214400 1c
Hidden W95 FAT32 (LBA)
/dev/sda2
*
52430848
464080895
205825024
7 HPFS/NTFS/exFAT
/dev/sda3
464080896
976773119
256346112
f W95 Ext'd (LBA)
/dev/sda5
464082944
648402943
92160000
7 HPFS/NTFS/exFAT
/dev/sda6
648404992
812244991
81920000
7 HPFS/NTFS/exFAT
/dev/sda7
812247040
976771071
82262016
7 HPFS/NTFS/exFAT
Disk /dev/sdc: 15.4 GB, 15355346944 bytes
64 heads, 32 sectors/track, 14644 cylinders, total 29990912
sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device
Boot
Start
End
Blocks Id
System
可发现多了SCSI硬盘/dev/sdc
在/mnt下创建目录挂接点
root@ubuntu:/home/ad# mkdir /mnt/mynokia
将磁盘挂接至创建的挂接点
root@ubuntu:/home/ad# mount /dev/sdc /mnt/mynokia
然后就可以像访问普通目录一样访问usb设备了
相关网页:
http://www.jb51.net/os/RedHat/1109.html
mount [-t vfstype] [-o options]
device dir
1、-t vfstype指定文件系统类型,通常不必指定。mount会自动选择正确的类型。常用的类型有:
linux文件网络共享:nfs
2、-o options描述设备或档案的挂接方式。常用参数有:
loop:用来把一个文件当成硬盘分区挂接上系统
ro:采用只读方式挂接设备
rw:采用读写方式挂接设备
iocharset:指定访问文件系统所用字符集
3、device 要挂接的设备
4、dir设备在系统上的挂接点
linux挂接usb设备:
fdisk -l 查看系统硬盘和硬盘分区情况
root@ubuntu:/horoot@ubuntu:/home/ad# fdisk -l
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168
sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xef24b474
Device
Boot
Start
End
Blocks Id
System
/dev/sda1
2048
52430847
26214400 1c
Hidden W95 FAT32 (LBA)
/dev/sda2
*
52430848
464080895
205825024
7 HPFS/NTFS/exFAT
/dev/sda3
464080896
976773119
256346112
f W95 Ext'd (LBA)
/dev/sda5
464082944
648402943
92160000
7 HPFS/NTFS/exFAT
/dev/sda6
648404992
812244991
81920000
7 HPFS/NTFS/exFAT
/dev/sda7
812247040
976771071
82262016
7 HPFS/NTFS/exFAT
Disk /dev/sdc: 15.4 GB, 15355346944 bytes
64 heads, 32 sectors/track, 14644 cylinders, total 29990912
sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device
Boot
Start
End
Blocks Id
System
可发现多了SCSI硬盘/dev/sdc
在/mnt下创建目录挂接点
root@ubuntu:/home/ad# mkdir /mnt/mynokia
将磁盘挂接至创建的挂接点
root@ubuntu:/home/ad# mount /dev/sdc /mnt/mynokia
然后就可以像访问普通目录一样访问usb设备了
相关网页:
http://www.jb51.net/os/RedHat/1109.html
相关文章推荐
- 细说linux挂载——mount
- linux 下mount 域服务器中的目录
- linux 挂载(mount)
- U盘的热拔插/自动挂载跟linux2.6 kernel、 udev、 hal、 dbus 、gnome-mount 、thunar的关系
- Linux mount挂载目录
- LINUX mount -t用法
- [Linux筆記] 利用 mount 指令解決 Read-only file system 問題
- Linux中mount命令
- linux的mount命令详解
- Linux学习之CentOS(五)--让我有些郁闷的mount命令
- linux mount nfs and cifs
- mount问答之一 linux 挂装
- Linux命令学习手册-mountpoint命令
- Linux下一些常用介质的mount方法
- linux内核文件翻译-Mount options for ADFS
- 每天一个Linux命令:mount
- 转:linux mount and commpress/release
- linux文件系统调用(1)---mount
- linux使用cifs方式mount(挂载)Windows7共享文件
- linux的mount(挂载)命令详解