Crap Nullpointer Exceptions

This is the blog of John Dulaney, a hacker of Fedora, SCAdian, player of Music, blacksmith, sailor, and consumer of Bacon.

Mucking about with btrfs

Today I changed one of my partitions over to btrfs (1)(2).  At first I had trouble getting mkfs to work, but then it was pointed out to me that the tools to actually do btrfs are not installed by default unless the filesystem is selected at install time (thanks fenrus02 for pointing out what should have been obvious, DOH!).

So far, I’ve had no issues and I have dumped a good 11 GB on it.

For those that are interested, the (very easy) steps are as follows (/dev/sda3 was the partition I used):

  1. su –      (easier to just do this since there are several steps that require root permission)
  2. yum install btrfs-progs
  3. umount /dev/sda3
  4. mkfs -t btrfs /dev/sda3
  5. blkid to get the new uuid for the drive
  6. edit /etc/fstab to automatically mount where I wanted it (include the new uuid and, in my case, replace ext4 with btrfs)
  7. mount /dev/sda3 /home/jdulaney/Media
  8. You may need to edit the permissions for Media (or whatever mount point you go with)
  9. You’re done!

So far, I’ve had zero errors, and I’ll probably start converting the rest of my file system shortly.





4 responses to “Mucking about with btrfs

  1. Nushio May 28, 2011 at 10:20 pm

    Nice! I’ll probably migrate my laptop over to Btrfs sooner rather than later, too.

  2. pankaj May 29, 2011 at 4:54 am

    I’d still not recommend people to move over to btrfs yet, not until it gets some sort of fsck which is able to fix problems. I was using btrfs since a few releases, but a few months back my installation got completely borked because of a forced poweroff using power button. The partition was completely unusable and btrfsck was unable to do anything about it. There was no way to retrieve any data from it. Luckily it was a rawhide partition and so i did not lose much, but this made me wary of switching to btrfs in my F15 install.

    In short: Keep btrfs for testing on non-essential partitions only until btrfsck is able to handle errors

    • jdulaney May 29, 2011 at 6:44 pm

      Good points Most of my data (and all essential data) is on an ext4 partition. I also do regular backups, so I’m not worried about losing data. If / gets too mommicked, I can just do a reinstall.

      Of course, my perspective here is that as I’m QA, I will continue using experimental stuff.

  3. Pingback: Links 31/5/2011: Linaro Milestones, Ricoh Makes Linux Tablets | Techrights

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: