荔园在线

荔园之美,在春之萌芽,在夏之绽放,在秋之收获,在冬之沉淀

[回到开始] [上一篇][下一篇]


发信人: xiaoq.bbs@bbs.cqupt.edu.cn (躲起来,不让你们看到), 信区: Linux
标  题: 双启动型USB优盘的使用举例和注意问题
发信站: 幽幽黄桷兰 (Mon Nov 25 22:48:31 2002)
转信站: SZU!news.tiaozhan.com!news.happynet.org!CQUPT

在市面上有一种双启动型的USB优盘(它可作为硬盘使用也可以作为软盘使用)

  但在LINUX上使用时,不少网友反映了不少问题,特别是以软盘使用时的问题最多,现
在以‘朗科64M双启动型USB优盘’作为例子,

一、硬盘方式


  >>> fdisk -l /dev/sd?
  Disk /dev/sda: 3 heads, 42 sectors, 1008 cylinders
  Units = cylinders of 126 * 512 bytes

  Device Boot Start End Blocks Id System
  /dev/sda1 * 1 1008 63472+ 6 FAT16
  Partition 1 has different physical/logical beginnings (non-Linux?):
  phys=(0, 1, 1) logical=(0, 1, 22)
  Partition 1 has different physical/logical endings:
  phys=(154, 13, 63) logical=(1007, 2, 42)
  Partition 1 does not end on cylinder boundary:
  phys=(154, 13, 63) should be (154, 2, 42)



  加载上面的分区


  mount -t vfat /dev/sda1 /mnt/mnt
    (这里的 /dev/sda1 是一个分区)



  那么现在就可以使用USB盘了

二、软盘方式


  >>> fdisk -l /dev/sd?
  Disk /dev/sda: 1 heads, 3 sectors, 960 cylinders
  Units = cylinders of 3 * 512 bytes

  Device Boot Start End Blocks Id System
  /dev/sda1 ? 1820786 1820786 0 45 Unknown
  Partition 1 has different physical/logical beginnings (non-Linux?):
  phys=(334, 69, 18) logical=(1820785, 0, 1)
  Partition 1 has different physical/logical endings:
  phys=(32, 76, 32) logical=(1820784, 0, 3)
  Partition 1 does not end on cylinder boundary:
  phys=(32, 76, 32) should be (32, 0, 3)



  在这里请注意,上面显示在USB软盘上在一个分区,但实际上这个分区是无法加载的,
请看上面的 Blocks 为 0 ,也就分区是没有空间的,

  那么要怎么样才能加载这个USB软盘呢?

  我们把分区的概念去掉,也就是不要想分区的问题,想一想我平时是怎么用一般软盘的



  mount -t vfat /dev/fd0 /mnt/fd



  那么道理在USB软盘上差不多


  mount -t vfat /dev/sda /mnt/usbfd
    (这里的 /dev/sda 不是分区)



  这样执行能行,成功加载


  cd /mnt/usbfd
  ls



  这时你会看到DOS的启动文件,请注意这时的USB软盘只有1M的空间可以用

总结:

  从上面的例子看到,在LINUX中使用USB优盘有一定的技巧,本例子中的‘软盘方式’所
使用的办法同样可以用在某些‘单启动型USB优盘’,因为这些‘单启动型USB优盘’是以软
盘方式接入LINUX的
--
※ 来源:·幽幽黄桷兰 bbs.cqupt.edu.cn·[FROM: xiaoq.com]


[回到开始] [上一篇][下一篇]

荔园在线首页 友情链接:深圳大学 深大招生 荔园晨风BBS S-Term软件 网络书店