LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   problems mounting hard disk (https://www.linuxquestions.org/questions/linux-newbie-8/problems-mounting-hard-disk-326453/)

mind_prodigy 05-23-2005 10:30 PM

problems mounting hard disk
 
Hey, guys. I'm having a problem mounting a hard disk. Whenever I try mounting my 2nd hard disk, or my windows partition, to a mount point, any mount point, the ownership of the folder changes to root, and my regular user cant view it. It is a fat32 partition. My /etc/fstab file looks like this:

/dev/hda5 swap swap defaults umask=000 0 0
/dev/hda2 / reiserfs defaults umask=000 1 1
/dev/hda1 /windows vfat defaults umask=000 1 0
/dev/hdb1 /storage vfat defaults umask=000 1 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0

any suggestions? Thanks!

Josh

nadroj 05-23-2005 11:04 PM

u said 2nd hard disk or the windows partition, are you referring to these 2?
Code:

/dev/hda1 /windows vfat defaults umask=000 1 0
/dev/hdb1 /storage vfat defaults umask=000 1 0

as these are in the fstab file, i suppose your having them mounted automatically upon boot, and your not using the 'mount' command, correct?

try changing it to something like:
Code:

/dev/hdb1      /storage      vfat    auto,users,umask=000,rw 0 0

mind_prodigy 05-24-2005 05:03 PM

problem solved
 
Problem solved. My Users have access to both partitions now. Thanks for the help! :D

nadroj 05-24-2005 08:42 PM

all is well now? np
just wondering what was the resolution? did you try my recommended fstab edit or were you using 'mount' command or what?

thx

mind_prodigy 05-26-2005 04:49 PM

Yes, I set my fstab up exactly like you suggested, and everything worked fine. It automounted, and all my users were able to access the partitions. I figured the 'auto' part of the lines set up the automount, so I tried using the mount command with the fstab set up without auto, and that worked fine as well. All is good now. I appreciate the help. Thanks again! ;) Oh, just for future reference, what part of those two lines of the fstab actually let my regular users use those partitions? Thanks!

nadroj 05-26-2005 10:44 PM

hmm.. im curious now, i cant seem to understand why it wouldnt work the first time...
only thing i can think of is the space you have after defaults.. can you try and experiment for me please? :D

change one of the 2 lines that were having a problem, from:
Code:

/dev/hdb1 /storage vfat defaults umask=000 1 0
to
Code:

/dev/hdb1 /storage vfat defaults,umask=000 1 0
ie: replace the space after defaults with a comma
and can you save, reboot, and do what you originally were doing and let me know if that works for that partition?

it would be appreciated, thanks

edit: if this works, i should be able to explain to you why it does


All times are GMT -5. The time now is 11:53 AM.