特殊:Badtitle/NS100:Installation/FromHardDriveWithFloppies
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/Installation/FromHardDriveWithFloppies }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies | UbuntuHelp:Installation/FromHardDriveWithFloppies | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/af | • {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies|Afrikaans| [[::Installation/FromHardDriveWithFloppies/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies | UbuntuHelp:Installation/FromHardDriveWithFloppies | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/ar | • {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies|العربية| [[::Installation/FromHardDriveWithFloppies/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies | UbuntuHelp:Installation/FromHardDriveWithFloppies | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/az | • {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies|azərbaycanca| [[::Installation/FromHardDriveWithFloppies/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies | UbuntuHelp:Installation/FromHardDriveWithFloppies | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/bcc | • {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies|جهلسری بلوچی| [[::Installation/FromHardDriveWithFloppies/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies | UbuntuHelp:Installation/FromHardDriveWithFloppies | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/bg | • {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies|български| [[::Installation/FromHardDriveWithFloppies/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies | UbuntuHelp:Installation/FromHardDriveWithFloppies | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/br | • {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies|brezhoneg| [[::Installation/FromHardDriveWithFloppies/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies | UbuntuHelp:Installation/FromHardDriveWithFloppies | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/ca | • {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies|català| [[::Installation/FromHardDriveWithFloppies/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies | UbuntuHelp:Installation/FromHardDriveWithFloppies | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/cs | • {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies|čeština| [[::Installation/FromHardDriveWithFloppies/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies | UbuntuHelp:Installation/FromHardDriveWithFloppies | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/de | • {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies|Deutsch| [[::Installation/FromHardDriveWithFloppies/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies | UbuntuHelp:Installation/FromHardDriveWithFloppies | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/el | • {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies|Ελληνικά| [[::Installation/FromHardDriveWithFloppies/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies | UbuntuHelp:Installation/FromHardDriveWithFloppies | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/es | • {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies|español| [[::Installation/FromHardDriveWithFloppies/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies | UbuntuHelp:Installation/FromHardDriveWithFloppies | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/fa | • {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies|فارسی| [[::Installation/FromHardDriveWithFloppies/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies | UbuntuHelp:Installation/FromHardDriveWithFloppies | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/fi | • {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies|suomi| [[::Installation/FromHardDriveWithFloppies/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies | UbuntuHelp:Installation/FromHardDriveWithFloppies | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/fr | • {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies|français| [[::Installation/FromHardDriveWithFloppies/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies | UbuntuHelp:Installation/FromHardDriveWithFloppies | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/gu | • {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies|ગુજરાતી| [[::Installation/FromHardDriveWithFloppies/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies | UbuntuHelp:Installation/FromHardDriveWithFloppies | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/he | • {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies|עברית| [[::Installation/FromHardDriveWithFloppies/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies | UbuntuHelp:Installation/FromHardDriveWithFloppies | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/hu | • {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies|magyar| [[::Installation/FromHardDriveWithFloppies/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies | UbuntuHelp:Installation/FromHardDriveWithFloppies | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/id | • {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies|Bahasa Indonesia| [[::Installation/FromHardDriveWithFloppies/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies | UbuntuHelp:Installation/FromHardDriveWithFloppies | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/it | • {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies|italiano| [[::Installation/FromHardDriveWithFloppies/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies | UbuntuHelp:Installation/FromHardDriveWithFloppies | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/ja | • {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies|日本語| [[::Installation/FromHardDriveWithFloppies/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies | UbuntuHelp:Installation/FromHardDriveWithFloppies | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/ko | • {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies|한국어| [[::Installation/FromHardDriveWithFloppies/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies | UbuntuHelp:Installation/FromHardDriveWithFloppies | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/ksh | • {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies|Ripoarisch| [[::Installation/FromHardDriveWithFloppies/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies | UbuntuHelp:Installation/FromHardDriveWithFloppies | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/mr | • {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies|मराठी| [[::Installation/FromHardDriveWithFloppies/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies | UbuntuHelp:Installation/FromHardDriveWithFloppies | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/ms | • {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies|Bahasa Melayu| [[::Installation/FromHardDriveWithFloppies/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies | UbuntuHelp:Installation/FromHardDriveWithFloppies | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/nl | • {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies|Nederlands| [[::Installation/FromHardDriveWithFloppies/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies | UbuntuHelp:Installation/FromHardDriveWithFloppies | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/no | • {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies|norsk| [[::Installation/FromHardDriveWithFloppies/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies | UbuntuHelp:Installation/FromHardDriveWithFloppies | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/oc | • {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies|occitan| [[::Installation/FromHardDriveWithFloppies/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies | UbuntuHelp:Installation/FromHardDriveWithFloppies | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/pl | • {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies|polski| [[::Installation/FromHardDriveWithFloppies/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies | UbuntuHelp:Installation/FromHardDriveWithFloppies | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/pt | • {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies|português| [[::Installation/FromHardDriveWithFloppies/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies | UbuntuHelp:Installation/FromHardDriveWithFloppies | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/ro | • {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies|română| [[::Installation/FromHardDriveWithFloppies/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies | UbuntuHelp:Installation/FromHardDriveWithFloppies | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/ru | • {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies|русский| [[::Installation/FromHardDriveWithFloppies/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies | UbuntuHelp:Installation/FromHardDriveWithFloppies | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/si | • {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies|සිංහල| [[::Installation/FromHardDriveWithFloppies/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies | UbuntuHelp:Installation/FromHardDriveWithFloppies | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/sq | • {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies|shqip| [[::Installation/FromHardDriveWithFloppies/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies | UbuntuHelp:Installation/FromHardDriveWithFloppies | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/sr | • {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies|српски / srpski| [[::Installation/FromHardDriveWithFloppies/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies | UbuntuHelp:Installation/FromHardDriveWithFloppies | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/sv | • {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies|svenska| [[::Installation/FromHardDriveWithFloppies/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies | UbuntuHelp:Installation/FromHardDriveWithFloppies | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/th | • {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies|ไทย| [[::Installation/FromHardDriveWithFloppies/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies | UbuntuHelp:Installation/FromHardDriveWithFloppies | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/tr | • {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies|Türkçe| [[::Installation/FromHardDriveWithFloppies/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies | UbuntuHelp:Installation/FromHardDriveWithFloppies | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/vi | • {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies|Tiếng Việt| [[::Installation/FromHardDriveWithFloppies/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies | UbuntuHelp:Installation/FromHardDriveWithFloppies | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/yue | • {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies|粵語| [[::Installation/FromHardDriveWithFloppies/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies | UbuntuHelp:Installation/FromHardDriveWithFloppies | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/zh | • {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies|中文| [[::Installation/FromHardDriveWithFloppies/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies | UbuntuHelp:Installation/FromHardDriveWithFloppies | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/zh-hans | • {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies|中文(简体)| [[::Installation/FromHardDriveWithFloppies/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies | UbuntuHelp:Installation/FromHardDriveWithFloppies | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/zh-hant | • {{#if: UbuntuHelp:Installation/FromHardDriveWithFloppies|中文(繁體)| [[::Installation/FromHardDriveWithFloppies/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:Installation/FromHardDriveWithFloppies|:Installation/FromHardDriveWithFloppies|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :Installation/FromHardDriveWithFloppies/zh | | {{#ifexist: Installation/FromHardDriveWithFloppies/zh | | {{#ifeq: {{#titleparts:Installation/FromHardDriveWithFloppies|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:Installation/FromHardDriveWithFloppies|1|-1|}} | zh | | }}
This explains how to get Ubuntu 5.10 (Breezy Badger) installed onto a computer without the use of a CD drive or Network connection.
Requirements
- floppy drive in the new computer and 3 (possibly 2) 3.5 inch floppy disks<
> - a way to transfer the Ubuntu iso to the new harddrive (such as a flash drive or USB hard drive) - note: if you have a good network connection, consider using|a mini-ISO which takes under 10MB instead of ~700MB.<
> - another computer with a network connection, a floppy drive, and usb.
Obtain the Software
On your networked computer:
- you'll need a floppy-based bootable linux disribution. TomsRtBt will be used in this example.
- You will also need to download an ubuntu iso for your architecture. See UbuntuHelp:GettingUbuntu for more help.
- Grub must be installed on a computer with a floppy drive. See UbuntuHelp:phbc50/howtos/how-to reinstall grub for one possible way to obtain Grub.
Setting up for Pre-Installation
At least two floppies will need to be created for this installation
- In the TomsRtBt FAQ, sections 4 and 5 explain how to install to a floppy from either *nix or Windows compatible environments, respectively.
- If you intend to use TomsRtBt with a USB device to transfer the iso, you will need to copy the usb-uhci, usb-storage and usbcore modules to the second floppy (alternate download)
- from the computer with Grub installed, you need to create a Grub boot floppy. See UbuntuHelp:GrubHowto/BootFloppy for instructions
Pre-Installation
Transfering the iso
The goal of this step is to move a ~650MB iso from one computer to another without the use of a CD or Network. Using a USB Hard Drive or large flash drive, this is accomplished rather easily by simply plugging it in and mounting it if necessary, and copying the image to the temporary media. Other options may include:
- Splitting the iso into smaller chunks that can be transferred over individually via a smaller usb flash drive
- Removing the destination hard drive, placing it another computer to copy the image over directly.
Setting up the Destination Drive
CAUTION! This will erase all the information currently stored on your harddrive<
>
If you are unfamiliar with partitioning a harddrive using fdisk or cfdisk, see Partitioning with Fdisk from google cache.
- Boot from TomsRtBt in the destination computer
- use fdisk or cfdisk (tomsrtbt doesn't seem to have cfdisk...) to partition the harddrive however you wish, making sure to have, at the very least, one 700MB dummy partition (can be reused later) and a root partition to install ubuntu on. Must also format the new root partition, use mke2fs from TomsRtBT, choose type 83.
- Load the usb modules from the secondary floppy, usbcore first, using the command "insmod"
- Plug in the usb drive. make a new folder to hold the mounted volume and mount your usb device there
mkdir /mnt/usb mount /dev/sdaX /mnt/usb
~-where /dev/sdaX is the device name assigned to the USB drive you plugged in-~ 1.#5 Create an exact copy of the iso to the dummy partiton setup in step 2 (Note that this is not the file ubuntu.iso sitting in a formated dummy partition, the iso _is_ the partition. When you get to the last step of this howto, "In the device prompt, provide the device name for the dummy partition, such as /dev/hdaX." you _can't_ enter /dev/hdaX/ubuntu.iso. Can you even acheive this particular dd functionality on a Windows box?)
dd if=/mnt/usb/ubuntu.iso of=/dev/hdaX
~-where /dev/hdaX is the 700MB dummy partition-~ 1.#6 mount the iso and the root partition and copy two boot files from the iso to the root partition
cd /mnt mkdir hda1 iso mount /dev/hda1 hda1 mount -t iso9660 -o loop /dev/hdaX iso cd /mnt/iso/install cp vmlinuz initrd.gz /mnt/hda1
~-where /dev/hda1 is the root partition-~
Booting into the Installation
- Insert the Grub boot disk and reboot / turn on the computer
- at the grub boot menu, there are 4 commands you must use to boot: root, kernel, initrd, and boot
- use the root command to set the device to boot from, which is in this case, the root partition of your harddrive. This example uses /dev/hda1, which equates to (hd0,0)
- kernel is used to choose the kernel and pass preferences. You can look at the "isolinux/isolinux.cfg" file on the cd or iso to look at boot commands and their "ubuntu boot label" equivalents. This command is typed in on a single line and ends with "--". This example chooses a default ubuntu installation. (Note that this line may wrap on the screen, on a printout, and when typed.)
- initrd: ???
- boot: launches into the boot process
root (hd0,0) kernel /vmlinuz append vga=normal initrd=/initrd.gz ramdisk_size=16384 root=/dev/rd/0 rw -- initrd /initrd.gz boot
Optionally use DEBCONF_PRIORITY=low to make the install process the equivalent of "expert" mode install. The resulting kernel line would be:
kernel /vmlinuz append vga=normal DEBCONF_PRIORITY=low initrd=/initrd.gz ramdisk_size=16384 root=/dev/rd/0 rw --
Installation
Follow the installation steps as you would any other install, until it comes to choosing a CD to install from. In the case where you have no CDrom drive:
- you will be prompted with an option to load modules from a disk. Say NO to this option.
- You will be presented with a second screen to select another device. Say YES
- Choose none for the driver
- In the device prompt, provide the device name for the dummy partition, such as /dev/hdaX.<
>
The installation should continue on as usual.
Notes
cloakable - this needs updating for using with 6.06 and later. Method fails with Ubuntu 6.06. (And, for some reason, on 5.10 too. Bad grub options?) I found that this doesn't work quite right (installing Gutsy Server) and that if I did:
mv /dev/scd0 /dev/scd1 ln /dev/sda2 /dev/scd0
then automatically detecting the CD works perfectly. /dev/scd0 is my CD drive (which can't read rewritable CDs) and /dev/sda2 is the partition that we dd'ed the iso image to in step 5. Note that your drives may be hda0, hda1, hda2, hdc, etc. Also, I found that in booting into the installation, just
root (hd0,1) kernel /vmlinuz initrd /initrd.gz boot
worked fine.