FedoraForum.org - Fedora Support Forums and Community
Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2008
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    HOW TO: Boot Fedora 9/10 Live from the Hard Drive (without CD)

    I know many people wanna boot Fedora from the hard drive due to the long time wait for booting from the CD /DVD drive. Me too. After several time failure, I successfully boot Fedora 9 Live from the hard drive (now I am in it). I am a Ubuntu user. And there does exist a great user contributed doc talking about how to boot Ubuntu Live from the hard drive. I searched the web but failed to find any similar doc for Fedora. The official doc doesn't cover it in a clear way in my humble opinion. And some people also pointed out that it almost impossible to do so. Thus I hope this mini how-to would be helpful. Note that I assume you already have got a GNU/Linux in your box. Mine is Ubuntu. I also assume you are familiar with some basic tasks like partitioning your hard disk. If you are not, I suggest you stick to the traditional way of installation from the CD/DVD drive. Even if you are, making a backup of your currently running GNU/Linux system is still highly recommended. Of course, if you are very confident, go ahead.

    1. Get the ISO Image
    Download an iso image of Fedora 9 Live CD/DVD from its website. Save it somewhere. In our case, we download the ISO image of Live CD and save it in `~/Distro/'

    2. Prepare your Hard Drive
    Create a new partition on your hard drive using your favourite partition manager. GParted for gnome users, QtParted for KDE users. Or if you prefer the command line, cfdisk or fdisk is there for you. Anyway, create a new partition of size 1GB (750MB should be enough, but I am not sure, anyway, better more than less). In our case the newly created partition is `/dev/sda8'. Format it. We choose ext3. The name for SATA/SCSI hard drive is sdxn, while for IDE hard drive is hdxn. You should be aware of what you have and choose the right name for your hard drive. But note that GRUB does not distinct them, any hard drive is simply called hdxn, where x is the disk number while n is the partition number. Don't confuse them. For more, read the GRUB manual, by typing the command `info grub' in your terminal.

    3. Dump the ISO Image into the Hard Drive
    Open a terminal, type the following commands. Note that the su-way is for non-Ubuntu users. Ubuntu users, skip the first command `su', add `sudo' to each command below if you prefer the sudo-way.)

    Code:
       
    su
    cd /mnt/
    mkdir iso live
    mount -o loop -t iso9660 ~/Distro/Fedora-Live.iso iso
    mount -t ext3 /dev/sda8 live
    cp -r iso/* live/
    umount iso live
    Replace `Fedora-Live.iso' with the ISO image you actually get and `/dev/sda8' with the partition you created in Step 2.

    4. Edit the GRUB Configuration
    Open the famous `/boot/grub/menu.lst' file of GRUB using your favourite editor. Add the following lines to the end of the file.

    # Fedora 9/10 Live
    title Fedora 9/10 Live
    root (hd0,7)
    kernel /isolinux/vmlinuz0 root=/dev/sda8 rootfstype=ext3 rw quiet liveimg rhgb
    initrd /isolinux/initrd0.img
    Replace `root (hd0,7)' with `root (hdx,n-1)' if your partition is `/dev/sdxn' (or `/dev/hdxn'), replace `root=/dev/sda8' with `root=/dev/sdxn' (or `root=/dev/hdxn' ) , `ext3' in `rootfstype=ext3' with the file system type name you choose for the partition in Step 2, e.g., xfs. Save changes to the `menu.lst' file.
    [Updated] According to zod786, Fedora 9 can not recognize /dev/hdxn, it sees all hard disk as /dev/sdxn. So you should set ``root=/dev/sdxn'' no matter what kind of hard disk you have. Thanks, zod786.[Updated]


    5. Reboot and Done
    Reboot and choose ``Fedora 9/10 Live'' from the GRUB menu.

    Once you are in the Live system, you can try Fedora or install it to your hard drive (another partition).


    That's all. I know you are curious how I make it, right? The key point is the options to the kernel. I get these options from the `isolinux.cfg' file lying in the same directory as the kernel, i.e., `/isolinux/'. Take a look, I am sure you will get it.

    Finally thanks to the Fedora team, you have done a really good job! And good luck to you!
    Last edited by plmday; 27th November 2008 at 08:16 AM. Reason: change
    DAY's dAi Yi

  2. #2
    Join Date
    Jul 2008
    Location
    North London
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks plmday the tutorial worked a treat. Just one point needs to be stressed (this had me stuck for ages before a helpful soul in the "Installation" forum helped me out) about the the "root=/dev/*" directive in the kernel line grub menu.lst file. Fedora9 does not recognise /dev/hda* as it uses /dev/sda* to name partitions . I made the mistake of using "root=/dev/hda2" and it would not boot or find a filesystem. The correct syntax should have been "root=/dev/sda2."

    Thanks again !

    zod

  3. #3
    Join Date
    Jun 2008
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks plmday the tutorial worked a treat. Just one point needs to be stressed (this had me stuck for ages before a helpful soul in the "Installation" forum helped me out) about the the "root=/dev/*" directive in the kernel line grub menu.lst file. Fedora9 does not recognise /dev/hda* as it uses /dev/sda* to name partitions . I made the mistake of using "root=/dev/hda2" and it would not boot or find a filesystem. The correct syntax should have been "root=/dev/sda2."
    Glad to see that you find the tutorial useful, zod. And thanks for figuring out that the typical name convention of the hard disk in Fedora 9. I have updated the tutorial. By the way, I don't think this is a good feature, it makes things more confusing. Perhaps Fedora should confront to GRUB, use `hdxn' to cover all kinds of harddisks.
    DAY's dAi Yi

  4. #4
    Join Date
    Jun 2008
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've made minor changes to this tutorial. It still works flawlessly on the current fedora 10 release. If you have any problem, please let me know. I am considering the switch to fedora. I am deeply depressed by the recent ubuntu 8.10 but impressed by fedora 10.
    DAY's dAi Yi

  5. #5
    fedose Guest

    boot fedora 9/10 live or any iso?

    Hi there,
    i have followed this throughoutly, still i couldn't boot, it said error 15: file not found
    so i did not live.iso but netinst.iso now if there is difference and only live.iso can be booted this way then i guess this How To is not for me. also i had some problems making partiotion out of free space with gparted which couldn't resize the current working partition but could reformat it! I am using fedora 9 clean install, and a small 386 mb + 1.8Ghz, the other partiotion that I've managed to reformat was 30Gb windows, which was done pretty fast since its gparted ...
    thnx, fedose

  6. #6
    Join Date
    Feb 2010
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Fedora 12 live iso

    Trying to boot Fedora 12 live iso (sda6) using your method but when I try to boot I get

    "/dev/sda6 already mounted or /sysroot busy
    according to mtab /dev/sda6 already mounted on /sysroot"

    Any help appreciated.

    Angus

  7. #7
    Join Date
    Sep 2010
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fedora 12 live iso

    Quote Originally Posted by angusr
    Trying to boot Fedora 12 live iso (sda6) using your method but when I try to boot I get

    "/dev/sda6 already mounted or /sysroot busy
    according to mtab /dev/sda6 already mounted on /sysroot"

    Any help appreciated.

    Angus
    Instead of writing the device path in the boot option such as
    Code:
    root=/dev/sda8
    use the UUID of that device instead (replace blahblah with device UUID)
    Code:
    root=UUID=blahblahblah
    To get the UUID of your desired device, try this
    Code:
    ls -lF /dev/disk/by-uuid
    I also encountered the same error that you experienced while I was trying to make a multiboot usb drive. The method described above fixed this problem and I was able to boot multiple livecds on a single usb drive without the need for separate partitions.

Similar Threads

  1. Replies: 5
    Last Post: 12th December 2008, 05:27 PM
  2. FEDORA 9 (6 DISC ISO, DVD, and LIVE-BETA) does not see my hard drive...
    By jgajito in forum Installation, Upgrades and Live Media
    Replies: 7
    Last Post: 27th October 2008, 07:31 PM
  3. Can I boot "Fedora Live" from its ISO located on hard drive
    By serge in forum Installation, Upgrades and Live Media
    Replies: 19
    Last Post: 17th June 2008, 04:48 AM
  4. Replies: 5
    Last Post: 1st March 2008, 02:46 AM
  5. Replies: 20
    Last Post: 5th February 2006, 05:53 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •