You are not logged in.

#1 2012-08-05 16:37:53

tompravi
Member
Registered: 2009-03-09
Posts: 2

Grub confusing disks...

I have five disks partitioned as follow :

/dev/sda1:  Windows_7 
/dev/sda2: Archlinux 
/dev/sda3: LABEL="Store-Win" UUID="84F43132F43127B6" TYPE="ntfs" 
/dev/sdb1:     Linux 
/dev/sdb2:      Linux     
/dev/sdb3:      Linux 
/dev/sdb5:     Linux 
/dev/sdb6:     Linux 
/dev/sdb7:      Linux 
/dev/sdb8:     Linux 
/dev/sdb9:     Linux 
/dev/sdb10:     Linux 
/dev/sdb11:     Linux 
/dev/sdb12:    Linux 
/dev/sdb13:     Linux 
/dev/sdb14:     Linux 
/dev/sdb15:     Linux 
/dev/sdb16:     Linux 
/dev/sdb17:     Linux 
/dev/sdb18:     Linux 
/dev/sdb19: LABEL="Linux_Store" UUID="229CDBCBB04A5EA9" TYPE="ntfs" 
/dev/sdc5: LABEL="Images" UUID="B61475E9B57C4E95" TYPE="ntfs" 
/dev/sdc6: LABEL="OP-Systems" UUID="1220DBD720DBC041" TYPE="ntfs" 
/dev/sdc7: LABEL="Store-OS-Images" UUID="99E521D6569E07DF" TYPE="ntfs" 
/dev/sdd1: LABEL="2-GB" UUID="28D5268C2741120C" TYPE="ntfs"  
/dev/sde1: LABEL="Store" UUID="01C1925990131980" TYPE="ntfs"

the output of : blkid is as follow :

/dev/sdb1: UUID="f0d631af-7db6-487c-a25a-17ce4726e147" SEC_TYPE="ext2" TYPE="ext3" 
/dev/sdb2: UUID="dd43345a-be71-4213-a48b-6d7e1cf69b48" TYPE="ext4" 
/dev/sdb3: UUID="dae485b6-0b71-42c0-bf7e-ed08f346b931" TYPE="ext4" 
/dev/sdb5: UUID="13f95869-0dae-4654-a278-c13f2cd4d882" TYPE="swap" 
/dev/sdb6: UUID="3449a4e6-0b9f-4f28-be19-5811d8279a10" TYPE="ext3" 
/dev/sdb7: UUID="41ca6dd0-85b0-457a-9763-22a287d5600e" TYPE="ext4" 
/dev/sdb8: UUID="ccadee87-cf46-4fc1-9451-662302614d58" TYPE="ext4" 
/dev/sdb9: UUID="642b36d9-0832-4f46-b455-886eba3b06d3" TYPE="ext4" 
/dev/sdb10: UUID="eaa84d6e-2091-4c14-87f1-9ca081e4de02" TYPE="ext4" 
/dev/sdb11: UUID="223da3b8-28fd-4642-9da1-df5de80466b8" TYPE="ext4" 
/dev/sdb12: UUID="ece4a642-5674-4f91-9e15-a7d27d36e6d8" TYPE="ext4" 
/dev/sdb13: UUID="8ea61f2a-ff7c-498b-bf38-0c9e4be8da39" TYPE="ext4" 
/dev/sdb14: UUID="52b469dd-8569-42ed-95ba-ceaf58902629" TYPE="ext4" 
/dev/sdb15: UUID="6ab13080-e7b8-459c-9330-315ba0862ba3" TYPE="ext4" 
/dev/sdb16: UUID="e01cd128-0d85-146b-6aa0-acfa43eb4705" SEC_TYPE="ext2" TYPE="ext3" 
/dev/sdb17: UUID="351177cf-bc09-7a6a-6277-85bf8cec00d3" SEC_TYPE="ext2" TYPE="ext3" 
/dev/sdb18: UUID="defbf9ba-059e-8fc0-87f0-6c8133be662b" SEC_TYPE="ext2" TYPE="ext3" 
/dev/sdb19: LABEL="Linux_Store" UUID="229CDBCBB04A5EA9" TYPE="ntfs" 
/dev/sda1: UUID="7CBEF651BEF60384" TYPE="ntfs" 
/dev/sda2: UUID="9f0c38a6-1ac7-4a69-b72d-dce151a13418" TYPE="ext4" 
/dev/sda3: LABEL="Store-Win" UUID="84F43132F43127B6" TYPE="ntfs" 
/dev/sdd1: LABEL="2-GB" UUID="28D5268C2741120C" TYPE="ntfs" 
/dev/sdc5: LABEL="Images" UUID="B61475E9B57C4E95" TYPE="ntfs" 
/dev/sdc6: LABEL="OP-Systems" UUID="1220DBD720DBC041" TYPE="ntfs" 
/dev/sdc7: LABEL="Store-OS-Images" UUID="99E521D6569E07DF" TYPE="ntfs" 
/dev/sde1: LABEL="Store" UUID="01C1925990131980" TYPE="ntfs" 
/dev/sr0: LABEL="ARCH_201208" TYPE="iso9660"

 

I've installed Archlinux on /dev/sda2 without a separate boot partition and the grub bootloader on /dev/sdb (My thought was to use Arch bootloader as a main bootloder and I've made an experiment)

I've installed the bootloader of every Linux_distro on the partition I've installed the distro. I boot to every Linux_Distro using "chainloader"
So I've created a 40_custom file

The old 40_custom file :

#!/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 "Windows 7 (loader) (on /dev/hda1)" { 
	insmod part_mhdos 
	insmod ntfs 
	set root=(hd0,1) 
	search --no-floppy --fs-uuid --set=root 7CBEF651BEF60384 
	chainloader +1 
} 
menuentry "Debian GNU/Linux, with Linux 2.6.32-5-amd64 (on /dev/hdb1)" { 
	set root=(hd1,1) 
	chainloader +1 
} 

menuentry "SolusOS GNU/Linux, with Linux 3.3.6-solusos (on /dev/hdb10)" { 
	set root=(hd1,10) 
	chainloader +1 
} 
menuentry "Linux Mint 13 MATE 64-bit, 3.2.0-23-generic (/dev/hdb11) (on /dev/hdb11)"  { 
	set root=(hd1,11) 
	chainloader +1 
} 
menuentry "Debian GNU/Linux Testing (on /dev/hdb12)"  { 
        set root=(hd1,12) 
	chainloader +1 
} 
menuentry "SolusOS GNU/Linux Testing (on /dev/hdb13)"  { 
	set root=(hd1,13) 
	chainloader +1 
} 
menuentry "linux (on /dev/hdb14)"  { 
	set root=(hd1,14) 
	chainloader +1 
} 
menuentry "Debian GNU/Linux, with Linux 2.6.32-5-686 (on /dev/hdb15)"  { 
	set root=(hd1,15) 
	chainloader +1 
} 
menuentry "LinuxMint GNU/Linux, with Linux 3.2.0-2-amd64 (on /dev/hdb2)"  { 
	set root=(hd1,2) 
	chainloader +1 
} 
menuentry "Linux Mint 13 Cinnamon 64-bit, 3.2.0-23-generic (/dev/hdb3) (on /dev/hdb3)"  { 
	set root=(hd1,3) 
	chainloader +1 
} 
menuentry "Ubuntu Testing (on /dev/hdb9)"  { 
	set root=(hd1,8) 
	chainloader +1 
}

I could boot only to Archlinux and Win_7 (with an error message). For the rest I had the message from grub "Error: no such partition"

I've changed the 40_custom as follow (I changed the number of the disk with linux distros as to be the /dev/sda and no the /dev/sdb):

menuentry "Windows 7 (loader) (on /dev/hda1)" { 
	insmod part_mhdos 
	insmod ntfs 
	set root=(hd0,1) 
	search --no-floppy --fs-uuid --set=root 7CBEF651BEF60384 
	chainloader +1 
} 
menuentry "Debian GNU/Linux, with Linux 2.6.32-5-amd64 (on /dev/hdb1)" { 
	set root=(hd0,1) 
	chainloader +1 
} 

menuentry "SolusOS GNU/Linux, with Linux 3.3.6-solusos (on /dev/hdb10)" { 
	set root=(hd0,10) 
	chainloader +1 
} 
menuentry "Linux Mint 13 MATE 64-bit, 3.2.0-23-generic (/dev/hdb11) (on /dev/hdb11)"  { 
	set root=(hd0,11) 
	chainloader +1 
} 
menuentry "Debian GNU/Linux Testing (on /dev/hdb12)"  { 
        set root=(hd0,12) 
	chainloader +1 
} 
menuentry "SolusOS GNU/Linux Testing (on /dev/hdb13)"  { 
	set root=(hd0,13) 
	chainloader +1 
} 
menuentry "linux (on /dev/hdb14)"  { 
	set root=(hd0,14) 
	chainloader +1 
} 
menuentry "Debian GNU/Linux, with Linux 2.6.32-5-686 (on /dev/hdb15)"  { 
	set root=(hd0,15) 
	chainloader +1 
} 
menuentry "LinuxMint GNU/Linux, with Linux 3.2.0-2-amd64 (on /dev/hdb2)"  { 
	set root=(hd0,2) 
	chainloader +1 
} 
menuentry "Linux Mint 13 Cinnamon 64-bit, 3.2.0-23-generic (/dev/hdb3) (on /dev/hdb3)"  { 
	set root=(hd0,3) 
	chainloader +1 
} 
menuentry "Ubuntu Testing (on /dev/hdb9)"  { 
	set root=(hd0,8) 
	chainloader +1 
} 

And now I can boot to everyone Linux_Distro.
After this "solution" there is no problem, but it's not normal, it's not a "solution" and I can't trust myself (I'm afraid of partitioning mistakes??) and Archlinux.
It never happened with other distros.

PS. Sorry for a so long post and for my english.

Last edited by tompravi (2012-08-05 16:46:51)

Offline

#2 2012-08-05 16:41:13

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Grub confusing disks...

tompravi wrote:

PS. Sorry for a so long post and .....

That's the reason why we have [ code ] tags. Please edit your posts and add them around your snippets


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2012-08-05 16:47:38

tompravi
Member
Registered: 2009-03-09
Posts: 2

Re: Grub confusing disks...

I hope I've understood what you mean.

Offline

Board footer

Powered by FluxBB