pentoo / pentoo-livecd

stuff to generate the pentoo livecd
21 stars 8 forks source link

Cannot flushchanges #30

Open malfatti opened 5 years ago

malfatti commented 5 years ago

Hello!

I tried Pentoo and I cannot flushchanges. It was installed with sudo dd if=pentoo-amd64-hardened-2019.1.iso of=/dev/sdb bs=4096 status=progress on a 16GB flashdrive.

If I sudo flushchanges, it complains that destination is read-only:

pentoo@pentoo ~$ sudo flushchanges
Using /mnt/cdroom/modules for module storage
Could not create destination file: Read-only file system
 * Unable to create /mnt/cdrom/modules/zz_changes-00.lzm

Output of lsblk:

pentoo@pentoo ~$ lsblk
...
sdb      8:16    1 14.4G  0 disk
├─sdb1   8:17    1     2.9G  0 part /mnt/cdrom
└─sdb2   8:18    1   10.2M  0 part 
...

Output of parted:

pentoo@pentoo ~$ parted /dev/sdb print
WARNING: You are not superuser.  Watch out for permissions.
Model: Kingston DataTraveler 3.0 (scsi)
Disk /dev/sdb: 15.5GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   End     Size    Type     File system  Flags
 2      117kB   10.8MB  10.7MB  primary  fat16        esp

Then I tried creating a new partition using fdisk with the remaining space, then formatted it in ext4, created the entry on /etc/fstab and mounted it on /modules. Then, the sudo flushchanges /modules command worked perfectly and created a /modules/zz_changes-00.lzm. The problem is that it is not loaded on boot!

How can I make my changes persistent?

Cheers and thanks a lot for Pentoo :)

Wuodan commented 4 years ago

I used Rufus on Windows to write the usb stick. In Rufus, I reserved some space to store things across reboots (hidden in advanced settings). Then flushchanges works for me. I remember flushchanges not working when I used dd to write the usb stick.

ZeroChaos- commented 4 years ago

@Wuodan is your changes saving on the same partition, or a separate one like the bug reporter?

Wuodan commented 4 years ago

@ZeroChaos- nope it does not and thus my above comment is not worth much, thanks. The contents of the iso are on /dev/sdb1 and flushchanges saves to that partition too, /dev/sdb2 remains unused.