“UbuntuHelp:Installation/WithFloppies”的版本间的差异
来自Ubuntu中文
小 |
小 |
||
(未显示同一用户的4个中间版本) | |||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/Installation/WithFloppies}} | {{From|https://help.ubuntu.com/community/Installation/WithFloppies}} | ||
{{Languages|UbuntuHelp:Installation/WithFloppies}} | {{Languages|UbuntuHelp:Installation/WithFloppies}} | ||
+ | <<Include(Tag/ContentCleanup)>> | ||
A much easier way of installing with floppies can be found at [[UbuntuHelp:SmartBootManager|SmartBootManager]]. | A much easier way of installing with floppies can be found at [[UbuntuHelp:SmartBootManager|SmartBootManager]]. | ||
This should be considered an alternative to the [[UbuntuHelp:Installation/FromKnoppix|Installation/FromKnoppix]]. | This should be considered an alternative to the [[UbuntuHelp:Installation/FromKnoppix|Installation/FromKnoppix]]. | ||
第15行: | 第16行: | ||
STEP 1: Prepare the Sarge installer | STEP 1: Prepare the Sarge installer | ||
− | + | You can download the floppy images from one of the sites below:<<BR>> | |
+ | http://ftp.egr.msu.edu/debian/dists/etch/main/installer-i386/current/images/floppy/ <<BR>> | ||
+ | http://ftp.nl.debian.org/debian/dists/etch/main/installer-i386/current/images/floppy/ <<BR>> | ||
+ | These are the files you need: | ||
* boot.img | * boot.img | ||
* root.img | * root.img | ||
第52行: | 第56行: | ||
I put in the boot disk, made sure my networkcable was connected and at the | I put in the boot disk, made sure my networkcable was connected and at the | ||
<code><nowiki>"Enter to boot:"</nowiki></code> prompt, typed: | <code><nowiki>"Enter to boot:"</nowiki></code> prompt, typed: | ||
− | <pre><nowiki>"Enter to boot:expert <Enter> | + | <pre><nowiki> |
+ | "Enter to boot:expert <Enter> | ||
</nowiki></pre> | </nowiki></pre> | ||
The "expert" setting gave the amount of control over the installation-process I needed. Next I was asked for the root disk and prompted for a language and a location. A correct language/location safed some time downloading. Then, when asked for it, I loaded the net-drivers from the floppy. | The "expert" setting gave the amount of control over the installation-process I needed. Next I was asked for the root disk and prompted for a language and a location. A correct language/location safed some time downloading. Then, when asked for it, I loaded the net-drivers from the floppy. | ||
第59行: | 第64行: | ||
I chose a mirror close to me, which ment just pressing <Enter> a couple of times. I didn't bother with the extra installer components and chose to continue. Next, I let debian detect my computers hardware. I again ignored the prompting about modules and declined to be asked for module parameters. | I chose a mirror close to me, which ment just pressing <Enter> a couple of times. I didn't bother with the extra installer components and chose to continue. Next, I let debian detect my computers hardware. I again ignored the prompting about modules and declined to be asked for module parameters. | ||
Then, I partitioned the disk, a simple task with guided partitioning. I chose to erase the entire disk and put everything in one partition. The end result (using Default options): | Then, I partitioned the disk, a simple task with guided partitioning. I chose to erase the entire disk and put everything in one partition. The end result (using Default options): | ||
− | <pre><nowiki>#1 primary 9.6 GB ext3 / | + | <pre><nowiki> |
+ | #1 primary 9.6 GB ext3 / | ||
#5 logical 444.1 MB swap swap | #5 logical 444.1 MB swap swap | ||
</nowiki></pre> | </nowiki></pre> | ||
If I were not running in expert mode, the installer would now go and install the base system. This is where the document about debian on an existing unix/linux system and the ubuntu from floppy installation start to merge. | If I were not running in expert mode, the installer would now go and install the base system. This is where the document about debian on an existing unix/linux system and the ubuntu from floppy installation start to merge. | ||
To get to a real console (the "exit to shell from the debian GNU/Linux installation menu has problems with vim) type: | To get to a real console (the "exit to shell from the debian GNU/Linux installation menu has problems with vim) type: | ||
− | <pre><nowiki>Alt+F2 | + | <pre><nowiki> |
+ | Alt+F2 | ||
</nowiki></pre> | </nowiki></pre> | ||
A <code><nowiki>df -h </nowiki></code> told me the harddisk was at: /dev/ide/host0/bus0/target0/lun0/part1, and mounted on /target. /target sounded like a good place to put ubuntu into. | A <code><nowiki>df -h </nowiki></code> told me the harddisk was at: /dev/ide/host0/bus0/target0/lun0/part1, and mounted on /target. /target sounded like a good place to put ubuntu into. | ||
=== Getting debootstrap === | === Getting debootstrap === | ||
− | <pre><nowiki>mkdir work | + | <pre><nowiki> |
+ | mkdir work | ||
cd work | cd work | ||
wget http://ftp.bit.nl/ubuntu/pool/main/d/debootstrap/debootstrap_0.2.45ubuntu36_i386.deb | wget http://ftp.bit.nl/ubuntu/pool/main/d/debootstrap/debootstrap_0.2.45ubuntu36_i386.deb | ||
第79行: | 第87行: | ||
This retrieves and validates the files into /target, then it starts to install them. | This retrieves and validates the files into /target, then it starts to install them. | ||
=== configuring the basics === | === configuring the basics === | ||
− | <pre><nowiki>chroot /target /bin/bash | + | <pre><nowiki> |
+ | chroot /target /bin/bash | ||
mount -t proc proc /proc | mount -t proc proc /proc | ||
</nowiki></pre> | </nowiki></pre> | ||
(Mounting the /proc is VERY IMPORTANT. Trust me, I had a fubar-ed installation (well, three) because I failed to do this correctly. mounting the sys as suggested in the guides wouldn't work and didn't matter). I did not have to edit the <code><nowiki>/etc/fstab</nowiki></code> file. It looked correct already. | (Mounting the /proc is VERY IMPORTANT. Trust me, I had a fubar-ed installation (well, three) because I failed to do this correctly. mounting the sys as suggested in the guides wouldn't work and didn't matter). I did not have to edit the <code><nowiki>/etc/fstab</nowiki></code> file. It looked correct already. | ||
(I edited the /etc/network/interfaces, because it had no local loopback, for starters): | (I edited the /etc/network/interfaces, because it had no local loopback, for starters): | ||
− | <pre><nowiki>vim /etc/network/interfaces | + | <pre><nowiki> |
+ | vim /etc/network/interfaces | ||
auto lo | auto lo | ||
第94行: | 第104行: | ||
my <code><nowiki>/etc/resolv.conf</nowiki></code> looked correct (nameserver: 10.0.0.2). | my <code><nowiki>/etc/resolv.conf</nowiki></code> looked correct (nameserver: 10.0.0.2). | ||
In honour of the floppy install, I chose "debian" as my hostname: | In honour of the floppy install, I chose "debian" as my hostname: | ||
− | <pre><nowiki>echo debian > /etc/hostname | + | <pre><nowiki> |
+ | echo debian > /etc/hostname | ||
</nowiki></pre> | </nowiki></pre> | ||
----Nota Bene: | ----Nota Bene: | ||
I forgot this, but editing <code><nowiki>/etc/hosts</nowiki></code> at this point might be a good idea... (yet by mistake I proved that it works by doing this afterwards, see the Post Scriptum for more). I added the following, simply by looking at the /etc/hosts from a working ubuntu hoary install: | I forgot this, but editing <code><nowiki>/etc/hosts</nowiki></code> at this point might be a good idea... (yet by mistake I proved that it works by doing this afterwards, see the Post Scriptum for more). I added the following, simply by looking at the /etc/hosts from a working ubuntu hoary install: | ||
− | <pre><nowiki>vim /etc/hosts | + | <pre><nowiki> |
+ | vim /etc/hosts | ||
127.0.0.1 localhost.localdomain locahost debian | 127.0.0.1 localhost.localdomain locahost debian | ||
第104行: | 第116行: | ||
---- | ---- | ||
=== setting up the ubuntu system === | === setting up the ubuntu system === | ||
− | <pre><nowiki>base-config new | + | <pre><nowiki> |
+ | base-config new | ||
</nowiki></pre> | </nowiki></pre> | ||
It prompted me for some things: | It prompted me for some things: | ||
第111行: | 第124行: | ||
=== Finishing up (important) === | === Finishing up (important) === | ||
Language settings might be a good idea: | Language settings might be a good idea: | ||
− | <pre><nowiki>dpkg-reconfigure locales | + | <pre><nowiki> |
+ | dpkg-reconfigure locales | ||
</nowiki></pre> | </nowiki></pre> | ||
This way of installing doesn't come with a kernel, so I needed one: | This way of installing doesn't come with a kernel, so I needed one: | ||
第120行: | 第134行: | ||
The "do you want to stop now" prompt when installing the kernel should be answered with "no". The suggested link from initrd.img sounded like a good idea to me: "Y". | The "do you want to stop now" prompt when installing the kernel should be answered with "no". The suggested link from initrd.img sounded like a good idea to me: "Y". | ||
Next, I really needed a bootloader: | Next, I really needed a bootloader: | ||
− | <pre><nowiki>apt-get install grub | + | <pre><nowiki> |
+ | apt-get install grub | ||
grub-install /dev/hda | grub-install /dev/hda | ||
update-grub | update-grub | ||
第126行: | 第141行: | ||
</nowiki></pre> | </nowiki></pre> | ||
All seemed well, so it was time for a reboot: | All seemed well, so it was time for a reboot: | ||
− | <pre><nowiki>ctrl+d (get out of the chroot) | + | <pre><nowiki> |
+ | ctrl+d (get out of the chroot) | ||
reboot</nowiki></pre> | reboot</nowiki></pre> | ||
---- | ---- | ||
Post Scriptum: | Post Scriptum: | ||
It worked, although as I stated above, one last thing needed to be done. A hostname line in /etc/hosts, to be exact. I forgot this and as a result my USB mouse, network interface, and gdm login failed. So, after I tried to fix it with a reboot yet again (and I arrived at the graphical login): | It worked, although as I stated above, one last thing needed to be done. A hostname line in /etc/hosts, to be exact. I forgot this and as a result my USB mouse, network interface, and gdm login failed. So, after I tried to fix it with a reboot yet again (and I arrived at the graphical login): | ||
− | <pre><nowiki>Ctrl+alt+F1, | + | <pre><nowiki> |
+ | Ctrl+alt+F1, | ||
username | username | ||
password | password | ||
第145行: | 第162行: | ||
---- | ---- | ||
This ended all of my problems. I am finishing this document from a working ubuntu desktop! | This ended all of my problems. I am finishing this document from a working ubuntu desktop! | ||
− | |||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2009年11月17日 (二) 19:32的最新版本
点击翻译: |
English |
请不要直接编辑翻译本页,本页将定期与来源同步。 |
<<Include(Tag/ContentCleanup)>> A much easier way of installing with floppies can be found at SmartBootManager. This should be considered an alternative to the Installation/FromKnoppix. The idea is to install on a system with no (working) CD-ROM drive, but a system that does have a floppy drive. You'll need a network connection for it, too. OVERVIEW The plan is to:
- Boot from Debian Sarge install floppies
- Get far enough to have network access
- Use the Debian Sarge installer to partition the hard drive
- Use debootstrap from Ubuntu to put Ubuntu there instead
- Grab the latest debootstrap_*.tar.gz from http://archive.ubuntu.com/ubuntu/pool/main/d/debootstrap/ and tar -zxvf debootstrap_*.tar.gz and follow directions to make and install the application. The pre-packaged deb binary will probably not work with dpkg -i because the Debian boot floppy may not meet Ubuntu's dependencies. See "Getting debootstrap" below.
- Reboot, crossing some fingers.
STEP 1: Prepare the Sarge installer
You can download the floppy images from one of the sites below:<
>
http://ftp.egr.msu.edu/debian/dists/etch/main/installer-i386/current/images/floppy/ <
>
http://ftp.nl.debian.org/debian/dists/etch/main/installer-i386/current/images/floppy/ <
>
These are the files you need:
- boot.img
- root.img
- net-drivers.img
Put them on floppies:
dd if=/path/to/floppy/images/boot.img of=/dev/fd0
STEP 2: Start the Sarge installer
ANOTHER WAY TO DO IT ... would be to make boot floppies for Knoppix. This works only if you have a CD-ROM but you can't boot on it (old BIOS, non bootable SCSI adapter).
- Boot knoppix on another computer.
- K Menu --> KNOPPIX --> Utilities --> Create bootfloppies for KNOPPIX.
Then put the first floppy in the computer to install, KNOPPIX CD-ROM in the player, start the computer, put the second floppy when asked and you will be in KDE. Then follow Installation/FromKnoppix A BETTER, SIMPLER WAY TO DO IT ... would be using a Smart Boot Manager floppy to boot the system. For more information take a look at the [SmartBootManager]
Q & A Would be a bit rude of me to modify someone elses nicely built wiki page, but heres something that came to my attention: "4. Use debootstrap from Ubuntu to put Ubuntu there instead" Ok, I've created the Debian Sarge installer floppies and booted, created partitions etc. But exactly -how- would I "Use debootstrap from Ubuntu to put Ubuntu there instead"? Grab the latest debootstrap_*.tar.gz from http://archive.ubuntu.com/ubuntu/pool/main/d/debootstrap/ and tar -zxvf debootstrap_*.tar.gz and follow directions to make and install the application. The pre-packaged deb binary will probably not work with Debian because of the Ubuntu dependencies. Anybody try this? I don't know much about this but I have ideas: see Installation/FromKnoppix or even better http://archive.ubuntulinux.org/ubuntu/dists/warty/main/installer-i386/current/doc/manual/en/apcs03.html
目录
Before you start
I have used the Debian GNU/Linux floppies to install the system I'm currently typing from. Sidenote: working with floppies almost always means one of them is broken and you might want to keep a backup computer with rawwrite/ dd ready. I took notes of what I did, but I might have made mistakes writing things down. This worked for *me* on a i386 laptop without a cdrom. My editor of choice was vim, you can replace those commands with nano or some other available editor). I used [1] and [2] (paragraph 3.7) as my guides. be warned: I am absolutely no expert and some steps may be either way off, plain wrong or much more complicated than needed.
getting ready
I used the boot.img, root.img and net-drivers.img files from Debian GNU/Linux Sarge. Be advised! Internet access is badly needed every step of the way. I got the floppies from: http://ftp.debian.org/debian/dists/sarge/main/installer-i386/current/images/floppy.
To create the boot, root and driver floppies, I used dd (windows users should use rawrite, explained in great detail in many places on the internet).
I put in the boot disk, made sure my networkcable was connected and at the
"Enter to boot:"
prompt, typed:
"Enter to boot:expert <Enter>
The "expert" setting gave the amount of control over the installation-process I needed. Next I was asked for the root disk and prompted for a language and a location. A correct language/location safed some time downloading. Then, when asked for it, I loaded the net-drivers from the floppy. keyboard layout and detecting network hardware came next. pressing Enter a few times was my solution. My network is configured with DHCP. If yours is not, you probably know what to fill in. (ps, I always have to run "network autoconfiguration" twice). It asked for a hostname, I went with the default: debian (you can change this later), next the domain name: (you decide, I did <Enter>) I chose a mirror close to me, which ment just pressing <Enter> a couple of times. I didn't bother with the extra installer components and chose to continue. Next, I let debian detect my computers hardware. I again ignored the prompting about modules and declined to be asked for module parameters. Then, I partitioned the disk, a simple task with guided partitioning. I chose to erase the entire disk and put everything in one partition. The end result (using Default options):
#1 primary 9.6 GB ext3 / #5 logical 444.1 MB swap swap
If I were not running in expert mode, the installer would now go and install the base system. This is where the document about debian on an existing unix/linux system and the ubuntu from floppy installation start to merge. To get to a real console (the "exit to shell from the debian GNU/Linux installation menu has problems with vim) type:
Alt+F2
A df -h
told me the harddisk was at: /dev/ide/host0/bus0/target0/lun0/part1, and mounted on /target. /target sounded like a good place to put ubuntu into.
Getting debootstrap
mkdir work cd work wget http://ftp.bit.nl/ubuntu/pool/main/d/debootstrap/debootstrap_0.2.45ubuntu36_i386.deb (a full list of ARCHIVE mirrors is available at: http://ubuntulinux.org/wiki/Archive). ar -x debootstrap_0.2.45ubuntu36_i386.deb cd / zcat < /work/data.tar.gz | tar xv /usr/sbin/debootstrap --arch i386 hoary /target http://ftp.bit.nl/ubuntu/
This retrieves and validates the files into /target, then it starts to install them.
configuring the basics
chroot /target /bin/bash mount -t proc proc /proc
(Mounting the /proc is VERY IMPORTANT. Trust me, I had a fubar-ed installation (well, three) because I failed to do this correctly. mounting the sys as suggested in the guides wouldn't work and didn't matter). I did not have to edit the /etc/fstab
file. It looked correct already.
(I edited the /etc/network/interfaces, because it had no local loopback, for starters):
vim /etc/network/interfaces auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp
my /etc/resolv.conf
looked correct (nameserver: 10.0.0.2).
In honour of the floppy install, I chose "debian" as my hostname:
echo debian > /etc/hostname
Nota Bene:
I forgot this, but editing /etc/hosts
at this point might be a good idea... (yet by mistake I proved that it works by doing this afterwards, see the Post Scriptum for more). I added the following, simply by looking at the /etc/hosts from a working ubuntu hoary install:
vim /etc/hosts 127.0.0.1 localhost.localdomain locahost debian
setting up the ubuntu system
base-config new
It prompted me for some things: I added a user, I chose http for mirror-type, Netherlands for a country, And then off it went, retrieving, verifying, selecting, unpacking and setting up. Powernowd (?) gave errors, because I used the incorrect kernel (~gosh~). Did not seem to matter though. I initially got some errors about my fonts, but they seemed to solve themselves. Registering documentation took forever, so don't be alarmed.
Finishing up (important)
Language settings might be a good idea:
dpkg-reconfigure locales
This way of installing doesn't come with a kernel, so I needed one:
apt-cache search linux-image apt-get install linux-image-2.6.10-5-686
The "do you want to stop now" prompt when installing the kernel should be answered with "no". The suggested link from initrd.img sounded like a good idea to me: "Y". Next, I really needed a bootloader:
apt-get install grub grub-install /dev/hda update-grub would you like menu.lst generated? "Y"
All seemed well, so it was time for a reboot:
ctrl+d (get out of the chroot) reboot
Post Scriptum: It worked, although as I stated above, one last thing needed to be done. A hostname line in /etc/hosts, to be exact. I forgot this and as a result my USB mouse, network interface, and gdm login failed. So, after I tried to fix it with a reboot yet again (and I arrived at the graphical login):
Ctrl+alt+F1, username password sudo -s (I got an error about gethostname() or something alike. No, really!?) password vim /etc/hosts (I added the following, taken from a working ubuntu hoary install:) 127.0.0.1 localhost.localdomain locahost debian
Then, I did the windows thingy yet again: reboot.
This ended all of my problems. I am finishing this document from a working ubuntu desktop!