LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mount An Existing ext3 Partition (https://www.linuxquestions.org/questions/linux-newbie-8/mount-an-existing-ext3-partition-332014/)

br00tal 06-09-2005 07:07 PM

Mount An Existing ext3 Partition
 
Hey,
Searched the forums, but I failed to find anyone with this exact issue...

I'm trying to mount a hard disk that has an existing ext3 partition on it with some files. The disk itself is going to be a file storage center for my website. It's listed as "hdb," so I tried mounting it in fstab like this:

/dev/hdb /webspace ext3 defaults 0 0

I also tried it with "1 2" instead of 0 0, and then the machine wouldn't even boot...it gave a superblock error at boot, and I had to perform maintanence on the filesystem to vi by removing that line from fstab.

Also, yes, I did create the /webspace directory.

I know I'm missing a step or three somewhere. Anyone know what to do?

Thanks,
Jesse

mcd 06-09-2005 07:14 PM

first, i believe you need the partition number also, ie: /dev/hdb1 or /dev/hdb2

i'm curious...when you say you try "mounting it in fstab" you rebooted right? because the fstab entries are only mounted during boot. if you want to do a one-off mount, try

mount /dev/hdb2 /webspace

i think that'll work. check man mount if you get an error. also, just as a piece of advice, you should create /mnt/webspace and mount there instead of the / directory just to follow tradition.

br00tal 06-09-2005 08:09 PM

Ah, I can't believe I missed the number! That was my issue with that. Yes, I rebooted, as I know fstab is only called upon once, which is at boot.

Now, I want to make this filesystem read and writable by normal users...I can't remember the command...is it umask=00? Thanks!

mcd 06-10-2005 12:08 AM

umask=000 i think is what i have for my shared fat32 partition, i'm not sure if the third one is necessary or not.


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