特殊:Badtitle/NS100:Installation/FromHardDriveWithFloppies:修订间差异

来自Ubuntu中文
跳到导航跳到搜索
Oneleaf留言 | 贡献
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...
 
Oneleaf留言 | 贡献
无编辑摘要
第35行: 第35行:
mkdir /mnt/usb
mkdir /mnt/usb
mount /dev/sdaX /mnt/usb
mount /dev/sdaX /mnt/usb
</nowiki></code>
</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></code>
</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></code>
</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></code>
</nowiki></pre>


=== Installation ===
=== Installation ===

2007年5月13日 (日) 12:24的版本

{{#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:

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