Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
hi every body
i have linux and it drives me crazy
i want to make partitions mounted automatically
and when i connect a slave hard
i mount it my self is there any solution to make partitions mounted automatically (since windows mount drives automatically)
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,644
Rep:
To mount drives automatically you put an entry in /etc/fstab. Search for fstab on linuxquestions and you will get lots of threads on this subject. Or do a "man fstab" but that will be rather confusing for a newbie.
There are a variety of ways by which "things happen when you start up," or "when you log in."
When the computer starts up, or shuts down, it executes a series of commands found in (e.g.) /etc/rc.d/rc5.d/. See man init for more details on this: your system may vary. It's one way that you can cause things to happen when you first turn on the computer.
The automounter, as mentioned, can handle tasks like auto-mounting hard drives. It affects the entire system. It is possible to have the system auto-load any kernel modules that may be required by a particular device.
The cron and anacron daemons run all the time, doing things on a specified schedule. See theirman-pages for more details. On my system, scripts in places like /etc/cron.daily are executed that way.
As far as "when I open the case or close the case on my desktop," that I don't know. It can be done, of course...
Finally, when you log in, a startup-script such as .bashrc is executed. You normally don't see that file in your home directory because its name begins with a period "." which means that it's hidden. (Use ls -a to see them.) Similar scripts are available for when you log-out. Desktop environments such as kde and gnome provide their own facilities, which execute as you enter and leave a graphic session.
In Mandriva for example, you enable supermount, and enable hotplug on boot.
After that, any hot-plugged storage you use gets detected by hotplug, which automatically creates a new line in /etc/fstab using supermount (hence automatically mounted).
When you unplug the device, hotplug automatically detects this, and removes the line in /etc/fstab.
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,644
Rep:
Why don't you update your profile. TheYinYeti wrote about Mandriva, "for example" -- if you don't tell us the distribution you are using you can't get a definite answer. You couldn't tell "I have to change the [insert any car part here] in my car -- please help" and resist on asking and asking again and not giving any info. It does matter which distro you're using, like it matters which car you're driving.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.