DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a system installed on a BTRFS partition. I am trying to transition from a custom kernel to the standard one, but it keeps booting into initramfs. I suspect it does not have the BTRFS module which is needed.
I've researched and cannot figure out how to do this in this newfangled grub2. There is a btrfs.mod in /boot/grub but I don't know how to invoke it. And I can no longer find any evidence that mkinitrd exists.
"insmod btrfs" ?.
Looks like it should work, but I don't know if all the functionality is supported (subvolumes especially), so I keep the separate ext4 /boot out of habit.
Running the current Testing with custom kernel 3.0.0, trying to transition to regular Debian kernel 3.2. Grub 1.99-17.
Yes I have the BTRFS module in /boot/grub, but the problem is loading it which I do not think is happening. I experimented with BTRFS on this machine, and it's a real hassle to rebuild. When I do rebuild I won't use it, as it's not ready for prime time. For now I need to transition kernels.
Thanks syg00, I did it the proper way and added insmod btrfs to /etc/grub.d/40_custom and update-grub. It did indeed add it to grub.cfg. I'll test it tonight. Must go to work now.
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628
Rep:
That looks like the way to go.
However, before giving it a whack, add this type of entry to your 40_custom file, edited to your box and adding your additions to the instruction string along with the other appropiet things depending on the format used in your script.
Code:
menuentry "Squeezy on sda7" {
set root=(hd0,7)
linux /vmlinuz root=/dev/sda7 ro quiet
initrd /initrd.img
}
This is a symbolic menu entry. It just calls for the newest Debian based kernel in the defined partition. Do not know if it will help but it might if the one you are using (10_linux generated and then modified) does not.
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628
Rep:
It is simply grasping at straws. Not sure why the btrfs support is so spotty. Seems to work for some folks.
Has to be hardware related in some manner.
Could be down to a hardware matter with a half baked fs. May be that it works better on some hardware than others. Hopefully it will be stable someday soon.
I haven't tried it yet. Want to but I really would rather wait until it works with grub in some reliable way.
Same hardware I've had for years running Debian. 3.0.0 custom kernel runs fine. (BTRFS module compiled in) I tried BTRFS on a number of machines on the theory that after several years of development it should be fine. I was wrong. Now I only run it on this machine (leftover legacy) and my backup server. BTRFS is marvelous for backups with its snapshotting, and I use the server to back up all my machines with rsync through an SSH tunnel.
I thought BTRFS would be farther along by now. In retrospect I should have stuck with ZFS through FUSE.
It may be that I just have to do a complete reinstall. The machine in question is my home theater PC, and a rebuild would take days so I've been reluctant as I lose TV.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.