LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 01-04-2005, 09:33 AM   #16
MasterCephus
LQ Newbie
 
Registered: Jul 2004
Posts: 28

Original Poster
Rep: Reputation: 15

ok I have gotten the hard drive mounted! Thank you all who helped me!

Now I have another question to ask you guys.

Say I mounted the /dev/hdb1 in the /mnt folder in a folder: /mnt/media

Should I be able to cd /media? or will I always have to say /mnt/media?
 
Old 01-04-2005, 09:57 AM   #17
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Quote:
Say I mounted the /dev/hdb1 in the /mnt folder in a folder: /mnt/media

Should I be able to cd /media? or will I always have to say /mnt/media?
Since media in this case is a subdirectory of /mnt then you need to use the full path...
cd /mnt/media .
If media was a directory on the same level as /mnt then you could use just cd /media.

Also, you can have it mounted automatically on reboot by putting a entry in the /etc/fstab ....
/dev/hdb1 /mnt/media ext3 defaults 0 0
 
Old 01-04-2005, 10:19 AM   #18
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
if this drive is a permanent fixture, and a 100% part of your linux system, don't leave it in /mnt/. /var is a much better place for it. entries in /mnt are only for temporary or removable media, e.g. cds.
 
Old 01-04-2005, 10:24 AM   #19
MasterCephus
LQ Newbie
 
Registered: Jul 2004
Posts: 28

Original Poster
Rep: Reputation: 15
how do I move it?

I did everything like Homey said:

5. Make a directory in the mount folder such as /mnt/stuff
6. Mount the new partition in the new folder. For example....
mount /dev/hdb1 /mnt/stuff -t ext3

and I put an entry in the /etc/fstab...
 
Old 01-04-2005, 10:33 AM   #20
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
just change the name of the directory in fstab and create /var/media. that's a really simple one... nothing tricky there.
 
  


Reply



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
2nd hard Drive grabro Linux - Hardware 1 02-05-2005 05:49 AM
2nd Hard Drive snutz411 Linux - Hardware 3 03-24-2004 12:52 PM
2nd hard drive neo.sarcastic Linux - Hardware 4 09-22-2003 11:22 PM
2nd Hard Drive Tad Linux - Hardware 6 05-22-2003 12:47 PM
2nd hard drive jarrodatt Linux - Hardware 1 11-12-2002 02:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:31 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
Open Source Consulting | Domain Registration