LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 08-30-2005, 03:44 AM   #1
ahmed gamal
Member
 
Registered: Aug 2005
Location: Egypt
Distribution: slackware + XP
Posts: 591

Rep: Reputation: 30
mount drivers


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)
 
Old 08-30-2005, 05:00 AM   #2
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,644

Rep: Reputation: 145Reputation: 145
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.
 
Old 08-30-2005, 05:02 AM   #3
nixcraft
Member
 
Registered: Nov 2004
Location: BIOS
Distribution: RHEL3.0, FreeBSD 5.x, Debian 3.x, Soaris x86 v10
Posts: 379

Rep: Reputation: 30
Use automounter so that it can connect and mount it see an example using autofs http://www.cyberciti.biz/nixcraft/vi...ount-linux.php

Last edited by nixcraft; 06-09-2006 at 12:51 AM.
 
Old 08-30-2005, 06:48 AM   #4
ahmed gamal
Member
 
Registered: Aug 2005
Location: Egypt
Distribution: slackware + XP
Posts: 591

Original Poster
Rep: Reputation: 30
can i make a programme with shell to automatically mount when i open the pc
 
Old 08-30-2005, 06:55 AM   #5
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
That would be the titopoquito solution No need to write any script.
 
Old 08-30-2005, 08:29 AM   #6
ahmed gamal
Member
 
Registered: Aug 2005
Location: Egypt
Distribution: slackware + XP
Posts: 591

Original Poster
Rep: Reputation: 30
but i still need to mount them automatically
 
Old 08-30-2005, 08:34 AM   #7
powadha
Member
 
Registered: Nov 2003
Location: Zwolle
Distribution: Arch
Posts: 651

Rep: Reputation: 31
And the solution has been given 3 times now.....
 
Old 08-30-2005, 09:22 AM   #8
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
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 their man-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.


Hope this helps clear things up!
 
Old 08-31-2005, 06:33 AM   #9
ahmed gamal
Member
 
Registered: Aug 2005
Location: Egypt
Distribution: slackware + XP
Posts: 591

Original Poster
Rep: Reputation: 30
and this is for my hard disk what about other disks that a i use them when my friends come to my home
i still need to mount them automatically
 
Old 08-31-2005, 07:02 AM   #10
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
This would be handled by hotplug.

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.

Yves.
 
Old 08-31-2005, 08:01 AM   #11
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,644

Rep: Reputation: 145Reputation: 145
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.
 
Old 09-02-2005, 02:48 AM   #12
ahmed gamal
Member
 
Registered: Aug 2005
Location: Egypt
Distribution: slackware + XP
Posts: 591

Original Poster
Rep: Reputation: 30
i use suse9.3 and fedora3
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to give not-root user ability to mount devices to any mount point??? jdupre Linux - General 8 02-04-2012 10:03 AM
NFS mount of smb mount of windows share: permission denied problem :( Bagatur Linux - Networking 4 07-07-2009 11:34 AM
mount: unknown filesystem type 'ntfs' when trying to mount windows drive... DiZASTiX Linux - Hardware 12 09-28-2008 07:29 PM
can mount C not D FAT: invalid media value (0x45) mount: wrong fs type, bad option Emmanuel_uk Linux - Newbie 10 11-29-2005 02:47 AM
automount: mount(generic): failed to mount (null) (type iso9660) on /mnt/media/ vasudevadas Slackware 5 10-17-2005 03:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration