LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora - Installation (https://www.linuxquestions.org/questions/fedora-installation-39/)
-   -   Installing (or upgrading) fedora without a CDROM (https://www.linuxquestions.org/questions/fedora-installation-39/installing-or-upgrading-fedora-without-a-cdrom-304732/)

jc materi 03-22-2005 11:29 AM

HOW-TO:Installing (or upgrading) fedora without a CDROM
 
Here is a convenient way to install fedora without a cdrom. In my case I have a defective cdrom so I have been required to do this procedure a couple of times because I consider a network install a bit of a hassle (fussing with network drivers, etc). It might also be of interest to those who cannot boot from their cdroms. It also saves on having to burn CDs.

This procedure assumes you have some OS installed with a linux readable partition you can download the iso files to. For example, you currently have fedora2 installed and you want to upgrade to fedora3 and you have a partition available (in my case /dev/hda6).

<Note>
This partition will not be included in fstab after the installation (or upgrade) is complete. You must add it later. When the new system is installed add a line to fstab.

/dev/hda6 /storage ext3 defaults 1 2

(You would replace /dev/hda6 with whatever your partition is and /storage with whatever you want to call it in your file system.)

</Note>

After downloading the disk images (iso files) mount the first disk image

mount -r -o loop -t iso9660 /storage/FC3-i386-disc1.iso /mnt/iso
(if you do not have /mnt/iso you can mkdir iso or use /mnt/cdrom)

cd /mnt/iso
cd isolinux

cp initrd.img /boot/initrd.fedora-install.img
cp vmlinuz /boot/vmlinuz-fedora-install

Now you must edit grub.conf. The best way to proceed and not make any mistakes is to copy/paste the grub entry for the default kernel and change the initrd entry to initrd.fedora-install.img and do the same with vmlinuz (change to vmlinuz-fedora-install). Then change the title for the new entry to something like fedora-install. When you reboot you should select that entry as your boot option.

You new grub entry would be something like:

title fedora-install
root (hda,2)
kernel /boot/vmlinuz-fedora-install root=LABEL=/ <more stuff>
initrd /boot/initrd.fedora-install.img

<Note>
Make a boot disk in case something goes wrong!!! You at least want to be able to reboot your system in case you make a mistake editing grub.conf !!!!! And do not include the exact string "<more stuff>" in your grub.conf script. That represents additional stuff particular to your system. If you copy/paste one of the other entries, namely the default, and simply make the changes mentioned above you should be OK.

The above procedure should also work with lilo (though I have not tried it).
Your lilo.conf entry would be something like:

image=/boot/vmlinuz-fedora-install
label="fedora-install"
root=/dev/hda2
initrd=/boot/initrd.fedora-install.img
append="acpi=ht resume=/dev/hda2 splash=silent"
read-only

If you copy/paste one of the other entries, namely the default, and simply make the changes mentioned above you should be OK.

If you use lilo do not forget to run '/sbin/lilo -v' after editing lilo.conf.
</Note>

Make note of the location you have stored the disk images.

Now reboot.

Select fedora-install as the boot option. Select Hard Drive as the installtion source. Now select the partition. In my case that is /dev/hda6. If you have stored them in a sub-directory, you will have to name that directory. For example, if they are stored in FC3-disks in partition /dev/hda6 you would select /dev/hda6 and then specify FC3-disks as the directory (not /dev/hda6/FC3-disks).

The rest of the installation should proceed as normal. Enjoy! Buy yourself a beer with the money you have saved not having to burn CDs.

Engmar 03-24-2005 01:05 AM

Nice solution. I always like to necessity fueling ingenuity :D You might want to edit your subject line and add HOWTO: or something similar. I thought someone was requesting a howto at first.

Trin 04-01-2005 12:25 PM

linux for lumberjacks
 
damn wish I would have read your thread before I installed mine would have saved me lots of time, only thing I came with to install was going to a friends house with the HDD and installing it there and bringing it back home to my own PC.
A "How To" thats tells u the whole how to do it, thanks for the tip:Pengy: :Pengy: :Pengy: :Pengy: :Pengy: :Pengy: :Pengy: :Pengy: :Pengy: :Pengy:

I just love penguins


All times are GMT -5. The time now is 03:16 PM.