Skip to content

Instantly share code, notes, and snippets.

@thejhh
Created January 24, 2012 20:42
Show Gist options
  • Save thejhh/1672448 to your computer and use it in GitHub Desktop.
Save thejhh/1672448 to your computer and use it in GitHub Desktop.
Testing btrfs snapshots and git on ramdisk (tmpfs)
These are my notes while testing.
Ubuntu LTS 10.04 doesn't support removing btrfs snapshots. It can be fixed by installing newer btrfs.
cd /tmp
wget "http://se.archive.ubuntu.com/ubuntu/pool/main/b/btrfs-tools/btrfs-tools_0.19+20100601-3ubuntu3_i386.deb"
dpkg -i btrfs-tools_0.19+20100601-3ubuntu3_i386.deb
Mounting btrfs image:
mount -o loop /ramdisks/raw/disk0 /ramdisks/mnt/disk0
Creating snapshot:
btrfsctl -s /ramdisks/mnt/disk0/snapshot/disk0-20120124-2149 /ramdisks/mnt/disk0/data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment