[Fedora-livecd-list] Any rumors on larger persistence?
ToddAndMargo
ToddAndMargo at zoho.com
Fri Jun 6 20:37:08 UTC 2014
On 06/03/2014 08:58 AM, Frederick Grose wrote:
> On Mon, Jun 2, 2014 at 5:33 PM, ToddAndMargo <ToddAndMargo at zoho.com
> <mailto:ToddAndMargo at zoho.com>>wrote:
>
> {...}
>
> This worked:
>
> # livecd-iso-to-disk --reset-mbr --format --overlay-size-mb 6624
> --unencrypted-home Fedora-Live-Xfce-x86_64-20-1.__iso /dev/sdc
>
> # ls -al /media/LIVE/LiveOS/overlay-__LIVE*
> -rw-r--r--. 1 root root 6945767424 Jun 2 14:21
> /media/LIVE/LiveOS/overlay-__LIVE-080e62f1-2731-4790-a1eb-__48175d703185
>
>
> * UNFORTUNATELY: THE PERSISTENCE DOES NOT WORK *
>
>
> livecd-iso-to-disk --reset-mbr --format --overlay-size-mb 6624
> --unencrypted-home Fedora-Live-Xfce-x86_64-20-1.iso /dev/sdc
>
> Persistence works for me.
>
> Check dmsetup status
> and
> dmsetup table
>
> See that the live-rw snapshot has been set up on a loop device backed by
> the overlay file
> and not a temporary overlay, which would be the fallback if no overlay
> was found or it
> was unreadable.
>
> [liveuser at localhost ~]$ sudo dmsetup status
> live-base: 0 6291456 linear
> live-osimg-min: 0 6291456 snapshot 1888/1888 16
> live-rw: 0 6291456 snapshot 61432/13565952 248
>
> [liveuser at localhost ~]$ sudo dmsetup table
> live-base: 0 6291456 linear 7:3 0
> live-osimg-min: 0 6291456 snapshot 7:3 7:1 P 8
> live-rw: 0 6291456 snapshot 7:3 7:4 P 8
>
> [liveuser at localhost ~]$ sudo losetup -a
> /dev/loop0: [0001]:1557 (/osmin.img (deleted))
> /dev/loop1: [1792]:1 (/osmin)
> /dev/loop2: [2081]:261634 (/run/initramfs/live/LiveOS/squashfs.img)
> /dev/loop3: [1794]:2 (/LiveOS/ext3fs.img)
> /dev/loop4: [2081]:261637
> (/LiveOS/overlay-LIVE-90c95ea3-7acc-4bff-98f6-b9dfbfdebd6e)
>
> [liveuser at localhost ~]$ ls -lA /run/initramfs/live/LiveOS/
> total 627712
> -r-xr-xr-x. 1 root root 49005 Jun 3 10:59 livecd-iso-to-disk
> -r--r--r--. 1 root root 8192 Jun 3 10:57 osmin.img
> -rw-r--r--. 1 root root 6945767424 Jun 3 11:54
> overlay-LIVE-90c95ea3-7acc-4bff-98f6-b9dfbfdebd6e
> -r--r--r--. 1 root root 609263616 Jun 3 10:57 squashfs.img
>
> If you don't get similar results, check the system journal for errors on
> the filesystem.
Hi Fred,
Thank you for helping me with this.
From the host machine ("#" is root's prompt):
>>> note that our versions don't match <<<
I am at the mercy of EPEL. They will update to
the latest version when they do and not a moment
sooner.
Also note that persistence works fine with "liveusb-creator"
(the GUI), but that you can not get more than 4 GB
of persistence.
# fdisk -l /dev/sdc
Disk /dev/sdc: 8252 MB, 8252293120 bytes
8 heads, 28 sectors/track, 71954 cylinders
Units = cylinders of 224 * 512 = 114688 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0009d27d
Device Boot Start End Blocks Id System
/dev/sdc1 85 71954 8049440 83 Linux
# rpm -qa \*live\*
liveusb-creator-3.12.0-1.el6.noarch
livecd-tools-13.4.5-1.el6.x86_64
# livecd-iso-to-disk --reset-mbr --format --overlay-size-mb 6624
--unencrypted-home ./Fedora-Live-Xfce-x86_64-20-1.iso /dev/sd
From the Live USB:
# dmsetup status
live-base: 0 6291456 linear
live-osimg-min: 0 6291456 snapshot 1888/1888 16
live-rw: 0 6291456 snapshot 42352/1048576 176
# dmsetup table
live-base: 0 6291456 linear 7:3 0
live-osimg-min: 0 6291456 snapshot 7:3 7:1 P 8
live-rw: 0 6291456 snapshot 7:3 7:4 P 8
# losetup -a
/dev/loop0: [0001]:644 (/osmin.img (deleted))
/dev/loop1: [1792]:1 (/osmin)
/dev/loop2: [64513]:398274 (/run/initramfs/live/LiveOS/squashfs.img)
/dev/loop3: [1794]:2 (/LiveOS/ext3fs.img)
/dev/loop4: [0001]:10662 (/overlay (deleted))
# ls -lA /run/initramfs/live/LiveOS/
total 595580
-r--r--r--. 1 root root 8192 Jun 6 16:00 osmin.img
-rw-r--r--. 1 root root 6945767424 Jun 6 16:01
overlay-LIVE-c712eef2-2e8b-4d04-b5a8-3361566b8efd
-r--r--r--. 1 root root 609263616 Jun 6 16:00 squashfs.img
Do you see anything wrong?
-T
More information about the livecd
mailing list