Auto-mount ext4 partitions at startup by modifying fstab or something else

Asked by cmd

 Hi,I want to add some ext4 partitions in fstab,to be auto-mounted at startup.The command is :"echo '/dev/disk/by-uuid/16b93907-de0b-46b3-8a25-46afe4ab019d /media/linuxmint/CUBIC auto nosuid,nodev,nofail,x-gvfs-show 0 0' | tee --append /etc/fstab" ,for every partition(of course the uuids and names will be different for every partition).I've done this in Cubic's terminal ,and verified with nano if it was written in /etc/fstab ,and it was.But after the ISO was created ,when I checked it by booting it , the /etc/fstab from the IISO was like a new one ,not containing things added by me in Cubic.So , how to make ext4 partitions auto-mouted in a customized ISO ,through fstab or any other method?

Question information

Language:
English Edit question
Status:
Answered
For:
Cubic Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Cubic PPA (cubic-wizard) said (last edit ):
#1

fstab gets written based on your selections in the Ubiquity installer.

OPTION 1
----------------
On the "Installation Type" screen, select "Something else" radio button.
Then on the next screen, for each existing partition, select the file system type, indicate if you want to (re)format the partition, and supply the mount point (such "/media/linuxmint/CUBIC").
After doing this, Ubiquity will write your selections to fstab during installation.

OPTION 2
----------------
You may be able to use preseed-ing.
However, this approach forces your disk to be repartitioned according to the specifications in the preseed file.
You can not use existing partitions when preseeding. (This may be OK for you if you don't have any data on the existing partitions on you disk).

Take a look at section B.4.8 of...
https://help.ubuntu.com/lts/installation-guide/s390x/apb.html

OPTION 3
----------------
Create a shell script to mount your partitions.
Launch the script upon login using an autostart file.

Take a look at the following question on creating an autostart script...
https://answers.launchpad.net/cubic/+question/697440

Can you help with this problem?

Provide an answer of your own, or ask cmd for more information if necessary.

To post a message you must log in.