PDA

View Full Version : How to disable automount of hard disk partitions



Myster_fr
04-23-2004, 04:35 PM
Hi,

Here is my problem : I want my Knoppix CD to be totally independent, and really don't want it to mount local hard disk partitions, not even for swap.
Unfortunately, at boot, every available partition is mounted, and that's what I want to avoid.
On the other side, I would keep the function of automatic mount of USB keys...

Can someone tell me how to do so ?
I commented out some lines in /etc/init.d/knoppix-autoconfig (around line 715) which seemed to concern automounting process.
Did I right ?

Is there a best way to do the same ?

Thanks in advance for any reply.

user unknown
05-11-2004, 06:49 AM
Did you look into the bootmenu? Perhaps there is an option...

medlazik
06-03-2004, 02:17 PM
i can't find any option to disable automount.
i can't use qparted because of automount (cant unmount: busy...)

user unknown
06-03-2004, 03:28 PM
I don't run automount, so I don't know the name of the program.

To stop the automounter, you need to know it's name, then you may stop it by calling kill with it's PID.
Use


ps ax

to lists the running processes, one entry might be like this:
PID...tty...stat...time.......command
56....?......SW....00:00... automount

kill -15 56
which is a rude way to solve the problem, but shouldn't matter.
If the process refuses to stop, we could be a bit ruder too:

kill -9 56

rrijkse
06-04-2004, 02:25 AM
The knoppix-autoconfig file calls a file in /usr/sbin called rebuildfstab.
This file is a shellscript that does as the name says. If you edit this file you can change the options that it writes to the fstab file.

Hope that helps

-Robbert