為什麼建立可引導usb驅動器比建立可引導CD更復雜?

建立可引導CD和DVD往往是一個簡單、直接的過程,但為什麼建立可引導快閃記憶體驅動器時會更復雜呢?兩者真的有那麼大的區別嗎?今天的超級使用者問答帖子回答了一位好奇的讀者的問題。...

為什麼建立可引導u**驅動器比建立可引導CD更復雜?

建立可引導CD和DVD往往是一個簡單、直接的過程,但為什麼建立可引導快閃記憶體驅動器時會更復雜呢?兩者真的有那麼大的區別嗎?今天的超級使用者問答帖子回答了一位好奇的讀者的問題。

今天的問答環節是由SuperUser提供的,SuperUser是Stack Exchange的一個分支,是一個由社群驅動的問答網站分組。

問題

超級使用者讀者William想知道為什麼建立可引導USB驅動器比建立可引導CD更復雜:

Creating a bootable CD is really simple in my opinion, all you need to do is burn an ISO file to a disc and it is bootable. Now when it comes to USB drives, you have lots of opti***. Could someone explain the difference between the two and maybe give a brief overview of the different opti***?

007Ys3FFgy1gpc38gjc3mj30ak0fe74z

為什麼建立可引導USB驅動器比建立可引導CD更復雜?

答案

超級使用者貢獻者Akeo為我們提供了答案:

Rufus developer here. First of all, a lot of the opti*** you mention are only listed when running Rufus in Advanced Mode (when the Advanced Opti*** Section is displayed), because they are intended for people who already know what they are for.

To start with, you have to understand that the ISO format was never designed for USB booting. An ISO file is a 1:1 copy of an optical disc, and optical disc media are very different from USB media, both in terms of how their boot loaders should be structured, what file system they use, how they are partitioned (they are not), and so on.

So, if you have an ISO file, you simply cannot do with USB media what you can do with an optical disc, which is read from every single byte of the ISO file and copied as is, in sequence, onto the disc (what CD/DVD burner applicati*** do when “working” with ISO files).

That is not to say that this kind of 1:1 copying cannot exist on USB media, just that 1:1 copies on USB media will be completely different from 1:1 copies on optical discs and are therefore not interchangeable (outside of using ISOHybrid images that are crafted to work as 1:1 copies on USB and optical media both). For the record, in Rufus terminology, a 1:1 copy on USB media is called a DD Image (you can see that option in the list) and some distributi***, like FreeBSD or Raspbian, actually provide DD Images for USB installation, alongside ISO files for CD/DVD burning.

Thus, we have established that ISO files are actually poorly suited to create bootable USB media because they are the equivalent of providing a round peg to fit a **aller square hole, and therefore, the round peg must be altered to fit it.

Now you may be wondering, if ISO files are so poorly suited for creating bootable USB media, why are most operating system distributors out there providing ISO files instead of DD Images. Well, outside of historical reas***, one of the issues with DD Images is that because they are a partitioned file system, if you create a 1:1 copy on USB media that is larger than the one used by the person who created the image, then you will end up with the apparent “capacity” of your USB media reduced to the size of the one used in creating the original DD Image.

Also, whereas optical discs and therefore ISO files can only ever use one of two file systems (ISO9660 or UDF), both of which have been very well supported in all major operating systems for a very long time (and allows you to take a peek at the image content before or after you use it), DD Images can literally use any of the thousands of different file systems that exist. That means that even after you create your bootable USB media, you may not be able to actually see any content on it until you boot it up. For instance, this will be the case if you use FreeBSD USB images on Windows. Once the bootable USB media has been created, Windows will not be able to access any content on it until you reformat it.

This is why providers tend to want to stick with ISO files where possible, as it (usually) provides a better user experience across all operating systems. But that also means that some conversion must (usually) occur so that our round ISO peg can fit nicely into the **aller “USB media” square hole. How does that relate to the list of opti***? We are coming to that.

One of the first things that usually needs to go is the ISO9660 or UDF file system that ISO files use. Most of the time, this means extracting and copying all of the files from the ISO file onto a FAT32 or NTFS file system, which is what bootable USB flash drives tend to use. But of course that means that, whoever created the ISO system must have made some provisi*** to support FAT32 or NTFS as a file system for live use or installation (which not all people, especially the ones who rely a bit too much on ISOHybrid, tend to do).

Then there is the actual boot loader itself, the first bit of code that executes when a computer boots from USB media. Unfortunately, HDD/USB and ISO boot loaders are very different beasts, and the BIOS or UEFI firmware also treats USB and optical media very differently during the boot up process. So you usually cannot take the boot loader from an ISO file (which would usually be an El Torito boot loader), copy it to USB media, and expect it to boot.

Now comes the part that is relevant to our list of opti***. Because Rufus will have to provide a relevant boot loader piece, it simply cannot obtain it from the ISO file. If we are dealing with a Linux based ISO file, then chances are it will use GRUB 2.0 or Syslinux, so Rufus includes the ability to install a USB-based version of GRUB or Syslinux (since the ISO file usually only contains the ISO specific version of those).

This is usually done automatically when you select and open an ISO file since Rufus is **art enough to detect what kind of conversion it needs to apply. But if you want to play around, Rufus gives you the choice to also install some blank boot loaders that enable you to boot to a GRUB or Syslinux prompt. From there, if you are familiar with these types of boot loaders, you can create/test your own config files and try your very own Syslinux or GRUB based custom boot process (because at this stage, you only have to copy/edit files on the USB media to do that).

So, we can now go over the opti*** you find in the list:

  • MS-DOS: This creates a blank version of MS-DOS (Windows Me edition), which means you will boot to an MS-DOS prompt and that is it. If you want to run a DOS application, you will need to copy it to your USB media. Note that this option is only available on Windows 8.1 or earlier, but not Windows 10 since Microsoft removed the DOS installation files from Windows (and only Microsoft can redistribute these files).
  • FreeDOS: This creates a blank version of FreeDOS. FreeDOS is a free software version of MS-DOS, which is fully compatible with MS-DOS, but also has the advantage of being open source. Compared to MS-DOS, anyone can redistribute FreeDOS, so the FreeDOS boot files are included in Rufus.
  • ISO Image: This is the option you should use if you have a bootable ISO file and want to convert it to bootable USB media. Keep in mind that because a conversion (usually) needs to occur and there are zilli*** of ways to create a bootable ISO file, there is no guarantee that Rufus will be able to convert it to USB media (but it will always tell you if that is the case).
  • DD Image: This is the method you should use if you have a bootable disk image, such as the ones provided by FreeBSD, Raspbian, etc. Files with a .vhd extension are also supported (which is Microsoft’s version of a DD Image) as well as compressed ones (.gz, .zip, .bz2, .xz, etc.).

The four opti*** above are the only ones you will see in Regular Mode. But if you run Rufus in Advanced Mode, you will also have access to the following choices:

  • Syslinux x.yz: Installs a blank Syslinux boot loader which will get you to a Syslinux prompt and not much else. You are supposed to know what you need to do from that point forward.
  • GRUB/Grub4DOS: Same as above, but for GRUB/Grub4DOS respectively. It will get you to a GRUB prompt, but it is up to you to figure out the rest.
  • ReactOS: Installs an experimental ReactOS boot loader. Since the last time I checked, ReactOS does not boot that well from USB media. It is there because it was easy to add, and done with the hope that it can help with ReactOS development.
  • UEFI-NTFS: This requires NTFS to be selected as the file system and installs a blank UEFI-NTFS boot loader. This enables booting from NTFS in pure UEFI mode (not CSM) on UEFI platforms that do not include an NTFS driver. Because it is blank, you will need to copy your own /efi/boot/bootia32.efi or /efi/boot/bootx64.efi onto the NTFS partition for it to be useful. UEFI-NTFS is automatically used by Rufus to work around the 4 GB maximum file size of FAT32, which for instance, allows the installation of Microsoft Server 2016 in UEFI mode without having to split its 4.7 GB install.wim file.

Hope that helps. This is a simplified overview, so I hope people will not start nitpicking on aspects that were deliberately dumbed-down or kept silent (such as knowing it is possible to have USB flash drives without partiti***, to have USB and optical media use the same file system, and that some boot processes have the capability to extend the partition size on USB media in order to solve the lower apparent capacity issue).


有什麼要補充的解釋嗎?在評論中發出聲音。想從其他精通技術的Stack Exchange使用者那裡瞭解更多答案嗎?在這裡檢視完整的討論主題。

圖片來源:威廉(超級使用者)

  • 發表於 2021-04-08 09:39
  • 閱讀 ( 60 )
  • 分類:網際網路

你可能感興趣的文章

如何在windows上從usb啟動

...要安裝新版本的windows10,或者你想解決一些問題。不管是什麼原因,在本文結束時,您將能夠輕鬆地從USB快閃記憶體驅動器啟動您的PC。 ...

  • 發佈於 2021-03-11 01:10
  • 閲讀 ( 51 )

如何像超級極客一樣使用usb跳轉驅動器:建立一個技術工具包

...,從輕量級的puppylinux到技術上優秀的kalilinux。不管你做什麼決定,安裝一個備份Linux作業系統,你可以從USB啟動,這都是天賜良機。大多數Linux發行版允許使用者直接從USB執行影象,允許您從硬碟複製或移動檔案(除非發生災難...

  • 發佈於 2021-03-14 06:18
  • 閲讀 ( 45 )

如何將多個iso檔案合併到一個可引導的iso映像中

... 什麼是multicd公司(multicd)? ...

  • 發佈於 2021-03-15 06:33
  • 閲讀 ( 106 )

如何為windows和linux建立可引導的多引導usb

...新的作業系統是一個快速的,通常是無痛的操作。但是,為什麼要將USB限制在一個作業系統上呢?現在有幾個優秀的多引導USB工具,你可以用它把你簡陋的USB變成一個口袋大小的作業系統儲存庫。唯一能讓你退縮的是棍子的大小...

  • 發佈於 2021-03-15 14:56
  • 閲讀 ( 51 )

如何構建自己的可引導linux live cd

... 你有什麼現場CD,你用它們最多的是什麼?在評論中告訴我們。 ...

  • 發佈於 2021-03-16 18:04
  • 閲讀 ( 50 )

如何從可引導usb驅動器安裝windows 10

... 為什麼要從u**啟動windows安裝? ...

  • 發佈於 2021-03-18 00:37
  • 閲讀 ( 52 )

5個可引導的基於windows pe的恢復光碟,可以儲存您的系統

... 什麼是windows體育(windows pe)? ...

  • 發佈於 2021-03-20 07:42
  • 閲讀 ( 61 )

如何從usb安裝macos

...nternet recovery在計算機上重新安裝macOS。但是你知道你可以建立一個可引導的USB驅動器來安裝macOS嗎?如果Mac無**常工作,這將允許您從其他來源啟動Mac,並使在多臺計算機上安裝變得容易。 ...

  • 發佈於 2021-03-22 09:05
  • 閲讀 ( 51 )

如何在帶有引導陣營的mac上安裝windows 10

... 如果你不想使用這種方法,為什麼還要考慮其他在Mac上執行Windows的方法,比如使用並行程式訪問macOS上的Windows? ...

  • 發佈於 2021-03-22 13:53
  • 閲讀 ( 47 )

使用以下10個工具從iso建立一個可引導usb

... 為什麼需要可引導u**驅動器 ...

  • 發佈於 2021-03-23 17:58
  • 閲讀 ( 61 )
3qsLmXR2A
3qsLmXR2A

0 篇文章

作家榜

  1. admin 0 文章
  2. 孫小欽 0 文章
  3. JVhby0 0 文章
  4. fvpvzrr 0 文章
  5. 0sus8kksc 0 文章
  6. zsfn1903 0 文章
  7. w91395898 0 文章
  8. SuperQueen123 0 文章

相關推薦