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.
|
 |
04-10-2003, 09:04 AM
|
#1
|
LQ Newbie
Registered: Apr 2003
Location: St Louis, mO
Posts: 7
Rep:
|
Attempting to move files while in resuce mode
Hello,
I've recently purchased a new hard drive, installed it as a master and then installed Redhat 9 on it. Then I connected my old hard drive as a slave and have attempted to mount the various partitions and move files from the old to the new drive but then when I reboot the machine I don't see the newly copied files.
Here's what I've done:
1. Booted using linux rescue from Disc 1 of the installation CDs.
2. chroot /mnt/sysimage
3. mount -t ext3 /dev/hdb5 /old_drive
4. mv /old_drive/home/me/docs /home/me
5. Disconnect old drive and reboot.
6. "docs" dir is not visible from /home/me.
Did I do something wrong? If this is not the correct process can anyone please help me with what steps I need to follow in order to successfully move files from the old drive to the new drive.
Thanks for any and all assistance.
John
|
|
|
04-10-2003, 03:33 PM
|
#2
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
I'd mount them both: old and new and then copy/move. Whan you do it that whey you don't depend on the rescue mode software that works differently in different distros.
|
|
|
04-10-2003, 06:12 PM
|
#3
|
LQ Newbie
Registered: Apr 2003
Location: St Louis, mO
Posts: 7
Original Poster
Rep:
|
Mara,
What I was saying was that I had booted into rescue mode because by configuring my system to boot with both drives in causes a great many errors and an unsucessful boot.
When I boot in rescue mode, its simply like booting from a floppy for me. That's all.
Thanks for your reply.
John
|
|
|
04-10-2003, 06:20 PM
|
#4
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Hi John!
Just for clarification (see whether I
understand what's happening) ...
What exactly is in /mnt/sysimage?
Is it representing a physical part
of you new HDD (as in /dev/hda2)?
If it's not then you're probably copying
the files into nirwana (ramfs?) which of
course means they are "invisible" (AKA
non-existent) on reboot ...
Cheers,
Tink
|
|
|
04-10-2003, 08:49 PM
|
#5
|
LQ Newbie
Registered: Apr 2003
Location: St Louis, mO
Posts: 7
Original Poster
Rep:
|
Yes, they are invisible on reboot. What would you suggest to get the files "visible"? I really can't afford to lose the data and am pretty afraid to do too much with any of the system until the data is safe.
I don't have a back up of...I know, I should.
Thanks again for your help.
John
|
|
|
04-10-2003, 08:51 PM
|
#6
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Quote:
Quoting myself :)
What exactly is in /mnt/sysimage?
|
Come on mate, help me understand
what you are trying to achieve!
Cheers,
Tink
|
|
|
04-10-2003, 09:06 PM
|
#7
|
LQ Newbie
Registered: Apr 2003
Location: St Louis, mO
Posts: 7
Original Poster
Rep:
|
Tinkster,
Ok, the files are on an old drive.
I'm trying to move the files from the old drive onto
the new drive. The only way I can get to the old drive
and view the files (or do anything with them) is through
the booting of the system to /mnt/sysimage.
Obviously, like you said, they are invisible on reboot.
I get to the /mnt/sysimage by booting from the CD Disc 1
of Redhat 9 and then going into linux rescue. This allows
me to do a chroot /mnt/sysimage and view the file system.
I thought it would be something as simple as copying
the files from the old drive to the root partition of the new
drive.
Did I explain it so that it makes sense?
John
|
|
|
04-10-2003, 09:40 PM
|
#8
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Perfect mate :)
Now, when you are in rescue mode on /
Does it show all the "normal directories"
that you'd expect to be there? The reason
that I am asking that is because I just grabbed
an old set of RH 7.3 CD's and booted a ext3
system in rescue mode, using continue, getting
hda1 mounted, but there was no home directory
which I found rather strange...
Also, if you did
Quote:
4. mv /old_drive/home/me/docs /home/me
|
and it didn't fail ... is it (the /docs-directory)
still there (on hdb) after a reboot?
If it's not it's probably just a permission
problem? Different uid on the new install?
If you su -, what do you see in
Code:
cd /home
ls -l
ls -l me
Cheers,
Tink
|
|
|
04-10-2003, 10:02 PM
|
#9
|
LQ Newbie
Registered: Apr 2003
Location: St Louis, mO
Posts: 7
Original Poster
Rep:
|
Quote:
Originally posted by Tinkster
If it's not it's probably just a permission
problem?
|
Ok, if I mount /mnt/sysimage using chroot, whoami at
that point? I would expect to be root, I'll need to rearrange
everything and reboot the system in order to get in and
try it.
I won't be able to do that until tomorrow, but
thank you very much for the insight.
Regards,
John
|
|
|
04-10-2003, 10:14 PM
|
#10
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Well, I really hope for you that that's it! :}
Just permissions.
Keep us informed!
Cheers,
Tink
|
|
|
04-11-2003, 05:43 AM
|
#11
|
LQ Newbie
Registered: Apr 2003
Location: St Louis, mO
Posts: 7
Original Poster
Rep:
|
Tinkster,
You nailed it. It was a permissions thing. Evreything is
moved and my stress level has now diminished
significantly...now, where to begin on the backup
strategy?
Once again, thank you, I really appreciate your
assistance.
John
|
|
|
All times are GMT -5. The time now is 09:55 AM.
|
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
|
|