LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-27-2012, 09:44 AM   #1
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,577
Blog Entries: 31

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Unexpected GRUB 1.99 behaviour: feature or bug?


After creating two LVs (called root and root2), formatting them and loading them with all but /srv and /var, I ran grub-mkconfig > /boot/grub/grub.cfg. It detected both OS file sytems:
Code:
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-5-amd64
Found initrd image: /boot/initrd.img-2.6.32-5-amd64
Found Debian GNU/Linux (6.0) on /dev/mapper/VG2-root
Found Debian GNU/Linux (6.0) on /dev/mapper/VG2-root2
So far so good but it did not use the root2 file system on the root= kernel parameter. Here's the relevant excerpt from /boot/grub/grub.cfg (recovery stanzas omitted for simplicity):
Code:
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Debian GNU/Linux, with Linux 2.6.32-5-amd64 (on /dev/mapper/VG2-root)" {
	insmod part_msdos
	insmod ext2
	set root='(/dev/sdb,msdos1)'
	search --no-floppy --fs-uuid --set ed3a5ef7-4289-4b5f-b9fa-e860d63502eb
	linux /vmlinuz-2.6.32-5-amd64 root=/dev/mapper/VG2-root ro quiet
	initrd /initrd.img-2.6.32-5-amd64
}
menuentry "Debian GNU/Linux, with Linux 2.6.32-5-amd64 (on /dev/mapper/VG2-root2)" {
	insmod part_msdos
	insmod ext2
	set root='(/dev/sdb,msdos1)'
	search --no-floppy --fs-uuid --set ed3a5ef7-4289-4b5f-b9fa-e860d63502eb
	linux /vmlinuz-2.6.32-5-amd64 root=/dev/mapper/VG2-root ro quiet
	initrd /initrd.img-2.6.32-5-amd64
}
### END /etc/grub.d/30_os-prober ###
Is it a feature or a bug that the part in red above is not VG2-root2?
 
Old 05-28-2012, 01:59 AM   #2
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Have you tried placing booting both Os'es & placing a different file in either to see if they are indeed 2 seperate roots?
 
Old 05-28-2012, 02:38 AM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,577

Original Poster
Blog Entries: 31

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Thanks EDDY1

I know they are different because the are on different LVM LVs and, more, I deleted the contents of one while running Debian from the other (as part of loading it from a third OS file system).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
unexpected behaviour of cp (ext3?) sarin Linux - Software 2 02-11-2009 01:34 PM
Unexpected behaviour on PC. Gone now but worrying paul123 Linux - Security 3 02-15-2007 04:09 AM
unexpected chmod behaviour ruzle0 Linux - Newbie 2 11-28-2005 03:06 PM
Unexpected behaviour with the find command dazdaz Linux - General 3 12-15-2004 09:50 PM
bug or feature? Gunnyman Linspire/Freespire 5 03-06-2004 04:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration