且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

CentOS4.4平台下测试挂载U盘

更新时间:2022-04-29 08:28:48

 


======都是以前写的档,好多都丢了,今无意中找来几个全放出来,放出以便后参考======

CentOS4.4平台下测试挂载U
                                                                             -----2008.5.26  Weihu.Yan----
1.       系统平台:
CentOS4.4安装的包有:开放工具包及兼容软件包;
2.       挂载U盘前:查看机器硬盘信息如下:
[root@extmail ~]# fdisk -l
Disk /dev/hda: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1          13      104391   83  Linux
/dev/hda2              14        4998    40042012+  8e  Linux LVM
 
3.       插上U盘后,再查看如下:
[root@extmail ~]# fdisk -l
Disk /dev/hda: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1          13      104391   83  Linux
/dev/hda2              14        4998    40042012+  8e  Linux LVM
 
Disk /dev/sda: 1998 MB, 1998519808 bytes
243 heads, 32 sectors/track, 501 cylinders
Units = cylinders of 7776 * 512 = 3981312 bytes
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1         502     1951663+   b  W95 FAT32
Partition 1 has different physical/logical endings:
     phys=(502, 242, 32) logical=(501, 236, 31)
4.       见上面绿色字体,发现已经找到U盘了!接下来挂载即可!
[root@extmail ~]# cd /mnt/usb/
[root@extmail usb]# ls    ######一切OK,可以查看到下面的文件了#######
4UWMAMP3Converter.exe   mp3zhuanhcn.rar
    [root@extmail tmp]# umount /dev/sda1   #####如果想要拨除,卸载即可#####
[root@extmail tmp]# ls /mnt/usb/   ####再次查看已经没有了######
[root@extmail tmp]#
5.    此测试虽在CentOS4.4平台测试,其它版本平台的LINUX依旧可以参考此文!

本文转自 godoha  51CTO博客,原文链接:http://blog.51cto.com/godoha/153457 ,如需转载请自行联系原作者