LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   update-grub does not include btrfs linux os partition (http://www.linuxquestions.org/questions/linux-newbie-8/update-grub-does-not-include-btrfs-linux-os-partition-912381/)

masuch 11-07-2011 04:46 PM

update-grub does not include btrfs linux os partition
 
Hi,

Every time when I run update-grub it did not include os linux ubuntu installed on BTRFS partition into grub.cfg. (I have it in 40_custom file manually included).
Could anybody tell me what am I missing or how to force update-grub to generate grub.cfg including linux ubuntu installed on btrfs partition or explain why is not there ?

thank you for any clue.
M.

syg00 11-07-2011 05:22 PM

os-prober on Oneiric should have been patched to detect btrfs. I recall seeing issues raised with subvolumes. Raise a bugzilla entry.
I still use ext3 typically for /boot because of so many possible variations in my environment.

masuch 11-08-2011 06:39 PM

Quote:

Originally Posted by syg00 (Post 4518361)
os-prober on Oneiric should have been patched to detect btrfs. I recall seeing issues raised with subvolumes. Raise a bugzilla entry.
I still use ext3 typically for /boot because of so many possible variations in my environment.

Thanks to navigate me to os-prober. I have ext2 for /boot :-) I am not clear that oneiric should have been patched to detect btrfs. Is it possible to fix it by some already existing patch or is it under development ?

syg00 11-08-2011 06:59 PM

No the patch should already be included.
Go here and do as it says. It'll show us your boot configuation (nothing personal).

Forgot to mention: I just had a look at a Linux Mint system I have that has a ext3 /boot and btrfs root. Seems to work o.k. - finds Fedora which is also btrfs. This Mint is based on Debian, but I would expect all that to be similar.

O.K., cancel that comment - that Fedora system also has a separate ext3 /boot ... :doh:.

masuch 11-08-2011 08:00 PM

1 Attachment(s)
I have attached my RESULTS1.txt.
Because It is quite huge - I have a lot of my config in develop stuff there - going to describe shortly what is missing:
update-grub runs on /dev/sdc5 instance did not generated menuentry for btrfs on /dev/sde7 within /boot on /dev/sde2.
Please let me know if I should reported RESULTS1.txt on another forum ?

masuch 05-03-2012 07:57 AM

Hi,

I have upgraded btrfs to precise and it is still not possible to detect another Ubuntu instance where / is btrfs and /boot is ext2.
Is there any workaround how to persuade os_prober or something else to generate by update-grub btrfs/ext2 menuentry in grub.conf properly

thank you for any clue ?
M.

syg00 05-03-2012 08:43 AM

Sorry, just noticed this again. This is to get me subscribed to the thread again.
Will reply tomorrow.

syg00 05-03-2012 10:17 PM

Are these Ubuntu systems at the same release (Oneriic, Precise ... whatever) ?. I seem to recall I saw a situation once where this happened when I was messing with a netbook - there might be some checking code in the Ubuntu os-prober. Esy enough to check, it's just a script (or was).
I doubt it has anything to do with btrfs.

EDDY1 05-04-2012 12:08 AM

I had a quadrupal-boot system with winsxp, debian, ubuntu & ubuntu server, upon installation of ubuntu it didn,t recognize debian.
The only way I got it to work was to mount the debian partitions & run os-prober & update-grub.
I was told by syg00 os-prober wasn't necessary & found it to be true as update-grub does it.

masuch 05-04-2012 05:26 AM

Quote:

Originally Posted by syg00 (Post 4669893)
Are these Ubuntu systems at the same release (Oneriic, Precise ... whatever) ?. I seem to recall I saw a situation once where this happened when I was messing with a netbook - there might be some checking code in the Ubuntu os-prober. Esy enough to check, it's just a script (or was).
I doubt it has anything to do with btrfs.


Yes, When we posted previously longer time ago I had 4 oneiric ubuntu instances on internal hard drives.
At this moment - All ubuntu instances are precise.
I do not have another than Ubuntu instances installed (except in virtualbox, but that is not for this case :-).
At this moment I have 3 of them on internal hard drives plus 2x on USBs pendrive plus 1x usb ext hard drive plus 1x SDCard plus 2x wubi
plus now I am working on RAID 0 for 2x ext4 (ssd disk , sata disks) , btrfs , xfs , reiserfs , jfs - but they ar not booting yet.
(And not detected by update-grub either even they should be now - but it is another problem for another post , maybe :-)

masuch 05-04-2012 05:27 AM

Quote:

Originally Posted by EDDY1 (Post 4669945)
I had a quadrupal-boot system with winsxp, debian, ubuntu & ubuntu server, upon installation of ubuntu it didn,t recognize debian.
The only way I got it to work was to mount the debian partitions & run os-prober & update-grub.
I was told by syg00 os-prober wasn't necessary & found it to be true as update-grub does it.

Yes, I tried it as well many times but it does not have influence if they are mounted or not.


All times are GMT -5. The time now is 01:39 PM.