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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-23-2005, 11:45 PM
|
#1
|
Member
Registered: May 2004
Posts: 64
Rep:
|
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!
|
|
|
02-23-2005, 11:52 PM
|
#2
|
Member
Registered: Jan 2005
Location: Perth, Western Australia
Distribution: Slackware 10.2, LFS6.1.1
Posts: 41
Rep:
|
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
|
|
|
02-23-2005, 11:59 PM
|
#3
|
Member
Registered: May 2004
Posts: 64
Original Poster
Rep:
|
I get this:
mount: can't find /dev/hdb2/mnt/hd in /etc/fstab or /etc/mtab
|
|
|
02-24-2005, 12:04 AM
|
#4
|
Senior Member
Registered: Jan 2003
Posts: 2,786
|
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 12:14 AM.
|
|
|
02-24-2005, 12:10 AM
|
#5
|
Member
Registered: May 2004
Posts: 64
Original Poster
Rep:
|
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?
|
|
|
02-24-2005, 12:17 AM
|
#6
|
Senior Member
Registered: Jan 2003
Posts: 2,786
|
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 12:19 AM.
|
|
|
02-24-2005, 12:29 AM
|
#7
|
Member
Registered: May 2004
Posts: 64
Original Poster
Rep:
|
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
|
|
|
02-24-2005, 12:39 AM
|
#8
|
Member
Registered: Jan 2005
Location: Perth, Western Australia
Distribution: Slackware 10.2, LFS6.1.1
Posts: 41
Rep:
|
cp /mnt/hd/home/joel/* /home/joel/ -R
|
|
|
02-24-2005, 01:00 AM
|
#9
|
Member
Registered: May 2004
Posts: 64
Original Poster
Rep:
|
Success. How great was that!
Thank you truly - for all your help!
joel
|
|
|
All times are GMT -5. The time now is 10:47 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|