LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Blogs > Kenny the one-teen comittee to stamp out Proprietary $uckware
User Name
Password

Notices

I decided to post a little introduction to myself here: Ask me who I was last March, and I would have had WinBloze 7 Beta on my main computer and would have been part of Micro$uck's test project for WinBloze 7 and would have been excited about it. However, that changed as soon as my network adapter changed and the new one worked with Linux. As soon as I tested the new adapter with Mint (I'd say about a year ago, in July 2009) I began to really value Linux for what it is.

However, I knew about Linux long before that. I started with gOS 2, which was my first distro. I had tried it back in about February 2008. I first learned about Linux back in mid-2007, from an article in PCMag that spanned several pages. I had quite a hard time back then, and Ubuntu Hardy was no different than gOS.

So then what took me so long from knowing about Linux to finally becoming an active user? My house was nothing but Wi-Fi. My mother set a secure wireless network up back then, and I couldn't connect to it because my adapter (Linksys WUSB54GSC) wasn't recognized by Linux. I had the patience to continue.

Then, in June 2008, my family got hit by the economic collapse here in the USA: The mortgage on my old house doubled and my family had to leave because of the rate increase. So, we were stuck in a hotel room until my family and I could end up in a new house. That Christmas, I wanted a netbook, and got my wish (the one I'm typing on, an Acer Aspire One AOA110-1545). It came with Linux preinstalled, and I liked it all around.

From then to June 2009, I still had WinBloze on my desktop, as Linux still didn't work with my wireless network adapter. Then, in June 2009 as I said, I got a new wireless network adapter, and in July decided to test it with Linux Mint 7. It worked, even from the Live CD! Now,

Rate this Entry

Ubuntu Btrfs HowTo

Posted 07-05-2010 at 06:43 PM by Kenny_Strawn

BTRFS is a highly featured file system originally developed by Oracle that supports the following features:
  • Extent-based file storage (with a maximum file size of 2^64 B)
  • Space-efficient packaging of small files
  • Space-efficient indexed directories
  • Dynamic iNode allocation
  • Writable snapshots
  • Subvolumes (multiple file system roots that exist inside the main root)
  • Object-level mirroring and striping
  • Checksums on data and metadata (multiple algorithms)
  • File and directory compression (without having to use archives)
  • Integrated multiple device (RAID) support (multiple algorithms)
  • Online btrfsck
  • Very fast offline btrfsck
  • Efficient incremental backup and FS mirroring
  • Online btrfsdefrag

Ubuntu 10.10 Alpha 2 already has BTRFS support in the Alternate CD, but Live CD support probably won't be until Alpha 3.

To enable it in Lucid Lynx from the Live CD:
  1. Install the btrfs-tools package from the Live CD environment:

    Code:
    [ubuntu@ubuntu:~]$ sudo apt-get install btrfs-tools
  1. Click on the desktop icon that says "Install Ubuntu 10.04 LTS" and follow the instructions.
  1. When you get to the disk partitioning step, click "Edit partitions manually (advanced)" and click Next. Set up the disk partitioner this way:

    In the first few GB on the left of your hard drive (say 10 GB) create a separate partition (/dev/sda1) as Ext2 and, for the mount point, /boot. This being because GRUB does not recognize BTRFS as a file system to boot from (GRUB will say "Error: Unknown Filesystem"). Then, format the rest of the drive (/dev/sda2) as ext4. This will be converted to BTRFS later on.
  1. Install Ubuntu, and when the install finishes, select "Continue testing". Then, open a terminal and type:

    Code:
    sudo btrfs-convert /dev/sda2
    This will convert your drive over to BTRFS without reformatting.
  1. You need to update /etc/fstab on the first HDD to recognize /dev/sda2 as btrfs:

    Code:
    sudo mkdir /media/sda2 && sudo mount -t btrfs /dev/sda2 /media/sda2 && sudo chroot /media/sda2 && gedit /etc/fstab
    You would change the /dev/sda2 value to btrfs.
  1. Finally, update GRUB and install btrfs-tools on your first HDD to finish it off:

    Code:
    update-grub && apt-get install btrfs-tools && exit

Now you can reboot and enjoy your new BTRFS installation!
Posted in Uncategorized
Views 13507 Comments 4
« Prev     Main     Next »
Total Comments 4

Comments

  1. Old Comment
    Installing a Btrfs-based Ubuntu 10.10 installation right now, and the installation speed on my 8GB SSD is incredible. It only took about 5 minutes to get 86% complete. Incredible!

    Edit: I also found out that the 10.10 Live CD installer also includes support for BTRFS.
    Posted 07-05-2010 at 07:47 PM by Kenny_Strawn Kenny_Strawn is offline
    Updated 07-05-2010 at 07:48 PM by Kenny_Strawn
  2. Old Comment
    Quote:
    Code:
    sudo btrfs-convert /dev/sda2
    The part in bold could wildly vary depending on your hardware and the partition scheme you chose.
    Posted 08-03-2010 at 03:19 PM by MTK358 MTK358 is offline
  3. Old Comment
    Quote:
    In the first few GB on the left of your hard drive (say 10 GB) create a separate partition (/dev/sda1) as Ext2 and, for the mount point, /boot.
    Holy Jehoshaphat! 10GB? More like 100MB (as in megabytes). A linux boot partition larger than 512MB is a waste of space! Even Fedora, which uses a booting image in the boot partition for release upgrades doesn't require more than that.

    I recommend using ext3 or ext4 (if grub supports it, as GRUB2 does) in case you crash while creating an initrd; it gives you a better chance of having a bootable kernel next time you boot up the box.
    Posted 09-27-2010 at 01:09 PM by vorbote vorbote is offline
    Updated 09-28-2010 at 11:37 AM by vorbote (Wrote 512KB meaning 512 MB)
  4. Old Comment
    Yeah, this blog post is quite outdated now that 10.10 is getting ready for release. Ubuntu 10.10 supports btrfs in the installer (in the advanced partitioner) just fine, allowing you to format a btrfs partition during installation (though you still need a separate /boot partition).
    Posted 09-27-2010 at 06:30 PM by Kenny_Strawn Kenny_Strawn is offline
 

  



All times are GMT -5. The time now is 11:27 PM.

Main Menu
Advertisement

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration