FedoraForum.org - Fedora Support Forums and Community
Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2004
    Posts
    351
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [UNABLE] How to boot Fedora Install ISO file located in LVM partition with GRUB2?

    EDIT: [UNABLE] so kind of [SOLVED]: Fedora 20 Install cannot use ISO file on LVM partition, Only from ext2/3/4 or FAT partitions.

    ORIGINAL:
    I try to upgrade from Fedora 17 to F20.
    I have vfat partition, boot partition and LVM-partition which has root, home and swap logical volumes.

    4.3 GB Fedora 20 install DVD is too big file to be managed in VFAT filesystem, and the boot partiton is only 500 MB, the computer does not have DVD-drive and currently I do not have an USB stick either.

    The Fedora 20 Live Desktop system seems unreliable way to upgrade, when I tried. It wants to reinstall, so I figured I should use the full Fedora 20 Install DVD instead. (?)

    So there is /home/user/Download/Fedora-Live-Desktop-x86_64-20-1.iso which I want to boot from Grub2. (And currently I can, but the Fedora install does not find the install image after the boot.)

    /home is LVM logical partition 'lvm/vg_mine-lv_home' and the file there is then:
    /user/Download/Fedora-Live-Desktop-x86_64-20-1.iso (as seen in the grub2 config lines below)

    How Grub2 should be configured to get the Fedora Install ISO file booted and the Install working, when the ISO file is located in LVM partition?

    I know how to boot Fedora 20 Live system with Grub2 (the first grub2 menu entry below), but for the 4.3 GB DVD-ISO-file something is missing or wrong maybe in the kernel options (the second Grub2 menu entry below):
    Code:
     linux (loop)/isolinux/vmlinuz0 root=live:CDLABEL=${isoname} rootfstype=auto ro rd.live.image quiet rhgb rd.luks=0 rd.md=0 rd.dm=0 iso-scan/filename=${isofile}
    The first Grub2 menuentry works, but the second one doesn't fully. The second one does find the kernel and initrd, and kernel is booted, but it (dracut-initqueue) fails to find the rest. In the end there is lines from rdsosreport.txt which were got when the second menu entry in /etc/grub.d/40_custom was booted.

    rdsosreport.txt's most relevant line to give clues I think is this:
    "[ 198.149139] localhost dracut-initqueue[538]: Warning: /dev/disk/by-label/Fedora-20-x86_64-DVD does not exist"



    Code:
    # cat /etc/grub.d/40_custom 
    #!/bin/sh
    exec tail -n +3 $0
    # This file provides an easy way to add custom menu entries.  Simply type the
    # menu entries you want to add after this comment.  Be careful not to change
    # the 'exec tail' line above.
    
    
    menuentry "Fedora 20 Live Desktop (64 bit)" {
     insmod loopback
     insmod iso9660
     set root='hd0,msdos1'
     set isoname="Fedora-Live-Desktop-x86_64-20-1"
     set isofile="${isoname}.iso"
     set rdfile="/isolinux/initrd0.img"
     loopback loop (hd0,1)/$isofile
     linux (loop)/isolinux/vmlinuz0 root=live:CDLABEL=${isoname} rootfstype=auto ro rd.live.image quiet rhgb rd.luks=0 rd.md=0 rd.dm=0 iso-scan/filename=${isofile}
     initrd (loop)$rdfile
    }
    
    menuentry "Fedora 20 Install (64 bit)" {
     insmod loopback
     insmod iso9660
     insmod lvm
     set root='lvm/vg_mine-lv_home'
     set isoname="Fedora-20-x86_64-DVD"
     set isofile="/user/Downloads/${isoname}.iso"
     set rdfile="/isolinux/initrd0.img"
     loopback loop (/lvm/vg_mine-lv_home)$isofile
     linux (loop)/isolinux/vmlinuz0 root=live:CDLABEL=${isoname} rootfstype=auto ro rd.live.image quiet rhgb rd.luks=0 rd.md=0 rd.dm=0 iso-scan/filename=${isofile}
     initrd (loop)$rdfile
    }
    
    # grub2-mkconfig -o /boot/grub2/grub.cfg
    ....
    done
    
    # parted /dev/sda
    GNU Parted 3.0
    Using /dev/sda
    Welcome to GNU Parted! Type 'help' to view a list of commands.
    (parted) p                                                                
    Model: ATA ST3250820AS (scsi)
    Disk /dev/sda: 250GB
    Sector size (logical/physical): 512B/512B
    Partition Table: msdos
    Disk Flags: 
    
    Number  Start   End    Size   Type     File system  Flags
     1      32.3kB  126GB  126GB  primary  fat32
     2      126GB   126GB  524MB  primary  ext4         boot
     3      126GB   250GB  124GB  primary               lvm
    
    # cat  /boot/rdsosreport.txt
    ...
    [    0.000000] localhost kernel: Command line: BOOT_IMAGE=(loop)/isolinux/vmlinuz root=live:CDLABEL=Fedora-20-x86_64-DVD rootfstype=auto ro rd.live.image rhgb rd.luks=0 rd.md=0 rd.dm=0 iso-scan/filename=Fedora-20-x86_64-DVD.iso
    ...
    [    3.436274] localhost kernel: loop: module loaded
    [    3.418151] localhost dracut-cmdline[75]: root was live:CDLABEL=Fedora-20-x86_64-DVD, is now live:/dev/disk/by-label/Fedora-20-x86_64-DVD
    [    3.440845] localhost dracut-cmdline[75]: rd.lvm=0: removing LVM activation
    ...
    [    7.600417] localhost systemd[1]: Starting Paths.
    [    7.600556] localhost systemd[1]: Reached target Paths.
    [    7.600694] localhost systemd[1]: Starting Basic System.
    [    7.600831] localhost systemd[1]: Reached target Basic System.
    [    7.786114] localhost multipathd[117]: sda: add path (uevent)
    [    7.786367] localhost multipathd[117]: sda: spurious uevent, path already in pathvec
    [    8.013352] localhost kernel: EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
    [    8.727116] localhost kernel: [drm] Enabling RC6 states: RC6 on, RC6p on, RC6pp off
    [  198.139901] localhost dracut-initqueue[538]: Warning: Could not boot.
    [  198.149139] localhost dracut-initqueue[538]: Warning: /dev/disk/by-label/Fedora-20-x86_64-DVD does not exist
    [  198.149474] localhost dracut-initqueue[538]: Warning: /dev/mapper/live-rw does not exist
    [  198.154904] localhost systemd[1]: Starting Dracut Emergency Shell...
    Code:
    # ls -lh /mnt/sda1/Fedora-Live-Desktop-x86_64-20-1.iso 
    -rwxr-xr-x. 1 root root 953M Dec 25 13:17 /mnt/sda1/Fedora-Live-Desktop-x86_64-20-1.iso
    # ls -lh /home/user/Downloads/Fedora-20-x86_64-DVD.iso 
    -rw-rw-r--. 1 user user 4.3G Dec 25 15:43 /home/user/Downloads/Fedora-20-x86_64-DVD.iso
    Last edited by zimon; 28th December 2013 at 09:44 PM. Reason: solved

  2. #2
    Join Date
    May 2005
    Location
    Sonoran Desert
    Posts
    2,420
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to boot Fedora Install ISO file located in LVM partition with GRUB2?

    According to the Fedora 20 docs you cannot do a HD installation from an iso on an LVM partition:
    http://docs.fedoraproject.org/en-US/...talls-x86.html

  3. #3
    Join Date
    Sep 2004
    Posts
    351
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to boot Fedora Install ISO file located in LVM partition with GRUB2?

    Ah, ok, thanks.

    LVM seems to be rather poorly supported in Fedora Installs. Also fedup has its problems both with LVM and with LUKS (LUKS-usage is discouraged? Maybe Snowden releases some interesting documents about these LUKS-issues later? jk? ):
    https://bugzilla.redhat.com/show_bug.cgi?id=974000

    Not that I would be interested in this case to use fedup anyway, when trying to leap from F17 to F20 straight, which maybe be a bad idea. (Not my own PC but IT-illitarate raletives' one.). But fedup from F17 to F18 failed, and preupgrade could not find anything to update to.


    This use case is not so uncommon, I think, so maybe Fedora could support having ISO-images on LVM-logical partitions also. One possible solution would be to transform that /dev/sda1 partition from VFAT to ext2/3/4, or maybe to NTFS, but suppose they want to use that win98 some day, so I cant.

    I guess I try to upgrade with F20 Live Desktop ISO-image in the VFAT then anyhow. It just wants to reformat / (root fs) I assume.


    EDIT:

    So, I upgraded then with Fedora 20 Live Desktop ISO, the Grub2 menuentry in the first post. It wanted to recreate root-fs, so alot had to be reconfigured after that.
    One thing which was poorly supported, was to create user accounts using their existing home directories in /home partition. Although "create home folder" was unchecked, it was not clear if it will still create the home folder and perhaps overwrite the old one.

    rpmfusion repositories of course.
    flash-plugin (hopefully not some day)
    (yum groupinstall "GNOME" "Sound and Video" "System Tools" "Administration Tools" "Games and Entertainment" "Office/Productivity")
    Samsung CLP-315 printer didn't have driver and had to be manually installed (yum install system-config-printer foo2qpdl)
    Me-TV is no longer supported, so had to rebuild it from F15-SRPM after some .spec file modifications.
    Code:
    --- me-tv.spec.orig	2011-02-08 18:53:25.000000000 +0200
    +++ me-tv.spec	2013-12-27 20:14:31.754341116 +0200
    @@ -9,9 +9,8 @@
     Source0:        http://launchpad.net/me-tv/stable/%{version}/+download/%{name}-%{version}.tar.gz
     BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
     
    +BuildRequires: gcc-c++ 
     BuildRequires: sqlite-devel 
    -BuildRequires: libgnomemm26-devel 
    -BuildRequires: libgnomeuimm26-devel
     BuildRequires: xine-lib-devel
     BuildRequires: gnet2-devel
     BuildRequires: gconfmm26-devel
    Last edited by zimon; 28th December 2013 at 09:46 PM. Reason: upgrade done

  4. #4
    Join Date
    Dec 2008
    Location
    Vancouver, BC
    Posts
    4,333
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: How to boot Fedora Install ISO file located in LVM partition with GRUB2?

    You cannot 'upgrade' from the live image or the DVD any more, so I guess you in fact did a fresh install while preserving /home , which is not an upgrade. Yes, we intentionally do not let you do a fresh install without formatting the root partition, this is not supported and not something we are interested in supporting.

    fedup works just fine with LVM, we test it more with that than with anything else, as LVM is Fedora's default filesystem layout. It also works fine with straightforward encryption, including encrypted LVM, though there's a corner case where it doesn't work if you have *double* encrypted LVM (you never should, it's a pointless configuration, but F18/F19 custom part could result in it happening without you really intending it). But in standard cases, it should work fine, and we have tested this.

    The real source of your problem with fedup was waiting until six months after the release you were running went EOL to try and upgrade. Don't do that. We don't support EOL releases, and we don't support upgrading from them, and you really shouldn't run one. Upgrade before your release goes EOL.
    Adam Williamson | awilliam AT redhat DOT com
    Fedora QA
    IRC: adamw | Fedora Chat: @adamwill:fedora.im
    http://www.happyassassin.net

  5. #5
    Join Date
    Sep 2004
    Posts
    351
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to boot Fedora Install ISO file located in LVM partition with GRUB2?

    Suppose the machine would not have had that VFAT partition and boot partition is only 500 MB. Then only place would had been to put Fedora LIVE ISO image to LVM /home partition, which is not supported. I understand the ISO cannot be in the rootfs, because it would be reformated, but the old Fedora installs will have the separate /home partition. So having bootable ISO-file on a LVM-partition could be supported in the future. (What was really the original question of this thread, and is ~"(not)solved" by "it cannot be done".)

    OT:
    A user can configure auto-updates (?), but is there some way to make auto release upgrades with fedup? The machine I (not) "upgraded" from F15 to F20, I usually just visit once a year, so next year it will be probably EOL again, unless I do remote support.

    btw, http://fedoraproject.org/wiki/FAQ#Ca...tomatically.3F
    You can use set the preferences in System > Preferences > System > Software Updates.
    Oh, where?

    however, http://fedoraproject.org/wiki/AutoUp...pdates_done.3F
    ..works. yum-updatesd can be installed and "do_update = yes" configured. Do not know if it works then.

  6. #6
    Join Date
    Dec 2008
    Location
    Vancouver, BC
    Posts
    4,333
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: How to boot Fedora Install ISO file located in LVM partition with GRUB2?

    I wasn't really focusing on your 'original question', because it seemed to be based on an incorrect premise, which was "I need to boot the installer ISO to do an upgrade". Not only do you no longer *need* to, you actually *can't* do an upgrade that way any more. So it seemed a bit of a red herring.

    Would it theoretically be a capability that could be added to anaconda? Sure. You could file it as an RFE. I don't know how interested they'd be in implementing it.

    OT:

    "Oh, where?"

    It went away temporarily for Fedora 20, with the new GNOME Software. Should be back for F21 I'd expect. I think the dconf keys in org.gnome.settings-daemon.plugins.updates should be respected if you twiddle them with dconf-editor.

    I don't think automatic upgrading is a thing yet (or possibly ever). Bit of an aggressive operation to make automatable. But the lifetime of each Fedora release is approx. 13 months - F(N) lives until a month after F(N+2) is released - so if you visit every 12 months you should be able to keep it out of EOL.
    Adam Williamson | awilliam AT redhat DOT com
    Fedora QA
    IRC: adamw | Fedora Chat: @adamwill:fedora.im
    http://www.happyassassin.net

Similar Threads

  1. Install Fedora system using netinst.iso located on fat partition?
    By zimon in forum Installation, Upgrades and Live Media
    Replies: 6
    Last Post: 29th March 2013, 07:33 PM
  2. boot fedora from iso using loopback in grub2
    By geseeker in forum Installation, Upgrades and Live Media
    Replies: 19
    Last Post: 27th February 2013, 09:13 PM
  3. HOW TO: Fedora 15 with /boot inside LVM using GRUB2
    By Scipio in forum Guides & Solutions (Not For Questions)
    Replies: 3
    Last Post: 12th September 2012, 03:04 AM
  4. Replies: 7
    Last Post: 25th July 2012, 03:25 PM
  5. Fedora Install kill Grub2 LVM dual boot
    By moocan in forum Installation, Upgrades and Live Media
    Replies: 1
    Last Post: 15th November 2011, 07:29 PM

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
  •