Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-09-2002, 03:47 PM   #1
Registered: Oct 2002
Distribution: Suse 7.2; Redhat 8.0; Mandy 9.0
Posts: 35

Rep: Reputation: 15
Automatic Mounting of Window Partitions on Startup

I've been reading lots on automounting but it seems that most address primarily floppy drives, cd drives, etc, but what about window partitions. I know its possible because many have alluded to it.

How exactly can i have my three fat32 partitions mounted automatically when linux starts up. What file must i configure (fstabs, autofs, etc) and why? I'd appreciate if whoever responds could explain the parameters so i can have a good understanding why i'm doing what i'm doing. Thanx so much!

Btw, I'm running Redhat 8.0.
Old 10-09-2002, 04:17 PM   #2
Senior Member
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
Please use the search function. That question has been answered so many times recently ... please search the forum for SAMBA!
Old 10-09-2002, 04:32 PM   #3
Registered: Dec 2000
Location: Indiana
Distribution: Red Hat 7.3/Mandrake 8.2/9.0
Posts: 154

Rep: Reputation: 30
Lightbulb A little info...

Well, I probably can't give you all of the detail you asked for but I can get you started. I think the easiest way my be to look at your /etc/fstab file. You could probably use some of the lines in there as basic examples to get you going. I believe fstab is the only file you have to worry about. You will probably also want to try the command "man fstab" at a command prompt. This will give you information about the fstab file. You will need to know the partion ids of your fat 32 partitions. For example /dev/hda1 , etc.

Hope this helps.

This is not directed at you PiMoGo

On a side note why do people find it necessary to be RUDE when someone asks a question? So what if it has already been asked. If thats the attitude we are going to have then what's the point of having this message board. I'm sure most of what has been posted here could be found elsewhere on the internet so all someone has to do is search, right? I seem to be seeing this more and more lately. BTW, what does mounting Fat32 partitions have to do with SAMBA?????????????
Old 10-09-2002, 10:21 PM   #4
Registered: Sep 2002
Location: Kaysville, UT USA
Distribution: Red Hat Linux, Slackware
Posts: 242

Rep: Reputation: 30
make sure you create the folder in the /mnt directory you want to mount it to.

in /etc/fstab set this:

/dev/(partition) /mnt/(folder) vfat defaults 0 0

where (partition) = the vfat partition you want to mount and (folder) = the folder you want to mount too

use the space key to line up the entries with the columns, linux doesn't seem to like tabs.

here's an example (truth be told, I just had to do this earlier today):
/dev/hda1 /mnt/win vfat defaults 0 0
Old 10-10-2002, 01:18 AM   #5
LQ Newbie
Registered: Oct 2002
Location: India
Posts: 1

Rep: Reputation: 0
I got a suggestion , u can include the
mount command in the rc.local script .
rc.local is a script which is executes at
startup/booting the linux

for ex ., if you like mount /dev/hda1 (vfat) to /mnt/win_c ( win_c is the directory created ) following command would do that

mount -t vfat /dev/hda1 /mnt/win_c

add the above line in file /etc/rc.local

Old 10-10-2002, 04:09 PM   #6
Registered: Oct 2002
Distribution: Suse 7.2; Redhat 8.0; Mandy 9.0
Posts: 35

Original Poster
Rep: Reputation: 15
Got it! Thanks everyone!
Old 12-08-2002, 10:55 AM   #7
LQ Newbie
Registered: Dec 2002
Location: Malaysia
Posts: 13

Rep: Reputation: 0
May I know how to add line to /etc/fstab or /etc/rs.local?
I want to automount my windows drive on the startup.

Appreciate for helping........
Old 12-08-2002, 04:09 PM   #8
Senior Member
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
vsrivats: Yeah you could do that, but isn't putting it in fstab easier?

thiamhong: This was just answered three posts above your own, did you even read it?

ascii2k: Do you see why this gets annoying? This exact question was asked and answered at least three times yesterday alone. You may consider telling people to do a search rude, but it is really just a way to get people more self-reliant. This question is dealt with extensively in the docs provided by every major distro at their website, which is the first place people should be looking before they post here.

Good etiquette dictates:
1: check your distro docs
2: Search the web
3: search this forum
4: post your question when 1 2 and 3 are fruitless.
Old 12-10-2002, 07:13 PM   #9
Registered: Mar 2002
Location: USA
Distribution: slackware; what else is there?
Posts: 30

Rep: Reputation: 15
markus1982 hes not even talking about samba you he wants to mount his windows partitions which he could do via

pico /etc/rc.d/rc.local
then add the lines mount -t vfat /dev/hdx /mnt/win1 then the same for win2 and 3
Old 12-10-2002, 08:36 PM   #10
Registered: May 2001
Posts: 29,394
Blog Entries: 55

Rep: Reputation: 3565Reputation: 3565Reputation: 3565Reputation: 3565Reputation: 3565Reputation: 3565Reputation: 3565Reputation: 3565Reputation: 3565Reputation: 3565Reputation: 3565
WARNING NOTICE for user 404

stop your current posting behaviour.
LQ will not tolerate your usage of offensive language against LQ members, non-constructive posts and your continuing disobedience.

unSpawn, moderator


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
Automatic Startup of Apache m2azer Linux - General 6 09-20-2004 08:39 AM
automatic mounting of windows partitions vijeesh_ep Linux - Networking 1 07-31-2004 02:05 PM
gui startup--automatic hpglow Linux - Newbie 3 07-22-2003 01:07 PM
Automatic mounting DaDdY SnEb Linux - Newbie 2 05-30-2003 12:07 PM
automatic mounting DaDdY SnEb Linux - Newbie 4 06-20-2002 04:48 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:13 PM.

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