Author Topic: Live USB and fstab changes  (Read 1595 times)

desa

  • Guest
Live USB and fstab changes
« on: October 13, 2010, 08:02:11 AM »
Hello,

I created a live usb with PCLinuxOS Live Usb Creator and choose persistence when I boot menu.

The system appears rather fast (considering it is on an usb stick) and I am able to make changes but not all the changes get saved.

For example I cannot save fstab changes and at the next boot the fstab is again the original one.

Is there a way to make the changes permanent ?  ???

I also cannot find a way to skip the keyboard selection dialog whenever I boot, anyway this is less important.

Thank you

Bye :)

Offline rubentje1991

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2110
  • Rubenus Parvus MCMXCI
Re: Live USB and fstab changes
« Reply #1 on: October 14, 2010, 02:13:22 AM »
Did you try to manually edit /etc/fstab, or did an application that for you???

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11591
  • ----IOFLU----
Re: Live USB and fstab changes
« Reply #2 on: October 14, 2010, 02:58:58 AM »
Hello,

I created a live usb with PCLinuxOS Live Usb Creator and choose persistence when I boot menu.

The system appears rather fast (considering it is on an usb stick) and I am able to make changes but not all the changes get saved.

For example I cannot save fstab changes and at the next boot the fstab is again the original one.

Is there a way to make the changes permanent ?  ???

I also cannot find a way to skip the keyboard selection dialog whenever I boot, anyway this is less important.

Thank you

Bye :)

Are you making the edits to fstab as root?
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

desa

  • Guest
Re: Live USB and fstab changes
« Reply #3 on: October 15, 2010, 04:02:49 AM »
Hello, thank you for your replies :)

I tried to change fstab both with pcc and with gedit (always as root), but once I restart computer the fstab is again as original.  ???

Offline rubentje1991

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2110
  • Rubenus Parvus MCMXCI
Re: Live USB and fstab changes
« Reply #4 on: October 15, 2010, 06:08:56 AM »
Did you try to put the flash drive in a computer where already preferable Linux is running???
=> try to edit your fstab file there (remember to make a copy of your /etc/fstab, such like fstab.old)
And then the changes should stay I would think....

Or is this going about the 'install iso', using from a flash drive with persistence (not really 'installed' on the usb flash drive)
=> then there's made a fstab file every time you start (with the then available partitions I think)

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: Live USB and fstab changes
« Reply #5 on: October 15, 2010, 11:25:36 AM »
Hello,

I created a live usb with PCLinuxOS Live Usb Creator and choose persistence when I boot menu.

The system appears rather fast (considering it is on an usb stick) and I am able to make changes but not all the changes get saved.

For example I cannot save fstab changes and at the next boot the fstab is again the original one.

Is there a way to make the changes permanent ?  ???

I also cannot find a way to skip the keyboard selection dialog whenever I boot, anyway this is less important.

Thank you

Bye :)

Try omitting the fstab boot option from the boot stanza for Persistence .....

Delete this entry
fstab=rw,noauto

I have not tested this ........   ;)

EDIT
         I know of no way to skip the keyboard page when using persistence.
At least all it requires is a press of the Enter key, as your previous choice will be remebered when using Persistence.


Regards.
« Last Edit: October 15, 2010, 11:27:37 AM by Just19 »

desa

  • Guest
Re: Live USB and fstab changes
« Reply #6 on: October 15, 2010, 02:23:16 PM »
I have just tried your advices, I removed the fstab=rw,noauto option from the persistence menu and edited the usb fstab from a linux on hard disk but again when I boot from the usb stick the fstab is magically the original one  ??? ;D

Maybe, as for rubentje1991 hypothesis, a new fstab is created at every boot...

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: Live USB and fstab changes
« Reply #7 on: October 15, 2010, 02:29:43 PM »
I have just tried your advices, I removed the fstab=rw,noauto option from the persistence menu and edited the usb fstab from a linux on hard disk but again when I boot from the usb stick the fstab is magically the original one  ??? ;D

Maybe, as for rubentje1991 hypothesis, a new fstab is created at every boot...

Could I ask what would cause you to want to edit the fstab and have the edit retained?

Maybe there is another way to do what you want .....

desa

  • Guest
Re: Live USB and fstab changes
« Reply #8 on: October 15, 2010, 03:00:59 PM »
I would like to edit fstab and add an external partition (on the hard disk of my laptop) where I keep my data, including dropbox data. Actually I have to relink dropbox at every boot or, alternatively, modify the fstab, mount the external partition and restart dropbox.

Also I would try to place some folders (/tmp, /var/tmp...) in ram to decrease read/write on usb.

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: Live USB and fstab changes
« Reply #9 on: October 15, 2010, 03:06:16 PM »
I would like to edit fstab and add an external partition (on the hard disk of my laptop) where I keep my data, including dropbox data. Actually I have to relink dropbox at every boot or, alternatively, modify the fstab, mount the external partition and restart dropbox.

Also I would try to place some folders (/tmp, /var/tmp...) in ram to decrease read/write on usb.

The external HDD partition .....  can you not set it to automount?

You may be able to set 'clear tmp at boot' option and that uses the ram for tmp
« Last Edit: October 15, 2010, 03:07:50 PM by Just19 »

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11591
  • ----IOFLU----
Re: Live USB and fstab changes
« Reply #10 on: October 15, 2010, 03:23:30 PM »
I would like to edit fstab and add an external partition (on the hard disk of my laptop) where I keep my data, including dropbox data. Actually I have to relink dropbox at every boot or, alternatively, modify the fstab, mount the external partition and restart dropbox.

Also I would try to place some folders (/tmp, /var/tmp...) in ram to decrease read/write on usb.

Maybe if you created your liveUSB stick from a remaster that already has the fstab set as you want?
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: Live USB and fstab changes
« Reply #11 on: October 15, 2010, 04:23:47 PM »
I would like to edit fstab and add an external partition (on the hard disk of my laptop) where I keep my data, including dropbox data. Actually I have to relink dropbox at every boot or, alternatively, modify the fstab, mount the external partition and restart dropbox.

Also I would try to place some folders (/tmp, /var/tmp...) in ram to decrease read/write on usb.

Maybe if you created your liveUSB stick from a remaster that already has the fstab set as you want?

I think it is rewritten at each boot ....

Offline rubentje1991

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2110
  • Rubenus Parvus MCMXCI
Re: Live USB and fstab changes
« Reply #12 on: October 16, 2010, 05:31:45 AM »
I would like to edit fstab and add an external partition (on the hard disk of my laptop) where I keep my data, including dropbox data. Actually I have to relink dropbox at every boot or, alternatively, modify the fstab, mount the external partition and restart dropbox.

Also I would try to place some folders (/tmp, /var/tmp...) in ram to decrease read/write on usb.

The external HDD partition .....  can you not set it to automount?

You may be able to set 'clear tmp at boot' option and that uses the ram for tmp

Give that HDD a label via PCLinuxOS Control Center
(>> Disk manager >> Expert settings I think >> Label)

Then, set it to automount, (or mount it directly after boot)
and it will be always mounted as /media/your-label
(which you can enter in your dropbox, etc.)