DarkMorford
October 29th, 2012, 08:41 PM
I'm trying to set up a 12.04.1 Live environment with persistence on my flash drive. I can boot into the system without any problem, but I haven't been able to use casper-snapshot to set up the persistence file.
According to the manpage, casper-snapshot pulls from /cow by default. However, I can't access /cow to take a snapshot of it. If I look at /proc/mounts, I can clearly see that there is a tmpfs filesystem mounted at /cow. But /cow is then mounted at / as part of an overlayfs setup, so it's not accessible in the root filesystem.
rootfs / rootfs rw 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
udev /dev devtmpfs rw,relatime,size=1987088k,nr_inodes=208218,mode=75 5 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode= 000 0 0
tmpfs /run tmpfs rw,nosuid,relatime,size=797904k,mode=755 0 0
/dev/sdc2 /cdrom ext3 ro,noatime,errors=continue,user_xattr,acl,barrier= 1,data=ordered 0 0
/dev/loop0 /rofs squashfs ro,noatime 0 0
tmpfs /cow tmpfs rw,noatime,mode=755 0 0
/cow / overlayfs rw,relatime,lowerdir=//filesystem.squashfs,upperdir=/cow 0 0
none /sys/fs/fuse/connections fusectl rw,relatime 0 0
none /sys/kernel/debug debugfs rw,relatime 0 0
none /sys/kernel/security securityfs rw,relatime 0 0
tmpfs /tmp tmpfs rw,nosuid,nodev,relatime 0 0
none /run/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k 0 0
none /run/shm tmpfs rw,nosuid,nodev,relatime 0 0
gvfs-fuse-daemon /home/ubuntu/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev,relatime,user_id=999,group_id=999 0 0
/dev/sdc1 /media/SMORFORD vfat rw,nosuid,nodev,relatime,uid=999,gid=999,fmask=002 2,dmask=0077,codepage=cp437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remou nt-ro 0 0
How can I get at the /cow tmpfs in order to make a snapshot?
According to the manpage, casper-snapshot pulls from /cow by default. However, I can't access /cow to take a snapshot of it. If I look at /proc/mounts, I can clearly see that there is a tmpfs filesystem mounted at /cow. But /cow is then mounted at / as part of an overlayfs setup, so it's not accessible in the root filesystem.
rootfs / rootfs rw 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
udev /dev devtmpfs rw,relatime,size=1987088k,nr_inodes=208218,mode=75 5 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode= 000 0 0
tmpfs /run tmpfs rw,nosuid,relatime,size=797904k,mode=755 0 0
/dev/sdc2 /cdrom ext3 ro,noatime,errors=continue,user_xattr,acl,barrier= 1,data=ordered 0 0
/dev/loop0 /rofs squashfs ro,noatime 0 0
tmpfs /cow tmpfs rw,noatime,mode=755 0 0
/cow / overlayfs rw,relatime,lowerdir=//filesystem.squashfs,upperdir=/cow 0 0
none /sys/fs/fuse/connections fusectl rw,relatime 0 0
none /sys/kernel/debug debugfs rw,relatime 0 0
none /sys/kernel/security securityfs rw,relatime 0 0
tmpfs /tmp tmpfs rw,nosuid,nodev,relatime 0 0
none /run/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k 0 0
none /run/shm tmpfs rw,nosuid,nodev,relatime 0 0
gvfs-fuse-daemon /home/ubuntu/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev,relatime,user_id=999,group_id=999 0 0
/dev/sdc1 /media/SMORFORD vfat rw,nosuid,nodev,relatime,uid=999,gid=999,fmask=002 2,dmask=0077,codepage=cp437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remou nt-ro 0 0
How can I get at the /cow tmpfs in order to make a snapshot?