当前位置: 技术问答>linux和unix
怎么在linux下加载优盘?
来源: 互联网 发布时间:2015-02-18
本文导语: 谢谢各位大虾 | mount /dev/sda1 /mnt cd /mnt | 你的/dev下面应该用呀 | 你试试sda1或sda0 mount上就行了。 我jiu\ | Syntax: mount -t fstype ...
谢谢各位大虾
|
mount /dev/sda1 /mnt
cd /mnt
cd /mnt
|
你的/dev下面应该用呀
|
你试试sda1或sda0
mount上就行了。
我jiu\
mount上就行了。
我jiu\
|
Syntax:
mount -t fstype -o options [device_name] [mount_point]
(fstype stands for 'filesystem type')
for example, you want to mount a floopy to /mnt/floppy. Here,
fstype - vfat (fat32)
device_name - /dev/fd[0-7] (standard floppy drive)
mount_point - /mnt/floppy
so you can do like this:
mkdir /mnt/floppy (if /mnt/floppy doesn't exist)
mount -t vfat /dev/fd0 /mnt/floppy
Another example. If you want to mount a "U-disk" to /mnt/Udisk. Here,
fstype - vfat (if the filesystem in your "U-disk" was created by Windows OS, otherwise you should choose a fstype according to the filesystem in your "U-disk")
device_name - /dev/sd[0-25] or /dev/sd[a-z]+ (SCSI drive)
mount_point - /mnt/Udisk
so you can do like this:
mkdir /mnt/Udisk (if /mnt/floppy doesn't exist)
mount -t vfat /dev/sd0 /mnt/Udisk
or
mount -t vfat /dev/sda /mnt/Udisk
A good option '-a' - automatically identify filesystem:
mount -a /dev/fd0 /mnt/floppy
mount -a /dev/cdrom /mnt/cdrom
mount -a /dev/sd0 /mnt/Udisk
Appendix:
Block Devices:
hd[a-t] IDE drvies
sd[a-z]+ SCSI drives
fd[0-7] standard floppy drives
md[0-31] software RAID metadisks
loop[0-15] loopback devices
ram[0-19] ramdisks
(END)
mount -t fstype -o options [device_name] [mount_point]
(fstype stands for 'filesystem type')
for example, you want to mount a floopy to /mnt/floppy. Here,
fstype - vfat (fat32)
device_name - /dev/fd[0-7] (standard floppy drive)
mount_point - /mnt/floppy
so you can do like this:
mkdir /mnt/floppy (if /mnt/floppy doesn't exist)
mount -t vfat /dev/fd0 /mnt/floppy
Another example. If you want to mount a "U-disk" to /mnt/Udisk. Here,
fstype - vfat (if the filesystem in your "U-disk" was created by Windows OS, otherwise you should choose a fstype according to the filesystem in your "U-disk")
device_name - /dev/sd[0-25] or /dev/sd[a-z]+ (SCSI drive)
mount_point - /mnt/Udisk
so you can do like this:
mkdir /mnt/Udisk (if /mnt/floppy doesn't exist)
mount -t vfat /dev/sd0 /mnt/Udisk
or
mount -t vfat /dev/sda /mnt/Udisk
A good option '-a' - automatically identify filesystem:
mount -a /dev/fd0 /mnt/floppy
mount -a /dev/cdrom /mnt/cdrom
mount -a /dev/sd0 /mnt/Udisk
Appendix:
Block Devices:
hd[a-t] IDE drvies
sd[a-z]+ SCSI drives
fd[0-7] standard floppy drives
md[0-31] software RAID metadisks
loop[0-15] loopback devices
ram[0-19] ramdisks
(END)