Damn Small Linux - Not!
The forum for DSL-N
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Need to change fstab & have these changes back after reb

 
Post new topic   Reply to topic    Damn Small Linux - Not! Forum Index -> USB booting
View previous topic :: View next topic  
Author Message
kkpity



Joined: 19 May 2006
Posts: 13

PostPosted: Wed Jun 07, 2006 11:41 am    Post subject: Need to change fstab & have these changes back after reb Reply with quote

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
View user's profile Send private message
[IDC]Dragon



Joined: 22 Apr 2006
Posts: 41
Location: Hannover, Germany

PostPosted: Thu Jun 08, 2006 4:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
kkpity



Joined: 19 May 2006
Posts: 13

PostPosted: Thu Jun 08, 2006 6:36 pm    Post subject: Reply with quote

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 Wink

kkpity
Back to top
View user's profile Send private message
[IDC]Dragon



Joined: 22 Apr 2006
Posts: 41
Location: Hannover, Germany

PostPosted: Thu Jun 08, 2006 8:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
jimihieu



Joined: 05 May 2006
Posts: 51

PostPosted: Fri Jun 09, 2006 3:10 am    Post subject: Reply with quote

[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
View user's profile Send private message
kkpity



Joined: 19 May 2006
Posts: 13

PostPosted: Fri Jun 09, 2006 11:15 am    Post subject: Reply with quote

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
View user's profile Send private message
kkpity



Joined: 19 May 2006
Posts: 13

PostPosted: Mon Jun 12, 2006 11:07 am    Post subject: Reply with quote

I've tried to change bootlocal.sh, but after reboot, it backs to original state without my changes Sad

kkpity
Back to top
View user's profile Send private message
[IDC]Dragon



Joined: 22 Apr 2006
Posts: 41
Location: Hannover, Germany

PostPosted: Mon Jun 12, 2006 1:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
kkpity



Joined: 19 May 2006
Posts: 13

PostPosted: Mon Jun 12, 2006 10:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Damn Small Linux - Not! Forum Index -> USB booting All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group