View previous topic :: View next topic |
Author |
Message |
kkpity
Joined: 19 May 2006 Posts: 13
|
Posted: Wed Jun 07, 2006 11:41 am Post subject: Need to change fstab & have these changes back after reb |
|
|
I have 2 partitions on my pendrive (512MB):
uba1 - system (~120MB)
uba5 - data (~380MB)
I've created a backup file at uba5 and I've changed /etc/fstab in order to have uba5 mounted automatically after boot.
My boot options are:
dsl restore=uba5 unionfs
When I boot the system, the /etc/fstab backs to previous configuration and the uba5 partition is not mounted.
I already had included the etc/ dir at /home/dsl/.filetool.lst
#####
I also would like to know how to install apps without having "dsl" extensions. Some apps needs to be compiled and they change/create files/dirs. I do not know if the above procedure is the correct way to use dsl on a pendrive. |
|
Back to top |
|
|
[IDC]Dragon
Joined: 22 Apr 2006 Posts: 41 Location: Hannover, Germany
|
Posted: Thu Jun 08, 2006 4:23 pm Post subject: |
|
|
Beware, noob here too. Isn't the fstab built by the kernel, each time you boot? I did the mount in that .sh file which gets auto-executed later, forgot the path+name of it, can look it up. |
|
Back to top |
|
|
kkpity
Joined: 19 May 2006 Posts: 13
|
Posted: Thu Jun 08, 2006 6:36 pm Post subject: |
|
|
Thanks for your reply.
Please let me know what is the ".sh" file that I have to change in order to have my partition mounted.
Meanwhile I will try to find what is this file searching on google
kkpity |
|
Back to top |
|
|
[IDC]Dragon
Joined: 22 Apr 2006 Posts: 41 Location: Hannover, Germany
|
Posted: Thu Jun 08, 2006 8:22 pm Post subject: |
|
|
The "autoexec.bat" of DSL-N is "/opt/bootlocal.sh". It is executed as root, and changes to it already get persisted with the .filetool.lst mechanism, so everything is prepared. I also a mount there, and start the samba daemons. |
|
Back to top |
|
|
jimihieu
Joined: 05 May 2006 Posts: 51
|
Posted: Fri Jun 09, 2006 3:10 am Post subject: |
|
|
[quote="[IDC]Dragon"]The "autoexec.bat" of DSL-N is "/opt/bootlocal.sh". It is executed as root, and changes to it already get persisted with the .filetool.lst mechanism, so everything is prepared. I also a mount there, and start the samba daemons.[/quote]
sorry what is the purpose of autoexec.bat file? |
|
Back to top |
|
|
kkpity
Joined: 19 May 2006 Posts: 13
|
Posted: Fri Jun 09, 2006 11:15 am Post subject: |
|
|
Thanks Dragon
I will try to mont my uba5 at bootlocal.sh
jimihieu,
I've find this link explaining a little bit about the "autoexec.bat":
kkpity |
|
Back to top |
|
|
kkpity
Joined: 19 May 2006 Posts: 13
|
Posted: Mon Jun 12, 2006 11:07 am Post subject: |
|
|
I've tried to change bootlocal.sh, but after reboot, it backs to original state without my changes
kkpity |
|
Back to top |
|
|
[IDC]Dragon
Joined: 22 Apr 2006 Posts: 41 Location: Hannover, Germany
|
Posted: Mon Jun 12, 2006 1:06 pm Post subject: |
|
|
You need to tell the kernel where to load/store the settings from/to. Modify the grub menu.lst (in /yourdisk/boot/grub), add a "restore=uba5" entry. You can try that option manually with grub's line editor, before editing menu.lst. DSL-N will create a .tgz archive with all modified files (listed in ~/.filetool.lst) there.
I figured out that DSL-N doesn't need 2 partitions for USB booting (well, CF card on IDE adapter in my case), you can use the boot partition with the big compressed image for that as well. Returns some flexibility, in case DSL-N grows or shrinks. |
|
Back to top |
|
|
kkpity
Joined: 19 May 2006 Posts: 13
|
Posted: Mon Jun 12, 2006 10:24 pm Post subject: |
|
|
I've already tried that.
I've create a gz file with all my settings at uba5. No problem at all.
The problem is:
When I boot my system (with restore=uba5) it doesn't mount uba5. In this case, I cannot have my settings.
I can restore my settings after mount manually uba5, but in this case, my drivers are not loaded since the uba5 was not monted at boot time.
Maybe I had to format my pendrive again and just create 1 partition... Let's see... |
|
Back to top |
|
|
|