LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-10-2002, 11:41 PM   #1
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
Automount Harddrive


Hi everyone,
Im using redhat 7.3 and my question is how do u automatically mount a harddrive upon boot up? I have a 2nd harddrive that has data (hdb5) and everytime my linux box boots up..i have to type in "mount /dev/hdb5 /mnt/hdb" to access it. Can i edit the fstab file or something so that upon booting up my linux box it will mount that partition without me having to do it manually each time? Thanx for all the help and advice

-twantrd
 
Old 11-11-2002, 12:01 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Yes the /etc/fstab file is the one you would want to edit and add the new parition or hard drive in to have it mount at boot time.
 
Old 11-11-2002, 03:15 AM   #3
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Original Poster
Rep: Reputation: 52
Hmm ok, but what should the line say? SHould it look like this:

/dev/hdb5 /mnt/hdb ext3 defaults 1 2 ??

THanx for your help

-twantrd
 
Old 11-11-2002, 03:20 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Well, to be a bit more helpful, I'd say check out man mount, this will give you more than your hearts desire, and mine as well

But to give you a quick example:

/dev/hdb5 /mnt/hdb ext3 auto,users,rw 1 2

Should be one option that "should" work.

Cool
 
Old 11-12-2002, 12:37 AM   #5
bkxsammy
Member
 
Registered: Oct 2002
Posts: 30

Rep: Reputation: 15
How can i automount so that i can automatically be able to write in user mode??
 
Old 11-12-2002, 01:45 AM   #6
turbofisch
LQ Newbie
 
Registered: Sep 2002
Location: Bochum
Distribution: RedHat 7.3
Posts: 7

Rep: Reputation: 0
Hi twantrd

It's a bit tricky with RH7.3. You have to add ',umask=000' after the mount-options (e.g. 'defaults') to get write access as normal user. Make sure you don't enter a blank after the comma! Your resulting line should look something like:

/dev/hda6 /mnt/daten vfat defaults,umask=000 0 0

I hope I could help.

Stefan
 
Old 11-12-2002, 07:50 PM   #7
Quest
LQ Newbie
 
Registered: Sep 2002
Location: Sg
Distribution: Mandrake 8.2
Posts: 25

Rep: Reputation: 15
Quote:
Originally posted by turbofisch
Hi twantrd

It's a bit tricky with RH7.3. You have to add ',umask=000' after the mount-options (e.g. 'defaults') to get write access as normal user. Make sure you don't enter a blank after the comma! Your resulting line should look something like:

/dev/hda6 /mnt/daten vfat defaults,umask=000 0 0

I hope I could help.

Stefan
does it work for ntfs?
 
Old 11-13-2002, 12:58 PM   #8
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Original Poster
Rep: Reputation: 52
THanx for all the help guys!! I'll try that soon.....

-twantrd
 
Old 11-14-2002, 01:26 AM   #9
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Quote:
Originally posted by Quest
does it work for ntfs?
Yes if you have compiled NTFS write support into your kernel. As always **This is likely to jack up your NTFS partition**

Cool
 
Old 11-15-2002, 02:46 AM   #10
Quest
LQ Newbie
 
Registered: Sep 2002
Location: Sg
Distribution: Mandrake 8.2
Posts: 25

Rep: Reputation: 15
Quote:
Originally posted by MasterC
Yes if you have compiled NTFS write support into your kernel. As always **This is likely to jack up your NTFS partition**

Cool
How do i make my kernel support ntfs write?
i installed the rpm from http://linux-ntfs.sourceforge.net/info/redhat.html

i add this to fstab
/dev/hda1 /mnt/share ntfs defaults,umask=000 0 0
/dev/sdb1 /mnt/scsi vfat defaults,umask=000 0 0

both user and root cannot write to ntfs how to fix it?
only can write to fat
 
Old 11-15-2002, 02:50 AM   #11
pagal
Member
 
Registered: Oct 2002
Distribution: Red Hat Phoebe!
Posts: 92

Rep: Reputation: 15
you should NOT enable write-support on ntfs drive or it will screw up!!!
 
Old 11-15-2002, 10:01 AM   #12
Quest
LQ Newbie
 
Registered: Sep 2002
Location: Sg
Distribution: Mandrake 8.2
Posts: 25

Rep: Reputation: 15
Quote:
Originally posted by pagal
you should NOT enable write-support on ntfs drive or it will screw up!!!
izzit true? why?
 
Old 11-15-2002, 03:19 PM   #13
pagal
Member
 
Registered: Oct 2002
Distribution: Red Hat Phoebe!
Posts: 92

Rep: Reputation: 15
because M$ never released enough info about NTFS, so the driver is still not perfected. It might take some time before you are fully able to write to an NTFS partition.
 
Old 11-15-2002, 06:56 PM   #14
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Well, you CAN is the thing, if you really don't care, and just want to jack up a drive trying, or something along those lines (supposedly can ruin the hardware as well, not just corrupt the files) then you can give it a try.

From the page where you linked us:
Quote:
N.B. The driver in these modules is read-only.
SO I am guessing that means that it's "read only", and that you can't write with a "read-only" module. But if you poke around on that website a bit more, and maybe read a few threads here and there, you could find a way to do it. I don't like to tell people how to do such things because it can cause such destruction and I'd feel bad, but the info is available, just use a little searching around to find it.

Cool
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing linux on 2nd harddrive(dual boot) windows on seperate harddrive lysol Linux - Software 25 08-03-2004 09:33 AM
Automount help short101 Linux - Newbie 2 07-17-2004 08:23 PM
Need to replace full harddrive with new, larger harddrive pearlr Linux - Newbie 1 01-02-2004 12:59 PM
automount alaios Linux - Hardware 1 11-16-2003 11:47 AM
automount debian_devil Linux - General 4 01-23-2002 11:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:53 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