歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> 關於Linux >> 雙啟動型USB優盤的使用舉例和注意問題

雙啟動型USB優盤的使用舉例和注意問題

日期:2017/2/27 11:20:59   编辑:關於Linux

雙啟動型USB優盤的使用舉例和注意問題


現在市面上有一種雙啟動型的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的




Copyright © Linux教程網 All Rights Reserved