Making AutoBootMounter for Puppy... (SOLVED)

Using applications, configuring, problems
Post Reply
Message
Author
User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

Making AutoBootMounter for Puppy... (SOLVED)

#1 Post by sunburnt »

Another post brought up the need for a utility to auto mount extra drives at boot.
I got most of the way through an app. to do this & ran into a nasty problem.

The following lines are command lines to be append to another file, but the (`) is evaluated, & not copied as is.
Is there a way to specify a string to be read as "literal"? I thought the (") double quotes used with echo did that.
(`) is not one of the characters listed that can be escaped with \, so I think that's out of the question.

echo " i=`expr $i + 3`" >> /tmp/xbootmnt
echo "LOCAL=`cat /etc/rc.d/rc.local`" >> /tmp/xbootmnt

It would be really nice to just extend MUT so that it would write mount commands to the rc.local file.
And add a [Mount at Boot] button next to the [mount] button in MUT.
I wouldn't know where to begin...
Last edited by sunburnt on Wed 05 Apr 2006, 03:00, edited 1 time in total.
User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#2 Post by MU »

use ' instead of "

echo ' i=`expr $i + 3`'

that prints:
i=`expr $i + 3`
Mark
User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#3 Post by sunburnt »

You got the answer again Mark... Thanks, Terry
User avatar
ApeMan
Posts: 21
Joined: Sat 08 Apr 2006, 17:54

how to mount at boot

#4 Post by ApeMan »

So how do I mount extra drives at boot?
where do I insert these lines?

Thanks,

ApeMan
User avatar
Sit Heel Speak
Posts: 2595
Joined: Fri 31 Mar 2006, 03:22
Location: downwind

#5 Post by Sit Heel Speak »

Ape Man:

Sunburnt wrote a very nice little program called xbootmount. Go to the "Announcements" forum and see the thread

"Puppy GUI utility, automatic HD mounting at boot."

Therein you will find a download button for Sunburnt's program xbootmount.gz.
Download xbootmount.gz to some convenient location, say for example

/root/dotpups-downloads

and then Start / File Managers / ROX-filer, navigate in ROX-filer to the above directory, and left-click on xbootmount.gz to open XArchive, then click the Extract button. This leaves xbootmount in the same directory. Now left-click xbootmount to run it. Depress the button for the drive(s) you wish to automount at boot.

Sit
User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#6 Post by sunburnt »

I'm just finishing up a Samba auto boot mounter app., I'll be posting it fairly soon.

I need to look into making these apps. into DotPups that will add them to the menu.
There are so many different WMs for Puppy now, I don't know how that will go.
User avatar
Sit Heel Speak
Posts: 2595
Joined: Fri 31 Mar 2006, 03:22
Location: downwind

#7 Post by Sit Heel Speak »

ApeMan:

As explained to me in the thread "How do I make a linux swap file?" by the incomparable GuestToo, in /root/.etc/rc.d/rc.local add lines such as

mkdir /mnt/hda1
mount -t vfat /dev/hda1 /mnt/hda1

sunburnt:

can't wait! --er, is there a way to accomplish Samba share mounting via lines in a configuration file, just as the above lines will accomplish an automount of a hard drive at boot?
User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#8 Post by sunburnt »

Sit Heel Speak; Yep, that's what xbootmount does, it puts a line in rc.local that calls the script: rc.bootmnt
The rc.bootmnt file has mount lines like: mount -t ext2 /dev/hda1 /mnt/hda1
The Samba app. will do the same, like: smbmount //(HostName)/(Share) -o guest
I'm doing a lot at the moment, so I'll get it out as soon as I can.
Post Reply