特殊:Badtitle/NS100:Installation/FromHardDriveWithFloppies:修订间差异
小 New page: {{From|https://help.ubuntu.com/community/Installation/FromHardDriveWithFloppies}} {{Languages|php5}} '''This explains how to get Ubuntu 5.10 (Breezy Badger) installed onto a computer witho... |
小无编辑摘要 |
||
第35行: | 第35行: | ||
mkdir /mnt/usb | mkdir /mnt/usb | ||
mount /dev/sdaX /mnt/usb | mount /dev/sdaX /mnt/usb | ||
</nowiki></ | </nowiki></pre> | ||
~-''where /dev/sdaX is the device name assigned to the USB drive you plugged in''-~ | ~-''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?) | 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?) | ||
<pre><nowiki> | <pre><nowiki> | ||
dd if=/mnt/usb/ubuntu.iso of=/dev/hdaX | dd if=/mnt/usb/ubuntu.iso of=/dev/hdaX | ||
</nowiki></ | </nowiki></pre> | ||
~-''where /dev/hdaX is the 700MB dummy partition''-~ | ~-''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 | 1.#6 mount the iso and the root partition and copy two boot files from the iso to the root partition | ||
第50行: | 第50行: | ||
cd /mnt/iso/install | cd /mnt/iso/install | ||
cp vmlinuz initrd.gz /mnt/hda1 | cp vmlinuz initrd.gz /mnt/hda1 | ||
</nowiki></ | </nowiki></pre> | ||
~-''where /dev/hda1 is the root partition''-~ | ~-''where /dev/hda1 is the root partition''-~ | ||
第65行: | 第65行: | ||
initrd /initrd.gz | initrd /initrd.gz | ||
boot | boot | ||
</nowiki></ | </nowiki></pre> | ||
=== Installation === | === Installation === |
2007年5月13日 (日) 12:24的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/Installation/FromHardDriveWithFloppies }} |
点击翻译: |
English {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/af | • {{#if: php5|Afrikaans| [[::Installation/FromHardDriveWithFloppies/af|Afrikaans]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/ar | • {{#if: php5|العربية| [[::Installation/FromHardDriveWithFloppies/ar|العربية]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/az | • {{#if: php5|azərbaycanca| [[::Installation/FromHardDriveWithFloppies/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/bcc | • {{#if: php5|جهلسری بلوچی| [[::Installation/FromHardDriveWithFloppies/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/bg | • {{#if: php5|български| [[::Installation/FromHardDriveWithFloppies/bg|български]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/br | • {{#if: php5|brezhoneg| [[::Installation/FromHardDriveWithFloppies/br|brezhoneg]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/ca | • {{#if: php5|català| [[::Installation/FromHardDriveWithFloppies/ca|català]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/cs | • {{#if: php5|čeština| [[::Installation/FromHardDriveWithFloppies/cs|čeština]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/de | • {{#if: php5|Deutsch| [[::Installation/FromHardDriveWithFloppies/de|Deutsch]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/el | • {{#if: php5|Ελληνικά| [[::Installation/FromHardDriveWithFloppies/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/es | • {{#if: php5|español| [[::Installation/FromHardDriveWithFloppies/es|español]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/fa | • {{#if: php5|فارسی| [[::Installation/FromHardDriveWithFloppies/fa|فارسی]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/fi | • {{#if: php5|suomi| [[::Installation/FromHardDriveWithFloppies/fi|suomi]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/fr | • {{#if: php5|français| [[::Installation/FromHardDriveWithFloppies/fr|français]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/gu | • {{#if: php5|ગુજરાતી| [[::Installation/FromHardDriveWithFloppies/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/he | • {{#if: php5|עברית| [[::Installation/FromHardDriveWithFloppies/he|עברית]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/hu | • {{#if: php5|magyar| [[::Installation/FromHardDriveWithFloppies/hu|magyar]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/id | • {{#if: php5|Bahasa Indonesia| [[::Installation/FromHardDriveWithFloppies/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/it | • {{#if: php5|italiano| [[::Installation/FromHardDriveWithFloppies/it|italiano]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/ja | • {{#if: php5|日本語| [[::Installation/FromHardDriveWithFloppies/ja|日本語]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/ko | • {{#if: php5|한국어| [[::Installation/FromHardDriveWithFloppies/ko|한국어]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/ksh | • {{#if: php5|Ripoarisch| [[::Installation/FromHardDriveWithFloppies/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/mr | • {{#if: php5|मराठी| [[::Installation/FromHardDriveWithFloppies/mr|मराठी]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/ms | • {{#if: php5|Bahasa Melayu| [[::Installation/FromHardDriveWithFloppies/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/nl | • {{#if: php5|Nederlands| [[::Installation/FromHardDriveWithFloppies/nl|Nederlands]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/no | • {{#if: php5|norsk| [[::Installation/FromHardDriveWithFloppies/no|norsk]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/oc | • {{#if: php5|occitan| [[::Installation/FromHardDriveWithFloppies/oc|occitan]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/pl | • {{#if: php5|polski| [[::Installation/FromHardDriveWithFloppies/pl|polski]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/pt | • {{#if: php5|português| [[::Installation/FromHardDriveWithFloppies/pt|português]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/ro | • {{#if: php5|română| [[::Installation/FromHardDriveWithFloppies/ro|română]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/ru | • {{#if: php5|русский| [[::Installation/FromHardDriveWithFloppies/ru|русский]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/si | • {{#if: php5|සිංහල| [[::Installation/FromHardDriveWithFloppies/si|සිංහල]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/sq | • {{#if: php5|shqip| [[::Installation/FromHardDriveWithFloppies/sq|shqip]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/sr | • {{#if: php5|српски / srpski| [[::Installation/FromHardDriveWithFloppies/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/sv | • {{#if: php5|svenska| [[::Installation/FromHardDriveWithFloppies/sv|svenska]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/th | • {{#if: php5|ไทย| [[::Installation/FromHardDriveWithFloppies/th|ไทย]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/tr | • {{#if: php5|Türkçe| [[::Installation/FromHardDriveWithFloppies/tr|Türkçe]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/vi | • {{#if: php5|Tiếng Việt| [[::Installation/FromHardDriveWithFloppies/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/yue | • {{#if: php5|粵語| [[::Installation/FromHardDriveWithFloppies/yue|粵語]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/zh | • {{#if: php5|中文| [[::Installation/FromHardDriveWithFloppies/zh|中文]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/zh-hans | • {{#if: php5|中文(简体)| [[::Installation/FromHardDriveWithFloppies/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Installation/FromHardDriveWithFloppies}}/zh-hant | • {{#if: php5|中文(繁體)| [[::Installation/FromHardDriveWithFloppies/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:php5|: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
1. floppy drive in the new computer and 3 (possibly 2) 3.5 inch floppy disks
1. a way to transfer the ubuntu iso to the new harddrive (such as a flash drive or USB hard drive)
1. 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
1. In the TomsRtBt FAQ, sections 4 and 5 explain how to install to a floppy from either *nix or Windows compatible environments, respectively. 1. 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 1. 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.
1. Boot from TomsRtBt in the destination computer 1. 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. 1. Load the usb modules from the secondary floppy, usbcore first, using the command "insmod" 1. 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
1. Insert the Grub boot disk and reboot / turn on the computer 2. 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
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?)
CategoryHardware CategoryCleanup