双启动型USB优盘的使用举例和注意问题

王朝other·作者佚名  2006-11-23
宽屏版  字体: |||超大  

现在市面上有一种双启动型的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的

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
© 2005- 王朝网络 版权所有