You are not logged in.

#1 2012-12-18 16:39:06

ameyjah
Member
Registered: 2011-12-19
Posts: 12

Would I be able to load Arch from wubi based grub [solved]

Hello,

This one of my experience where I am trying to see if I can load Arch (installed on partition not like lookback disk) from grub that is installed on wubi installed ubuntu file.

So far, I could install Arch on disk without installing grub and added entries as follows. But somewhere I am missing something, it is not able to boot when I select option of Arch in the boot.

Could you help me.

Few additional details required to debug this issue:
1. grub.cfg file of ubuntu grub

menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-fc296be2-8c59-4f21-a3f8-47c38cd0d537' {
  gfxmode $linux_gfx_mode
  insmod gzio
  insmod ntfs
  set root='hd0,msdos5'
  if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  01CD7BB998DB0870
  else
    search --no-floppy --fs-uuid --set=root 01CD7BB998DB0870
  fi
  loopback loop0 /ubuntu/disks/root.disk
  set root=(loop0)
  linux   /boot/vmlinuz-3.5.0-19-generic root=UUID=01CD7BB998DB0870 loop=/ubuntu/disks/root.disk ro   quiet splash $vt_handoff
  initrd  /boot/initrd.img-3.5.0-19-generic
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-fc296be2-8c59-4f21-a3f8-47c38cd0d537' {
  menuentry 'Ubuntu, with Linux 3.5.0-19-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.5.0-19-generic-advanced-fc296be2-8c59-4f21-a3f8-47c38cd0d537'     {
      gfxmode $linux_gfx_mode
      insmod gzio
      insmod ntfs
      set root='hd0,msdos5'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  01CD7BB998DB0870
      else
        search --no-floppy --fs-uuid --set=root 01CD7BB998DB0870
      fi
      loopback loop0 /ubuntu/disks/root.disk
      set root=(loop0)
      echo    'Loading Linux 3.5.0-19-generic ...'
      linux   /boot/vmlinuz-3.5.0-19-generic root=UUID=01CD7BB998DB0870 loop=/ubuntu/disks/root.disk ro   quiet splash $vt_handoff
      echo    'Loading initial ramdisk ...'
      initrd  /boot/initrd.img-3.5.0-19-generic
  }
  menuentry 'Ubuntu, with Linux 3.5.0-19-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.5.0-19-generic-recovery-fc296be2-8c59-4f21-a3f8-47c38cd0d537' {
      insmod gzio
      insmod ntfs
      set root='hd0,msdos5'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  01CD7BB998DB0870
      else
        search --no-floppy --fs-uuid --set=root 01CD7BB998DB0870
      fi
      loopback loop0 /ubuntu/disks/root.disk
      set root=(loop0)
      echo    'Loading Linux 3.5.0-19-generic ...'
      linux   /boot/vmlinuz-3.5.0-19-generic root=UUID=01CD7BB998DB0870 loop=/ubuntu/disks/root.disk ro recovery nomodeset 
      echo    'Loading initial ramdisk ...'
      initrd  /boot/initrd.img-3.5.0-19-generic
  }
}

### END /etc/grub.d/10_lupin ###

menuentry 'Linux, with Linux core repo kernel' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-true-0f490b6c-e92d-42f0-88e1-0bd3c0d27641'{
  load_video
  set gfxpayload=keep
  insmod gzio
  insmod part_msdos
  insmod ext2
  set root='hd0,msdos8'
  if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8  0f490b6c-e92d-42f0-88e1-0bd3c0d27641
  else
    search --no-floppy --fs-uuid --set=root 0f490b6c-e92d-42f0-88e1-0bd3c0d27641
  fi
  echo  'Loading Linux core repo kernel ...'
  linux /boot/vmlinuz-linux root=UUID=0f490b6c-e92d-42f0-88e1-0bd3c0d27641 ro  quiet
  echo  'Loading initial ramdisk ...'
  initrd  /boot/initramfs-linux.img
}
menuentry 'Linux, with Linux core repo kernel (Fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-fallback-0f490b6c-e92d-42f0-88e1-0bd3c0d27641' {
  load_video
  set gfxpayload=keep
  insmod gzio
  insmod part_msdos
  insmod ext2
  set root='hd0,msdos8'
  if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8  0f490b6c-e92d-42f0-88e1-0bd3c0d27641
  else
    search --no-floppy --fs-uuid --set=root 0f490b6c-e92d-42f0-88e1-0bd3c0d27641
  fi
  echo  'Loading Linux core repo kernel ...'
  linux /boot/vmlinuz-linux root=UUID=0f490b6c-e92d-42f0-88e1-0bd3c0d27641 ro  quiet
  echo  'Loading initial ramdisk ...'
  initrd  /boot/initramfs-linux-fallback.img
}

2. lsblk

NAME    MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda       8:0    0 931.5G  0 disk 
├─sda1    8:1    0  39.2M  0 part 
├─sda2    8:2    0  19.8G  0 part 
├─sda3    8:3    0 205.1G  0 part 
├─sda4    8:4    0     1K  0 part 
├─sda5    8:5    0 333.7G  0 part /host
├─sda6    8:6    0 233.4G  0 part 
├─sda7    8:7    0 100.4G  0 part 
├─sda8    8:8    0   100M  0 part 
├─sda9    8:9    0  14.7G  0 part 
├─sda10   8:10   0  21.4G  0 part 
└─sda11   8:11   0     3G  0 part 
sr0      11:0    1  1024M  0 rom  
loop0     7:0    0    29G  0 loop /

3. blkid

/dev/loop0: UUID="fc296be2-8c59-4f21-a3f8-47c38cd0d537" TYPE="ext4" 
/dev/sda1: SEC_TYPE="msdos" LABEL="DellUtility" UUID="5450-4444" TYPE="vfat" 
/dev/sda2: LABEL="RECOVERY" UUID="78C4FAC1C4FA80A4" TYPE="ntfs" 
/dev/sda3: LABEL="OS" UUID="DACEFCF1CEFCC6B3" TYPE="ntfs" 
/dev/sda5: UUID="01CD7BB998DB0870" TYPE="ntfs" 
/dev/sda6: UUID="01CD7BB99CA3F750" TYPE="ntfs" 
/dev/sda7: LABEL="Windows 8" UUID="01CDBFB52F925F40" TYPE="ntfs" 
/dev/sda8: UUID="cdbb5770-d29c-401d-850d-ee30a048ca5e" TYPE="ext2" 
/dev/sda9: UUID="0f490b6c-e92d-42f0-88e1-0bd3c0d27641" TYPE="ext2" 
/dev/sda10: UUID="2e7682e5-8917-4edc-9bf9-044fea2ad738" TYPE="ext2" 
/dev/sda11: UUID="6081da70-d622-42b9-b489-309f922b284e" TYPE="swap

Any help is appreciated smile

Last edited by ameyjah (2012-12-19 14:20:25)

Offline

#2 2012-12-19 03:24:06

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,675

Re: Would I be able to load Arch from wubi based grub [solved]

If sda8 is a separate boot partition for Arch, you don't need /boot for the linux and initrd lines in the grub entry. E.g.

...
linux /vmlinuz-linux root=UUID=0f490b6c-e92d-42f0-88e1-0bd3c0d27641 ro  quiet
...
initrd  /initramfs-linux-fallback.img
...

Removing "quiet" will result in more informative failures. (There are debug options which will get even more info.)


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Offline

#3 2012-12-19 03:59:05

ameyjah
Member
Registered: 2011-12-19
Posts: 12

Re: Would I be able to load Arch from wubi based grub [solved]

Thanks Crf.
That solved my problem.

Offline

#4 2012-12-19 05:32:15

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,273

Re: Would I be able to load Arch from wubi based grub [solved]

ameyjah, please mark this thread [SOLVED].


To know or not to know ...
... the questions remain forever.

Offline

Board footer

Powered by FluxBB