Re: F23 install from hard disk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/04/2016 02:34 PM, Amadeus W.M. wrote:
I used to
- mount the iso on some empty directory,
- extract vmlinuz and the initramfs image for the new distribution and
put them in /boot
- modify grub.conf accordingly, write it to disk and boot the new kernel
- during install, specify the partition and the path to the iso of the
new fedora.


I finally worked out exactly how to do this and it's similar to what you describe. One important issue is that you can't install to the drive that you read the iso from so you can't use the iso itself for the stage2. You have to extract the stage2 file first. This is probably due to not wanting to include the USB boot drive. It does work if you directly write the iso file to a partition, but you're unlikely to have a spare partition to use for that purpose.

For the purpose of this example, I'm going to use the /home partition which is mounted on /dev/vda2 and I'll use /mnt as the location for mounting the iso. Substitute as necessary.

Steps:
1. Download the iso to your computer. I recommend the Server net install iso. Yes, you can use it to install the other products.

http://dl.fedoraproject.org/pub/fedora/linux/releases/23/Server/x86_64/iso/Fedora-Server-netinst-x86_64-23.iso
2. mount -o loop Fedora-Server-netinst-x86_64-23.iso /mnt
3. cp /mnt/isolinux/vmlinuz /boot/vmlinuz-install
4. cp /mnt/isolinux/initrd.img /boot/initrd-install.img
5. cp /mnt/images/install.img /home

Add the following chunk to the end of /etc/grub2.cfg (beware of email line-wrapping, there are four lines): menuentry 'Install Fedora 23' --class fedora --class gnu-linux --class gnu --class os {
  linux /boot/vmlinuz-install inst.stage2=hd:/dev/vda2:/install.img quiet
  initrd /boot/initrd-install.img
}

Make sure the partition you put the install.img file in is not going to be formatted (i.e. not the / partition). Now reboot and you should have a grub entry to do the install.
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
http://lists.fedoraproject.org/admin/lists/users@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux