LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-17-2001, 07:45 AM   #1
erichard2000
LQ Newbie
 
Registered: Jan 2001
Posts: 20

Rep: Reputation: 0
Talking


Hi

Is there a way to have linux "auto mount my other partition, so I dont have to do it everytime I log on?


Thanks
Eric
 
Old 02-17-2001, 09:26 AM   #2
devnull
Member
 
Registered: Feb 2001
Posts: 84

Rep: Reputation: 15
add an entry for each partition you want to have automounted in the /etc/fstab. Before doing so, read the manpage for fstab.
 
Old 02-17-2001, 10:08 AM   #3
erichard2000
LQ Newbie
 
Registered: Jan 2001
Posts: 20

Original Poster
Rep: Reputation: 0
Please use newbie terms

Thanks, but can you tell me exactly what to do? I am a complete newbie to linux. And another thing, for some reason or another my cd roms wont work in linux, they say "no medium found" when I click on them. Help

Thanks
Eric
 
Old 02-17-2001, 10:38 AM   #4
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
in the file /etc/fstab add a line looking like this:

<device> <mountpoint> <fs> <options> 0 0

<device> is the devicefile for your drive, found in the /dev directory. My computer for example has windows installed on the first partition on my primary master ide-drive, this gives me /dev/hda1.

<mountpoint>
Since linux has all of its filesystems and processes in a single tree-structure you have to tell linux where in the tree you want it to mount the drive. In my case I made a dir named /mnt/win (use the command 'mkdir /mnt/win') to mount the windows filesystem.

<fstype>
Windows use a filesystem called vfat, this one supports the use of long filenames (long names according to Bill). Linux most oftenly use fstype ext2.

<options>
Here comes the part where you tell linux how and when to mount the partition. The options column is a comma separated list. Some of the options are:
noauto, Don't automount
ro, Mount as read-only
user, allow regular users to un-/mount specified drive
 
Old 02-17-2001, 01:39 PM   #5
erichard2000
LQ Newbie
 
Registered: Jan 2001
Posts: 20

Original Poster
Rep: Reputation: 0
Unhappy Confused

Still Confused on that. Sorry. Mine is also dev/hda1 . But can you tell me exactly what to do step by step.

Thanks again for all of your help!
 
Old 02-18-2001, 04:05 PM   #6
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
To alter your /dev/fstab file by using the vi file editor do like this as root:

# vi /etc/fstab

Go to last line and hit the <i>-key, this switch you to insert mode.
On a new line type like this to mount your windows formated partition to directory /mnt/win automatically at boot time:

/dev/hda1<tab>/mnt/win<tab>defaults,auto<space>0<space>

When this is done hit <esc>:wq<enter>
Now type this command:

# mkdir /mnt/win

and reboot...

Hope this helps, if not please tell me more about what you would like to mount and for what purpose.
 
Old 02-20-2001, 08:23 AM   #7
erichard2000
LQ Newbie
 
Registered: Jan 2001
Posts: 20

Original Poster
Rep: Reputation: 0
Talking Um not working!

OK I did everything you told me step by step but then when I click on the link to my other partition it says "Mount: fs defaults,auto not supported by kernel." What does this mean and how do I fix it. By the way I am just mounting my other partion so I can use some of my mp3's from windoze! And does this have anything with my cd rom drives giving me errors like "no medium found"?

Help,
Eric
 
Old 02-20-2001, 03:02 PM   #8
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
As for me I'm using GNOME on a Red Hat 6.2 system.
When I login I get a icon for my windows partition.
I didn't even have to alter anything.

Which system and window manager do you use?
 
Old 02-20-2001, 03:07 PM   #9
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
fs not supported by kernel

Its highly possible that the kernel you are using does not have support compiled into it for the filesystem you are trying to mount. Exactly what distribution of Linux are you using? When you look in /usr/src/ what do you see?
When you look in /boot what do you see?
 
Old 02-20-2001, 08:18 PM   #10
erichard2000
LQ Newbie
 
Registered: Jan 2001
Posts: 20

Original Poster
Rep: Reputation: 0
Best Linux

I am running best linux. KDE 1.1.2. I am running on a seperate partition from Win 98 SE. When I look in usr/scr the following folders linux, linux 2.2.16, and redhat.

Hope this helps you help me!
 
Old 02-21-2001, 12:42 PM   #11
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
mounting filesystems automatically

Your CDROM "no medium found" error could have to do with you simply not mounting/unmounting it properly. If you put a CDrom in your system and as root type "mount /mnt/cdrom" what does it say?

As far as the other filesystems go.. you should not be having any trouble because it looks like you are running Redhat 7.0 which by default should have everything you need to mount those filesystems already included.

Please post the contents of you '/etc/fstab' file here.
 
Old 02-21-2001, 05:47 PM   #12
erichard2000
LQ Newbie
 
Registered: Jan 2001
Posts: 20

Original Poster
Rep: Reputation: 0
Here

Here is the contents of my fstab:
/dev/hda2 / defaults 1 1
/dev/hdc /mnt/cdrom 9660 noauto,ro,users 0 0
/dev/hdd /mnt/cdrom1 9660 noauto,ro,users 0 0

/dev/fd0 /mnt/floppy vfat noauto,users 0 0
proc /proc proc defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0


hope this helps. You said I was running Redhat? I am running Best Linux, or it is the equivalent of Redhat?

when I try to mount cd rom it says "no medium found"
 
Old 02-23-2001, 10:49 AM   #13
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
try this

1. My mistake, I thought you were running Redhat. You are running the same kernel level as Redhat 7.0. I don't know anything about Best Linux.


2. First of all, change those '9660's that are listed for your CDROM type to 'iso9660'

Secondly, what is the mount command that you are using to manually mount the partitions you want to automount?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Not auto mounting amnesty_puppy Linux - General 9 08-07-2005 08:27 PM
Mepis: auto mounting jaakkop Linux - Distributions 2 02-12-2005 05:01 AM
Auto Mounting IcoNyx Linux - Software 2 03-30-2003 08:04 PM
What is auto mounting my CDROMs? rkircher Linux - General 6 02-08-2003 09:57 PM
Auto-mounting X11 Slackware 1 07-07-2002 01:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:31 PM.

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