GRUB 1.99 Released With Support For ZFS and BtrFS
kthreadd writes "GNU GRUB has been updated to version 1.99. Among the many improvements are support for two new filesystems, BtrFS and ZFS. For Linux users this means that it's now possible to move to BtrFS entirely and not use it only for non-bootable volumes."
So is BtrFS reliable enough for a stable Linux distro? Or will it be ignored in favor of Ext4?
I was just wondering when we'd get support for ZFS, now that I can install GRUB2 on FreeBSD. Now, next chance I get, I can reinstall the various OSes on my computer and hopefully create a situation where I can triple boot things.
right, but then why would anyone actually use BtrFS anyway? Maybe things have changed, but my last experience with it went kind of like this:
Hmmm...Ahhhh...hey, cool?!AAAHHH!!!!OMGWTFZOMBIES?!?! (reload software)
Until it supports booting from paper tape or punch card, I'm not going to trust it 100%
Karma: Excellent. 15 moderator points expire sometime.
My distro ditched LILO a while ago and I miss it terribly. A simple conf file. What more could you ask?
I know about ZFS (somewhat), but what's the big appeal of Ext4 and BtrFS ? Cool that Grub can boot from them, but do they confer any tangible benefits for desktop users ?
For personal use, I care about two things:
1. How safe is my data
2. How quickly can I access it
Ext3 seems to address both concerns quite acceptably, so what do these newer filesystems do better ? And why would anyone want to use that on their boot partition ?
-Billco, Fnarg.com
I like having the ability to wipe out and redo any partition without ruining my ability to boot into my other partitions. I typically multi-boot 3 or 4 partitions so this matters to me.
So I always use an independent boot manager like GAG or PLOP that can boot just about anything else and is drop dead simple to reconfigure. Each partition gets it's own favorite PARTITION boot manager, Grub for Linux, BCD for Windows, etc...
- For the complete works of Shakespeare: cat
Hmm, last time I checked if you want to use ZFS on Linux, you need to run it in userspace (FUSE) or as a add on kernel module. I wonder how that would tie in with this latest GRUB. It seems that those restrictions could make it hard to boot from. Regardless, I'm happy with ZFS on OpenIndiana, it's a great file server.
So you can boot a live CD and fix grub just like you did with lilo. It would save you a lot of time posting complaints about it on forums.
I was promised a flying car. Where is my flying car?
At what point does GRUB become more of an OS than a bootloader? Adding multiple file system support seems odd. I understand the reason, but in principle you want the boot loader to be small, not constantly incorporating operating system features. Is there some problem with having a small boot partition that can only be formatted one way? The same issue happened with X.org where it gained memory management, font handling, etc - lots of stuff beyond just being a window system. The same also happened with MESA when it started getting hardware acceleration (for a soft implementation of OpenGL). The same feature creep is also happening with BIOS. Some of these projects need to define what they are and stick to that IMHO. Otherwise, we can just merge GRUB into the kernel and put the whole thing into the flash normally used for BIOS ;-) Maybe not a bad thing ( I think it's bad ) but certainly not 3 distinct software components.
Comment removed based on user account deletion
Comment removed based on user account deletion
GRUB 2 at 1.99 *brain explodes*
Your hair look like poop, Bob! - Wanker.
I would probably switch from Ext4 to BtrFS if it had full Gparted support.
Blah blah blah, it's better than LILO, or whatever.
GRUB Fucking sucks. Burn the software and hang the developers. I hate it.
This is really cool. Now when one of these filesystems becomes stable in Linux, we'll be ready to go. Look out 2025--here I come!
The update is quite good; but seriously ... 1.99? What happens if you find a critical bug - you'll have to go 1.991... when does the insanity end?!
BtrFS is definitely coming along nicely, and I'm not offering this as trollbait. But there are NO RECOVERY TOOLS THAT UNDERSTAND BTRFS. It's not worth having it as your root partition until you have the ability to do data recovery should anything go wrong. I spent the whole weekend rebuilding a partition table and had to find the magic salt of the partitions with a sector editor because no partition recovery tools can recognize btrfs partitions so that I could finish my exodus back to EXT4. (long story short I was resizing the btrfs partition with fdisk and miswrote the starting sector). Btrfs has great read performance, and I'll miss the LZO compression of small files and the space I was saving. But write/fsync performance SUCKED especially when I was running synaptic. I wouldn't discourage anyone from using it, just don't rely on it as your root partition. I should also add that while rsync'ing the files from my btrfs to my ext4 partition, I had to start over several times because of kernel panics. It's just not stable yet. Move along.
Has this been addressed in the new version?
I've actually been running the system I'm typing from with Btrfs on the root partition for some time now. Since I always have an ext2 /boot partition, I didn't have to worry about this.
I still wouldn't recommend using Btrfs for / unless you have a separate /home partition, though: there is not yet any fsck.btrfs! In addition to a separate /home partition, I'd recommend having another Linux install with ext4 alongside it, so if something does go wrong with your Btrfs partition, you can boot a fully functional OS without having to reach for a LiveCD. That said, the Btrfs filesystem has handled several hard shutdowns without issue (there's some problem with my Nvidia graphics card that's been causing intermittent/unpredictable hard freezes, impervious even to the Magic Sysrq key).
The cool thing about using Btrfs for the root partition on an ordinary system (this is why I'm trying it) is for fast, transparent filesystem compression. I have an OLPC XO-1, and a bootable FSF membership card, neither of which has much free space. The traditional solution to such space issues is to have a SquashFS (read-only) root partition to save space, and use a persistence file to store changes. But if the changes become too great, the persistence file will reach the size of the partition that holds it, and you have to recreate the SquashFS image to start using the system again. While the compression factor isn't quite as good for Btrfs compression (it can do gzip and lzo), it's still very handy when trying to get a full system into 2GB, and it lets you have read-write access with good performance, too.
I still wouldn't recommend using Btrfs for / unless you have a separate /home partition, though: there is not yet any fsck.btrfs!
Wrong, I think it was recently added, I can see it right now in my copy of btrfs-progs on Fedora 14: rpm -q --list btrfs-progs | grep fsck /sbin/btrfsck /usr/share/man/man8/btrfsck.8.gz
For Linux users this means that it's now possible to move to BtrFS entirely and not use it only for non-bootable volumes.
Booting Linux from btrfs has been possible since the release of syslinux 4.0 in mid-2010.
From the actual announcement, it appears that btrfs is NOT supported for direct booting, but simply to be recognized by grub-probe, and a separate /boot is still required to have btrfs as the root fs.
"Add `grub-probe' support for the btrfs filesystem, permitting / to reside on btrfs as long as /boot is on a filesystem natively supported by GRUB."
One of my favourite parts of ditching Ubuntu for Slackware these days is that it boots with LiLo instead.
In my 27 years of screwing around with computers, no piece of software has fucked me in the ass more times than GRUB. This includes everything from Commodore, Atari, Microsoft, Sun Microsystems, Apple, etc. Maybe I'm just doing it wrong or something, I dunno. But sometimes I wouldn't do anything, and it would just randomly mash the MBR on the Windows drive, unprovoked. Or sometimes chainloading works, sometimes it doesn't.
LiLo on the other hand, was always simple, elegant and very straightforward to set up and maintain.
"Tools should do one thing, and do it well."
That is both a hilarious joke and a very insightful take on the progression of GRUB; from my perspective, GRUB seems to be getting a little complicated for a bootloader. It's starting to make me nostalgic for LILO and Loadlin...
SCREW THE ADS! http://adblock.mozdev.org/ Proud user of teh Fox of Fire - Registered Linux User #289618
It's also here on my installation of Ubuntu Natty, but it still doesn't actually _fix_ any errors, although it's happy to tell you about them. :-P
But it is good to see that it exists in some form by now. :-)
ZFS has bunch of features that others lack (Btrfs might become ZFS replacement in the future, say 10 years from now). ZFS has copy on write, instant snapshots, end to end checksums, deduplication, raidz, stuff etc. all integrated well together.
It was designed for for huge filesystems, but I have adopted it to home and small office file servers too (I use OpenSolaris as fileserver OS only because of ZFS), it just makes management and reliability so much easier to achieve.
It was added some time back, but don't forget about being able to boot from RAID5! Most people that I run into still don't know that you can do this. I've been doing it for awhile and it's great for my five-disk home server and a cheapy 4-disk 1U server system I have out in a colocate.