LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-27-2004, 02:05 AM   #1
dkw
LQ Newbie
 
Registered: Jul 2004
Location: Illinois
Distribution: Debian Testing
Posts: 22

Rep: Reputation: 15
brainfart: mounting a new ide drive


Been away from Linux for a couple of years now, forgotten a lot of things and having what amounts to a simple problem I'm sure. When I installed FC2 I forgot to allow it to auto mount the 2nd hard drive in my system and I can't remember how to manually do it in the manner I'd like.

I've looked around a bit and found this link:

linuxgazette.com/issue38/cooper.html

and following that I did get my newly installed drive to mount, however what I cannot remember how to do (nor find the solution to) is how to make it show up at: /data

What I have done so far is:
Code:
[localuser@localhost]# cd /mnt
[localuser@localhost /mnt]# mkdir data
[localuser@localhost /mnt]# chmod 777 data
[localuser@localhost /mnt]# mount -t ext3 /dev/hdb1 /mnt/data
and I added this line to /etc/fstab
/dev/hdb1 /mnt/data ext3 defaults 1 1


I assume I could just make a link, but is there another way?
 
Old 07-27-2004, 02:17 AM   #2
jax8
Member
 
Registered: Feb 2004
Location: Australia
Distribution: Ubuntu, Fedora 10
Posts: 632

Rep: Reputation: 31
just make a symbolic link to /mnt/data using the

ln -s

command

type

man ln

more the parameters
 
Old 07-27-2004, 02:18 AM   #3
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 376Reputation: 376Reputation: 376Reputation: 376
you want it mounted at "/data" instead of "/mnt/data"???

Code:
[localuser@localhost]# mkdir /data
[localuser@localhost]# mount -t ext3 /dev/hdb1 /data
fstab would look like:

/dev/hdb1 /data ext3 defaults 1 1

=)


Last edited by win32sux; 07-27-2004 at 02:48 AM.
 
Old 07-27-2004, 02:21 AM   #4
dkw
LQ Newbie
 
Registered: Jul 2004
Location: Illinois
Distribution: Debian Testing
Posts: 22

Original Poster
Rep: Reputation: 15
win32sux: Correct, I've just forgotten if it's possible to do that - or if I need to settle for a link (as jax8 mentioned)
 
Old 07-27-2004, 02:26 AM   #5
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 376Reputation: 376Reputation: 376Reputation: 376
Quote:
Originally posted by dkw
win32sux: Correct, I've just forgotten if it's possible to do that - or if I need to settle for a link (as jax8 mentioned)
on linux you don't need to settle for ANYTHING!!!

=)


let us know if there's anything else you wanna know...

good luck!!!
 
Old 07-27-2004, 02:32 AM   #6
dkw
LQ Newbie
 
Registered: Jul 2004
Location: Illinois
Distribution: Debian Testing
Posts: 22

Original Poster
Rep: Reputation: 15
Ah beautiful, thanks win32sux - just what I was trying to do!

Now to figure out why my smb.conf rewrites itself on boot, and the next project is sendmail (though I'm debating postfix instead)... and apache, php, mysql - can you tell it's going to be a busy week?
 
Old 07-27-2004, 02:51 AM   #7
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 376Reputation: 376Reputation: 376Reputation: 376
sounds like someone is gonna have some fun this week!!!

=)


keep us posted, let us know if you need help with anything...

have fun!!! good luck with your LAMP server!!!

=)


PS: yeah, sendmail has a really bad security reputation...


Last edited by win32sux; 07-27-2004 at 02:54 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting a new IDE drive. elliottlake Linux - Newbie 8 01-25-2005 07:47 AM
Difference between IDE drive and IDE to CF adaptor? 2kman Linux - General 0 12-21-2004 06:45 PM
IDE ZIP and mounting it santiagosilva Linux - Hardware 2 03-11-2004 01:18 PM
Mounting a hard-drive on secondary ide linuxjuggler Linux - Newbie 1 12-16-2003 01:15 AM
Need to remove text in Gimp (brainfart in progress) Muddy Linux - Software 2 10-23-2003 02:29 PM


All times are GMT -5. The time now is 02:34 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration