Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 6509  / 3 Years ago, sat, september 18, 2021, 6:04:07

I'm trying to add lines to my /etc/fstab file.
but the lines I add get cleared on reboot because I am using a persistent live USB stick.



I don't want a lecture. I just want to know which file writes the /etc/fstab file at restart and I want to alter that file so that I can auto mount the disk I want.



So this is not really a question but more like a request.



I am requesting the location of the file/files that are responsible for writing to or resetting /etc/fstab on restart.


More From » live-usb

 Answers
5

For my LiveUSB install with Ubuntu 11.10 (which has a casper-rw persistence loopback file), the file that worked for me to have drives mounted automatically is:



/usr/share/initramfs-tools/scripts/casper-bottom/12fstab


I added lines into that script which worked to add new drive mounts upon boot-up. The odd thing is that my /etc/fstab file does NOT reflect the drive mounts. This would seem to suggest that the /etc/fstab file is just a dummy file or something to the LiveCD setups. Not sure, but changes added to the 12fstab file DO persist.


[#43908] Monday, September 20, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
lawain

Total Points: 150
Total Questions: 106
Total Answers: 101

Location: China
Member since Mon, Aug 22, 2022
2 Years ago
lawain questions
;