Site Map - skip to main content - dyslexic font - mobile - text - print

Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes Monday through Friday.


The passing of FiftyOneFifty

It is with deep sadness we announce that another of our hosts and friends Donald Grier, known to us as FiftyOneFifty, has passed away.

FiftyOneFifty's frat brother Randy Hall has written an lovely piece. The team at Linuxlugcast are preparing our own tribute if you want to contribute an audio file you can email Honkeymagoo or join the show.

Our thoughts go out to his friends and family at this difficult time.


hpr1228 :: Utilizing Maximum Space on a Cloned BTRFS Partition

Using the Btrfs Utility to make use of the entirety of a cloned disk

<< First, < Previous, Latest >>

Host Image
Hosted by FiftyOneFifty (R.I.P.) on 2013-04-17 is flagged as Explicit and is released under a CC-BY-SA license.
Tags: Btrfs,CloneZilla,"Btrfs Utility".
Listen in ogg, spx, or mp3 format. | Comments (1)

Utilizing Maximum Space on a Cloned BTRFS Partition

by FiftyOneFifty

  1. If you clone a disk to a disk, Clonezilla will increase (decrease) the size of each partition proportional to the relative size of the drives.
    1. I wanted to keep my / the same size and have no swap (new drive was SSD), so I did a partition to partition clone instead
    2. Created partitions on the new SSDs with a GParted Live CD, 12Gb root (Ext4) and the remainder for /home, (btrfs, because I planned to move to SSD from the start, and last summer only btrfs supported TRIM)
  2. After cloning /dev/sda1 to /dev/sdb1 and /dev/sda2 to /dev/sdb2 using Clonezilla, I inspected the new volumes with the GParted Live CD
    1. /dev/sdb2 had 40% inaccessible space, i.e., the usable space was the same size as the old /home volume
    2. GParted flagged the error and said I could correct it from the menu (Partition->Check) but btrfs doesn't support fsck, so it didn't work
    3. Tried shrinking the volume in GParted and re-expanding it to take up the free space, also didn't work.
  3. Discovered 'btrfs utility' and that it was supported by the GParted Live CD
    1. Make a mount point
      • sudo mkdir /media/btrfs
    2. Mount the btrfs volume
      • sudo mount /dev/sdb2 /media/btrfs
    3. Use btrfs utility to expand the btrfs file system to the maximum size of the volume
      • sudo btrfs filesystem resize max /media/btrfs
    4. Unmount the btrfs volume
      • sudo umount /dev/sdb2
  4. Rechecked /dev/sdb2 with GParted, I no longer had inaccessible space

Comments

Subscribe to the comments RSS feed.

Comment #1 posted on 2013-04-25T12:32:10Z by pokey

Nice one

Thanks for keeping the network alive, 5150, and for doing it with style. :)

<< First, < Previous, Latest >>

Leave Comment

Note to Verbose Commenters
If you can't fit everything you want to say in the comment below then you really should record a response show instead.

Note to Spammers
All comments are moderated. All links are checked by humans. We strip out all html. Feel free to record a show about yourself, or your industry, or any other topic we may find interesting. We also check shows for spam :).

Provide feedback
Your Name/Handle:
Title:
Comment:
Anti Spam Question: What does the P in HPR stand for ?
Are you a spammer →
Who hosted this show →
What does HPR mean to you ?