LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-10-2003, 09:04 AM   #1
jdubchak
LQ Newbie
 
Registered: Apr 2003
Location: St Louis, mO
Posts: 7

Rep: Reputation: 0
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
 
Old 04-10-2003, 03:33 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,570

Rep: Reputation: 171Reputation: 171
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.
 
Old 04-10-2003, 06:12 PM   #3
jdubchak
LQ Newbie
 
Registered: Apr 2003
Location: St Louis, mO
Posts: 7

Original Poster
Rep: Reputation: 0
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
 
Old 04-10-2003, 06:20 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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
 
Old 04-10-2003, 08:49 PM   #5
jdubchak
LQ Newbie
 
Registered: Apr 2003
Location: St Louis, mO
Posts: 7

Original Poster
Rep: Reputation: 0
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
 
Old 04-10-2003, 08:51 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Quoting myself :)
What exactly is in /mnt/sysimage?
Come on mate, help me understand
what you are trying to achieve!


Cheers,
Tink
 
Old 04-10-2003, 09:06 PM   #7
jdubchak
LQ Newbie
 
Registered: Apr 2003
Location: St Louis, mO
Posts: 7

Original Poster
Rep: Reputation: 0
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
 
Old 04-10-2003, 09:40 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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
 
Old 04-10-2003, 10:02 PM   #9
jdubchak
LQ Newbie
 
Registered: Apr 2003
Location: St Louis, mO
Posts: 7

Original Poster
Rep: Reputation: 0
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
 
Old 04-10-2003, 10:14 PM   #10
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Well, I really hope for you that that's it! :}
Just permissions.

Keep us informed!

Cheers,
Tink
 
Old 04-11-2003, 05:43 AM   #11
jdubchak
LQ Newbie
 
Registered: Apr 2003
Location: St Louis, mO
Posts: 7

Original Poster
Rep: Reputation: 0
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
 
  


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
cannot using FTP move command to move files adrianmak Linux - Networking 4 04-21-2009 12:01 PM
Lost root passwd and can't enter resuce mode musikalg Linux - Software 3 09-18-2005 08:33 AM
Knoppix to the resuce... Lleb_KCir LinuxQuestions.org Member Success Stories 8 04-22-2005 12:01 PM
the best way to move files around..... thegreggwong Linux - Software 5 08-28-2004 05:20 PM
system hangs when attempting to play avi or mov files jankom Linux - Software 10 06-06-2004 09:13 PM


All times are GMT -5. The time now is 08:24 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration