Skip to content

Instantly share code, notes, and snippets.

@ss23
Created October 24, 2011 22:04
Show Gist options
  • Save ss23/1310475 to your computer and use it in GitHub Desktop.
Save ss23/1310475 to your computer and use it in GitHub Desktop.
Crisp ss23 # hdparm -r /dev/sdf2
/dev/sdf2:
readonly = 0 (off)
Crisp ss23 # btrfsck /dev/sdf2
found 2394718208 bytes used err is 0
total csum bytes: 1930568
total tree bytes: 417816576
total fs tree bytes: 398311424
btree space waste bytes: 113042195
file data blocks allocated: 1989308416
referenced 1971613696
Btrfs Btrfs v0.19
Crisp ss23 # mount -w /dev/sdf2 /mnt/new_root/
mount: block device /dev/sdf2 is write-protected but explicit `-w' flag given
Crisp ss23 # mount /dev/sdf2 /mnt/new_root/
mount: block device /dev/sdf2 is write-protected, mounting read-only
Crisp mnt # mount -t btrfs /dev/sdf2 /mnt/new_root -o remount,rw
mount: /mnt/new_root not mounted already, or bad option
Crisp mnt # umount /mnt/new_root/
umount: /mnt/new_root/: not mounted
Crisp mnt #
@ss23
Copy link
Author

ss23 commented Oct 24, 2011

Btrfs Btrfs v0.19

Version info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment