Linux - NewbieThis 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.
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.
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.
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.
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'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.
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.