Automount


Forum: HD Install
Topic: Automount
started by: RobEoh

Posted by RobEoh on Jan. 15 2004,06:37
I would like all my partitions to automount on boot. Whenever I edit /etc/fstab and reboot, something (somewhere) is appending entries to the file.  I think it may be autofs but 'cat /proc/filesystems' doesn't show it and there is no /etc/auto.master file (as per online docs elsewhere).  Can anyone set me straight on how to get all the partitions to mount on boot?

Thanks in advance.
RobEoh

Posted by peter on Jan. 18 2004,14:32
Sounds obvious so forgive me if it is..... but I assume you are talking about a hard drive install here? And that you are editing /etc/fstab as root?
Posted by RobEoh on Jan. 22 2004,20:11
Yes, this is a HD install and I'm am root.  In addition to hda3 and hdb, I also would like to automount sda1, a usb device.  All devices work fine when I mount them manually; I just can't figure out how to configure them to automount, since the doc on autofs suggest a different structure than what I find in DSL (see previous post).
Posted by snaga on Feb. 13 2004,18:44
I wish I was posting with an answer, but unfortunately I'm posting to say that I'm also having this same problem. I have swap on hda1 and a partition on hda3 that I would like to mount at boot but can't seem to make it happen.
Posted by roberts on Feb. 13 2004,18:54
If you read the faq on hard drive install, it mentions that the hard drive installed system runs the same as the liveCD with autodetection of hardware. Therefore the /etc/fstab is rebuilt upon reboot. That is accomplished within the script /etc/.init.d/knoppix-autoconfig. Your choices are:
1. hack the knoppix-autoconfig script (not as easy as you may wish)
2. add your mount commands to .bash_profile
3. create new runlevel 5 scripts to mount the drives.
4. wait until the next release for an easy to use bootlocal script.

Posted by zaheermk on Feb. 16 2004,07:01
I getting almost the same problem, DSL booted it successfully from the live CD, but hdd partitions are not automounted. When I tried to play a music file with XMMS, from one of the partitions, /mnt/hda1, /mnt/hda5 were empty. So I tried to mount it manually from the console/terminal. But it didn't work. Could you please help me ?
???

Posted by roberts on Feb. 16 2004,07:20
mount /dev/hda1 /mnt/hda1 -o uid=1001 should give you access to those partitions. Or select enhanced desktop and use mount.app in the lower right corner of the screen.
Posted by donar on Mar. 06 2004,11:27
I edited my ~/.initrc to automount hda5 and hda6 by adding the following to it:

mount /dev/hda5 /mnt/hda5 &
mount /dev/hda6 /mnt/hda6 &

Don't forget to add the "&"

Bassically commands you put in you ~/.initrc will run when you log in. I use DSL on my laptop for use as an mp3 player for my car so I added in a line for my soundcard to work properly and one to autolaunch xmms. Now if I can just figure out what commands I can use to automatically turn down the mic volume so I don't get feedback before I get a chance to turn it down with the app.

Posted by marcosg on Mar. 06 2004,11:48
Donar: ¿how can you turn off the MIC (or chage the volumes)?
I cant find a mixer in all this system, could someone help we with this? Because I will work with audio programs to make music!
marcosg@argentina.com
www.pc-musica.tk :(

Posted by CappyCaffeine on Mar. 06 2004,17:01
Hi all. Been reading this thread and I think what you really want to do it add the following lines to /opt/bootlocal.sh

mount /mnt/hda1

(or whatever partition you want to mount on boot)

I wanted my damnsmall box to be able to mount a vfat partition and then run monkey web server without having to login as a user. the Server_root is on the vfat partition. I did not want to mess around with knoppix-autoconfig or the fstab regenerating script and all that, so I simply put the above line in /opt/bootlocal.sh and the following to run the web server:

./opt/monkey/bin/banana start

So, /mnt/hda1 is mounted and monkey is started by the time you get to the login: prompt

This is handy if somebody reboots the machine for some fool reason, and saves memory by not requiring you to run X.

BTW: my box is also running as a samba server. Apt-Get was great at installing samba and swat... Sweet! :)

Hope this helps!

Cappy

Posted by Rapidweather on Mar. 07 2004,15:24
I would assume that those of us running a livecd setup, or /knoppix in /dev/hda1 setup, requiring a restore, would have to put opt/bootlocal.sh in filetool.lst to get it saved between boot-ups.
On my system, /dev/hda1 is already mounted, as /cdrom since I have the /knoppix folder there, and I have a choice of a couple of
restore tarballs, in different partitions.
I'm thinking about adding this line to my bootlocal.sh to start my internet connection and see what happens:
sudo  /ramdisk/usr/bin/wvdial
Of course I had to add wvdial back into 0.6.1 on restore to be able to get my modem detected.
---
:;):

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.