LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mounting 2nd ext3 HDD (https://www.linuxquestions.org/questions/linux-newbie-8/mounting-2nd-ext3-hdd-337874/)

redmoon 06-27-2005 10:02 PM

mounting 2nd ext3 HDD
 
Hi team,

I'm running Ubuntu 5.04 and I have a second blank HDD (40 GB) that i formatted as ext3 with the GParted program.

How do i mount this drive under something like "/space" or "/storage" so that I can read/write and it is permanently there?

Would appreciate some help, cheers.

Matir 06-27-2005 10:06 PM

Code:

mkdir /space
Then, add to /etc/fstab:
Code:

/dev/hdXN /space defaults 0 0
Where /dev/hdXN is the new drive and partition.

redmoon 06-27-2005 10:14 PM

Hi Matir,

i get this when i attempt your solution:


unknown filesystem type 'defaults'


what now?

Matir 06-27-2005 10:16 PM

Oops, I'm sorry, I forgot the filesystem. My apologies. Before "defaults", add ext3. My apologies.

redmoon 06-27-2005 10:26 PM

Hi Matir,

cheers, i have mounted the drive now BUT...

i can't write anything to it...an error window pops up saying i don't have permisisons...

can you help me out?

Matir 06-27-2005 10:31 PM

Well, as with anything in the system, the proper permissions must be set on folders and files in it.

redmoon 06-28-2005 03:02 AM

Got it! Thanks so much for your help, it is much appreciated.

Matir 06-28-2005 08:47 AM

No problem. Glad I was able to help.

bpilgrim1979 07-22-2005 12:28 AM

Hello, I have a similar situation.

In order to run shell scripts, I had to add exec,defaults to fstab line.

Also, is it advisable to mount into /mnt/space instead of /space? Doing so will show df command properly. And when mounting into /mnt/space, my desktop user didn't have access to that drive, only subdirectories my root account specifically set. Is that a recommended setup?


All times are GMT -5. The time now is 09:18 PM.