LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Automount Harddrive (https://www.linuxquestions.org/questions/linux-general-1/automount-harddrive-35116/)

twantrd 11-10-2002 11:41 PM

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

trickykid 11-11-2002 12:01 AM

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.

twantrd 11-11-2002 03:15 AM

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

MasterC 11-11-2002 03:20 AM

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

bkxsammy 11-12-2002 12:37 AM

How can i automount so that i can automatically be able to write in user mode??

turbofisch 11-12-2002 01:45 AM

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

Quest 11-12-2002 07:50 PM

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?:confused:

twantrd 11-13-2002 12:58 PM

THanx for all the help guys!! I'll try that soon.....

-twantrd

MasterC 11-14-2002 01:26 AM

Quote:

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

Cool

Quest 11-15-2002 02:46 AM

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:Pengy:

pagal 11-15-2002 02:50 AM

you should NOT enable write-support on ntfs drive or it will screw up!!!

Quest 11-15-2002 10:01 AM

Quote:

Originally posted by pagal
you should NOT enable write-support on ntfs drive or it will screw up!!!
izzit true? why?:( :confused:

pagal 11-15-2002 03:19 PM

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.

MasterC 11-15-2002 06:56 PM

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


All times are GMT -5. The time now is 10:08 PM.