LinuxQuestions.org
Register a domain and help support LQ
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 02-24-2005, 12:45 AM   #1
joel b
Member
 
Registered: May 2004
Posts: 64

Rep: Reputation: 15
accessing a 2nd drive I added


Hello - I am using Fedora Core3, and added a 2nd hard drive - this hd is from my old linux box, it has a defective suse 9.1 os and about 60 gigs of media files in /home/joel (me).
I want to know how to access that directory which I think is dev/hdb2/home/joel/music and move it to hda1, then erase hdb and use it for archiving mp3's which may be accessed by all users on my system.

thanks!
 
Old 02-24-2005, 12:52 AM   #2
roninja
Member
 
Registered: Jan 2005
Location: Perth, Western Australia
Distribution: Slackware 10.2, LFS6.1.1
Posts: 41

Rep: Reputation: 15
as root type
mkdir /mnt/hd
mount /dev/hdb2 /mnt/hd
then you should be able to access it by typing
cd /mnt/hd/home/joel
 
Old 02-24-2005, 12:59 AM   #3
joel b
Member
 
Registered: May 2004
Posts: 64

Original Poster
Rep: Reputation: 15
I get this:

mount: can't find /dev/hdb2/mnt/hd in /etc/fstab or /etc/mtab
 
Old 02-24-2005, 01:04 AM   #4
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
You missed a space in that command
Code:
mount /dev/hdb2  /mnt/hd
EDIT: Ooops, left off the '2'

Last edited by Dark_Helmet; 02-24-2005 at 01:14 AM.
 
Old 02-24-2005, 01:10 AM   #5
joel b
Member
 
Registered: May 2004
Posts: 64

Original Poster
Rep: Reputation: 15
OK - Thanks! I got through that command, and then -
bash: cd: /mnt/hdb2/home/joel: No such file or directory

hdb2 is a basic suse 9.1 setup - do I maybe have the wrong path?
 
Old 02-24-2005, 01:17 AM   #6
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
You would cd to it with this command:
Code:
cd /mnt/hd/home/joel
Quote:
bash: cd: /mnt/hdb2/home/joel: No such file or directory
It just looks like you accidentally used the device name there instead of just plain old hd. Unless, of course, you were tweaking the earlier commands a little before running them on your system.

EDIT:
If you still get an error, then it's either the wrong partition, or a slightly different path than you recall. It really depends on how the Suse system was set up (with regard to partitions).

Last edited by Dark_Helmet; 02-24-2005 at 01:19 AM.
 
Old 02-24-2005, 01:29 AM   #7
joel b
Member
 
Registered: May 2004
Posts: 64

Original Poster
Rep: Reputation: 15
you are a genious. One more thing - to copy this huge directory to hda/home/joel so that I can delete everything else there, (there are about 7 directories here with 60 gig total, would my command look like this -

cp /mnt/hd/home/joel/* /home/joel/

???

Thank you so much for all this - you have saved me hours!

joel
 
Old 02-24-2005, 01:39 AM   #8
roninja
Member
 
Registered: Jan 2005
Location: Perth, Western Australia
Distribution: Slackware 10.2, LFS6.1.1
Posts: 41

Rep: Reputation: 15
cp /mnt/hd/home/joel/* /home/joel/ -R
 
Old 02-24-2005, 02:00 AM   #9
joel b
Member
 
Registered: May 2004
Posts: 64

Original Poster
Rep: Reputation: 15
Success. How great was that!

Thank you truly - for all your help!

joel
 
  


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
Added a 2nd Sata Drive installed Fedora Core 5, BIOS Doesn't See 2nd Drive. mtmcc1 Linux - General 3 12-03-2005 05:01 PM
accessing 2nd hard drive in fc3 harnadem Linux - Newbie 5 03-08-2005 07:44 PM
Added 2nd router - not working tw001_tw Linux - Networking 4 01-30-2005 04:20 PM
One switch, One monitor, just added 2nd box... justin_p Linux - Networking 3 08-18-2004 07:13 AM
accessing 2nd har d drive mkzmonkeylagger Linux - Hardware 4 04-11-2004 07:41 AM


All times are GMT -5. The time now is 05:52 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration