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):
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.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}
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


Reply With Quote
