免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1038 | 回复: 0
打印 上一主题 下一主题

在Linux中mount命令使用实例 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-07-09 10:55 |只看该作者 |倒序浏览


【用户登录】
Red Hat Enterprise Linux Server release 5 (Tikanga)
Kernel 2.6.18-8.el5 on an i686
login: root
Password:
Last login: Tue Jul  7 19:23:00 from 10.10.10.10

【查看设备信息】
[root@mylove /]# fdisk -l
Disk /dev/sda: 72.8 GB, 72838283264 bytes
255 heads, 63 sectors/track, 8855 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sda1   *         1        13    104391   83  Linux
/dev/sda2            14      8601  68983110   83  Linux
/dev/sda3          8602      8855   2040255   82  Linux swap

Disk /dev/sdb: 4005 MB, 4005560320 bytes
21 heads, 21 sectors/track, 17740 cylinders
Units = cylinders of 441 * 512 = 225792 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sdb1            19     17741   3907648    b  Win95 FAT32
[root@mylove /]#  //*(mount -t msdos /dev/sdb1 /mnt/usb)*//
【光驱挂载】
[root@mylove /]# mount /dev/cdrom /mnt/cdrom
mount: block device /dev/cdrom is write-protected, mounting read-only
[root@mylove /]# ls  /mnt/cdrom
cd.txt            installralus.pl  perl            RALUSx86       uninstallralus      uninstallrams.pl
DOCS              installrams      pkgs            ramsinst.conf  uninstallralus.cmd  VxIF
installralus      installrams.pl   RALUS64         scripts        uninstallralus.pl   winnt
installralus.cmd  messages         ralusinst.conf  tools          uninstallrams
【光驱卸载】
[root@mylove /]#umount /mnt/cdrom
【弹出光盘】
[root@mylove /]#eject

【USB挂载】
[root@mylove /]#mkdir mnt/usb
[root@mylove mnt]# mount -t vfat /dev/sdb1 /mnt/usb


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/99388/showart_1990425.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP