I know this relates to an old version of Knoppix, but after remastering the os and upgrading the kernel to 2.6.31.6 (and compiling aufs as part of that) i'm not able to remount the /ramdisk branch as read-only upon boot. Or after in init 2. If anyone can advise on this, it'd be much appreciated.
When running the script below:
/usr/sbin/knoppix-image /mnt/sda1/knoppix.img
The following line is failing:
mount -o remount,noplink,prepend:/KNOPPIX.IMG=rw,mod:/ramdisk=ro /UNIONFS
The following line succeeds fine:
mount -o remount,noplink,prepend:/KNOPPIX.IMG=rw,mod:/ramdisk=rw /UNIONFS
I get mount: /UNIONFS is busy error.
I've deleted whiteout files on /ramdisk beforehand with:
find /ramdisk -iname .wh.\*.plnk -exec rm -Rfv {} \;
I've run fuser -m -v /ramdisk and used the -k option to kill processes off.
I've also run lsof /ramdisk and killed associated processes.
Distilling the command down to the following fails:
mount -t tmpfs -o remount,ro /ramdisk /ramdisk
The following command succeeds:
mount -t tmpfs -o remount,rw /ramdisk /ramdisk
In /etc/mtab /ramdisk has mode 755 0 0.
If you can help please advise.
Western Digital WD5000AAKX 500GB 7200RPM 6Gb/s 3.5in SATA Hard Drive
$25.49
Certified Refurbished 5TB WD Elements Portable Hard Drive - RWDBU6Y0050BBK-WESN
$89.99
Hitachi Ultrastar HUA723030ALA640 3TB 7200 RPM 64MB SATA 3.0Gb/s 3.5" Hard Drive
$49.49
Seagate (Recertified) Exos X 24TB Internal Hard Drive HDD - 3.5 In CMR SATA 6Gb/
$305.99
Seagate IronWolf 12TB 7200RPM SATA 6Gb/s 256MB 3.5" NAS Hard Drive ST12000VN0007
$133.99
Fanxiang 512GB 1TB 2TB 4TB SSD 2.5'' SATA III 6Gb/s TLC Internal Hard Drive Lot
$12.99
Seagate Skyhawk AI ST12000VX0017 12TB 7200RPM 3.5" SATA 6.0Gb/s Surveillance HDD
$115.99
WD HGST Ultrastar HC520 12TB 7.2K RPM SATA 3.5" HDD HUH721212ALE601 0F29596
$108.88
Seagate Exos X20 ST20000NM003D 20 TB Hard Drive - Internal - SAS (12Gb/s SAS) -
$299.95
Seagate Exos 28TB 7.2K RPM SATA 6Gb/s 512e CMR 3.5in Recertified Hard Drive ST28
$344.09