“UbuntuHelp:Installation/FromLinux”的版本间的差异
来自Ubuntu中文
小 |
小 |
||
第3行: | 第3行: | ||
== Automatic process == | == Automatic process == | ||
UNetbootin is an installer that can do the following automatically. It is available for download at http://lubi.sourceforge.net/unetbootin.html. | UNetbootin is an installer that can do the following automatically. It is available for download at http://lubi.sourceforge.net/unetbootin.html. | ||
− | |||
If you already have a working linux system, installing without external media is easy. You need to create a new partition, copy the CD contents over to it, boot from the new partition, and proceed as if you were installing from a CD. Note that you can't use what will be the root partition for the CD contents, as the installer is stubborn on formatting it (it will fail). | If you already have a working linux system, installing without external media is easy. You need to create a new partition, copy the CD contents over to it, boot from the new partition, and proceed as if you were installing from a CD. Note that you can't use what will be the root partition for the CD contents, as the installer is stubborn on formatting it (it will fail). | ||
− | |||
The benefits of installing without external media are that it can save you time if you are already familiar with the process, and you get a very usable system upon booting into the installer because it is running from a hard drive rather than a CD. | The benefits of installing without external media are that it can save you time if you are already familiar with the process, and you get a very usable system upon booting into the installer because it is running from a hard drive rather than a CD. | ||
− | |||
'''Step 1.''' Use gparted to create a new primary partition and format it to <code><nowiki>ext3</nowiki></code>. You need slightly more than 700MB of free space on it. 750MB should be sufficient. Let's say the name of the partition is <code><nowiki>/dev/sda1</nowiki></code>. If your new ubuntu install is going to coexist with your old system, you might find it convenient to create space for your new system as well at this point using gparted. | '''Step 1.''' Use gparted to create a new primary partition and format it to <code><nowiki>ext3</nowiki></code>. You need slightly more than 700MB of free space on it. 750MB should be sufficient. Let's say the name of the partition is <code><nowiki>/dev/sda1</nowiki></code>. If your new ubuntu install is going to coexist with your old system, you might find it convenient to create space for your new system as well at this point using gparted. | ||
− | |||
'''Step 2.''' Copy CD contents over to the new partition using the command | '''Step 2.''' Copy CD contents over to the new partition using the command | ||
<pre><nowiki> | <pre><nowiki> | ||
第21行: | 第17行: | ||
</nowiki></pre> | </nowiki></pre> | ||
Replace the name of the iso to whatever you downloaded and <code><nowiki>/dev/sda1</nowiki></code> with whatever your new partition is. | Replace the name of the iso to whatever you downloaded and <code><nowiki>/dev/sda1</nowiki></code> with whatever your new partition is. | ||
− | |||
'''Step 3.''' Edit your grub configuration file (typically <code><nowiki>/etc/grub.conf</nowiki></code> or <code><nowiki>/boot/grub/menu.lst</nowiki></code>) to boot from the new partition by adding the lines | '''Step 3.''' Edit your grub configuration file (typically <code><nowiki>/etc/grub.conf</nowiki></code> or <code><nowiki>/boot/grub/menu.lst</nowiki></code>) to boot from the new partition by adding the lines | ||
<pre><nowiki> | <pre><nowiki> | ||
第30行: | 第25行: | ||
</nowiki></pre> | </nowiki></pre> | ||
The first line after the title tells grub which partition contains the installer. <code><nowiki>hd0</nowiki></code> stands for "first hard disk," and the 0 following it standards for first partition. You will need to change this if your installer partition is different from <code><nowiki>/dev/sda1</nowiki></code>. <code><nowiki>sdaN</nowiki></code> becomes <code><nowiki>(hd0, N-1)</nowiki></code>, <code><nowiki>sdbN</nowiki></code> becomes <code><nowiki>(hd1,N-1)</nowiki></code> and so on. As you can see, grub starts counting from 0, which can be confusing. | The first line after the title tells grub which partition contains the installer. <code><nowiki>hd0</nowiki></code> stands for "first hard disk," and the 0 following it standards for first partition. You will need to change this if your installer partition is different from <code><nowiki>/dev/sda1</nowiki></code>. <code><nowiki>sdaN</nowiki></code> becomes <code><nowiki>(hd0, N-1)</nowiki></code>, <code><nowiki>sdbN</nowiki></code> becomes <code><nowiki>(hd1,N-1)</nowiki></code> and so on. As you can see, grub starts counting from 0, which can be confusing. | ||
− | |||
'''Step 4.''' Reboot, and choose "installer" from the grub boot menu, and continue as if you were installing from CD. | '''Step 4.''' Reboot, and choose "installer" from the grub boot menu, and continue as if you were installing from CD. | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2007年11月30日 (五) 17:56的版本
![]() |
点击翻译: |
English |
请不要直接编辑翻译本页,本页将定期与来源同步。 |
Automatic process
UNetbootin is an installer that can do the following automatically. It is available for download at http://lubi.sourceforge.net/unetbootin.html.
If you already have a working linux system, installing without external media is easy. You need to create a new partition, copy the CD contents over to it, boot from the new partition, and proceed as if you were installing from a CD. Note that you can't use what will be the root partition for the CD contents, as the installer is stubborn on formatting it (it will fail).
The benefits of installing without external media are that it can save you time if you are already familiar with the process, and you get a very usable system upon booting into the installer because it is running from a hard drive rather than a CD.
Step 1. Use gparted to create a new primary partition and format it to ext3
. You need slightly more than 700MB of free space on it. 750MB should be sufficient. Let's say the name of the partition is /dev/sda1
. If your new ubuntu install is going to coexist with your old system, you might find it convenient to create space for your new system as well at this point using gparted.
Step 2. Copy CD contents over to the new partition using the command
mkdir /tmp/install_cd mount ubuntu-7.04-desktop-i386.iso -o loop /tmp/install_cd mkdir /mnt/installer mount /dev/sda1 /mnt/installer cp -r /tmp/install_cd/* /mnt/installer cp -r /tmp/install_cd/.disk /mnt/installer umount /tmp/install_cd
Replace the name of the iso to whatever you downloaded and /dev/sda1
with whatever your new partition is.
Step 3. Edit your grub configuration file (typically /etc/grub.conf
or /boot/grub/menu.lst
) to boot from the new partition by adding the lines
title installer root (hd0,0) kernel /casper/vmlinuz boot=casper root=/dev/ram ramdisk_size=1048576 rw initrd /casper/initrd.gz
The first line after the title tells grub which partition contains the installer. hd0
stands for "first hard disk," and the 0 following it standards for first partition. You will need to change this if your installer partition is different from /dev/sda1
. sdaN
becomes (hd0, N-1)
, sdbN
becomes (hd1,N-1)
and so on. As you can see, grub starts counting from 0, which can be confusing.
Step 4. Reboot, and choose "installer" from the grub boot menu, and continue as if you were installing from CD.