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...
Making AutoBootMounter for Puppy... (SOLVED)
Making AutoBootMounter for Puppy... (SOLVED)
Last edited by sunburnt on Wed 05 Apr 2006, 03:00, edited 1 time in total.
how to mount at boot
So how do I mount extra drives at boot?
where do I insert these lines?
Thanks,
ApeMan
where do I insert these lines?
Thanks,
ApeMan
- Sit Heel Speak
- Posts: 2595
- Joined: Fri 31 Mar 2006, 03:22
- Location: downwind
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
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
- Sit Heel Speak
- Posts: 2595
- Joined: Fri 31 Mar 2006, 03:22
- Location: downwind
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?
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?
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.
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.