From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: Gparted implanted on grub.cfg [grub2 version] does not want to boot
Date: Wed, 4 Sep 2013 10:33:07 -0400 [thread overview]
Message-ID: <20130904143307.GC3188@phenom.dumpdata.com> (raw)
In-Reply-To: <67BFA875989E5748A862DFF55409F2A21B0F0EB4@IRSMSX104.ger.corp.intel.com>
On Tue, Sep 03, 2013 at 01:53:33PM +0000, Stojsavljevic, Zoran wrote:
> Hello,
>
> I have VM based on Fedora 18. Since this machine is upgradable, and everything works there just fine, I started doing there lot of work, so I overloaded the HDD. My /home partition appeared to be small for all what I wanted to do.
>
> I Power OFF the VM, and resize the virtual HDD from 100 GB to 250 GB. All good, but I need also to resize the partitions (I have them 3 there).
>
> I decided to install on my VM Gparted as they advertised it @: http://gparted.sourceforge.net/livehd.php
>
> I installed live-hd part of the gparted directory at /boot/live-hd:
>
> Pwd: /boot/live-hd/
> [root@localhost live-hd]# ls -al
> total 127071
> dr-xr-xr-x. 2 root root 1024 May 1 03:25 .
> dr-xr-xr-x. 5 root root 3072 Sep 3 12:52 ..
> -r--r--r--. 1 root root 11085 May 1 03:22 filesystem.packages
> -r--r--r--. 1 root root 116121600 May 1 03:22 filesystem.squashfs
> -r--r--r--. 1 root root 10976796 May 1 03:22 initrd.img
> -rw-r--r--. 1 root root 164508 Apr 22 2011 memtest
> -r--r--r--. 1 root root 2833216 May 1 03:22 vmlinuz
> [root@localhost live-hd]#
>
> Then I went to make manual entry in the grub.cfg, @ /boot/grub2/grub.cfg.
>
> Here is how two entries look like:
> ### BEGIN /etc/grub.d/10_linux ###
> menuentry 'Fedora (3.10.9-100.fc18.x86_64)' --class fedora --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-17989633-e422-4b27-9134-13f5e8756710' {
> load_video
> set gfxpayload=keep
> insmod gzio
> insmod part_msdos
> insmod ext2
> set root='hd0,msdos1'
> if [ x$feature_platform_search_hint = xy ]; then
> search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' de3b88b1-40be-45aa-97da-a2e98b8b7292
> else
> search --no-floppy --fs-uuid --set=root de3b88b1-40be-45aa-97da-a2e98b8b7292
> fi
> echo 'Loading Fedora (3.10.9-100.fc18.x86_64)'
> linux /vmlinuz-3.10.9-100.fc18.x86_64 root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/swap rd.md=0 rd.dm=0 rd.luks=0 vconsole.keymap=us rd.lvm.lv=fedora/root rhgb quiet LANG=en_US.UTF-8
> echo 'Loading initial ramdisk ...'
> initrd /initramfs-3.10.9-100.fc18.x86_64.img
> }
> menuentry "GParted live" {
> set root='hd0,msdos1'
> linux /live-hd/vmlinuz boot=live config union=aufs noswap noprompt vga=788 ip=frommedia live-media-path=/live-hd bootfrom=/dev/mapper/fedora-root toram=filesystem.squashfs LANG=en_US.UTF-8
> initrd /live-hd/initrd.img
> }
>
> After I power OFF virtual machine and power ON again, I have chosen Gparted in sincere hope I'll boot and repartition the Fedora's VM virtual HDD.
>
> While booting, the following happened: unable to find media containing the live file system (attached bmp image as well)???
So the grub part works - as you have clearly booted the guest.
Did you identify whether the storage driver (xen-blkfront) is loaded by the time you get the problem?
Do you see or can check whether /dev/mapper/fedora-root is present? If you mount it can you see the /live-hd file?
Is the /live-hd on /dev/mapper/fedora-root or is it somewhere else?
>
>
> But I already make Linux command line options referencing to /live-hd directory, which should have such a media.
>
> What I am doing wrong here? Any suggestions?
>
> Thank you,
>
>
>
> Zoran
> _______
> Most of The Time you should be "intel inside" to be capable to think "out of the box".
>
>
> Intel GmbH
> Dornacher Strasse 1
> 85622 Feldkirchen/Muenchen, Deutschland
> Sitz der Gesellschaft: Feldkirchen bei Muenchen
> Geschaeftsfuehrer: Christian Lamprechter, Hannes Schwaderer, Douglas Lusk
> Registergericht: Muenchen HRB 47456
> Ust.-IdNr./VAT Registration No.: DE129385895
> Citibank Frankfurt a.M. (BLZ 502 109 00) 600119052
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
prev parent reply other threads:[~2013-09-04 14:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-03 13:53 Gparted implanted on grub.cfg [grub2 version] does not want to boot Stojsavljevic, Zoran
2013-09-04 14:33 ` Konrad Rzeszutek Wilk [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130904143307.GC3188@phenom.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.