Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1079125
  • 博文数量: 1647
  • 博客积分: 80000
  • 博客等级: 元帅
  • 技术积分: 9980
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-13 15:15
文章分类

全部博文(1647)

文章存档

2011年(1)

2008年(1646)

我的朋友

分类:

2008-10-28 18:29:32


  现在市面上有一种双启动型的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的 .
  
  
【责编:admin】

--------------------next---------------------

阅读(241) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~