Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
|
|
09-23-2003, 03:26 PM
|
#1
|
Member
Registered: Nov 2002
Posts: 70
Rep:
|
Rescue Mode Help
OK I think I had some file system trouble and now I am in rescue mode (RH8) the file system was found and then placed at /mnt/sysimage. Would it be possible for me to take a new hard drive and install it and then copy the files i need to the new hard drive.
Will this work?
Any other suggestions would be appreciated.
Thanks
|
|
|
09-23-2003, 04:15 PM
|
#2
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
Yes you could copy the files - you may also be able to mirror the drives using:
dd if=/dev/hda of=/dev/hdb
That mirrors hda to hdb. You may need to adjust the device names.
|
|
|
09-23-2003, 04:19 PM
|
#3
|
Member
Registered: Nov 2002
Posts: 70
Original Poster
Rep:
|
so if I shut down and install a new hard drive will I have to configure that at all. or will it just work?
Thanks
|
|
|
09-23-2003, 04:37 PM
|
#4
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
You wouldn;t need to configure the drive - just pop it in and boot with the rescue cd. Ensure that you are refferencing hte devices correctly then run that dd command.
|
|
|
09-24-2003, 01:38 PM
|
#5
|
Member
Registered: Nov 2002
Posts: 70
Original Poster
Rep:
|
I Hate to be a pain, but can you guys help me with one more step.
I have hooked up the new drive and am not sure what to do next.
I know all the files I want to copy actually it is 1 main directory and about 5 subdirectories worth of files.
I am not sure what the hard drive names are and basically do not know how to copy the info from the old hard drive to the new hard drive.
Can you help?
Thanks
|
|
|
09-24-2003, 02:24 PM
|
#6
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
If you use "fdisk -l" it will show you the drive names. If you use dd you will not need to copy individual files since it will mirror the entire drive.
|
|
|
09-24-2003, 03:45 PM
|
#7
|
Member
Registered: Nov 2002
Posts: 70
Original Poster
Rep:
|
OK thanks for that
i did the fdisk and found that hda shows as
/dev/hda1 (Linux)
/dev/hda2 (Linux)
/dev/hda3 (SWAP)
now hdb does not show the headers for the table but does not list any details (Which I take to mean that the harddrive has not been formated and partitioned)
and hdc says unable to open (Which I take to mean there is no device or 3rd hard drive.)
I guess I am now ready to opartition and format. or mirror
To mirror do I just type dd
or
do i type dd if=/dev/hda of=/dev/hdb
I think i am supposed to do dd if=/dev/hda of=/dev/hdb but just want to check.
|
|
|
09-24-2003, 03:47 PM
|
#8
|
Member
Registered: Nov 2002
Posts: 70
Original Poster
Rep:
|
OK I went ahead and typed dd if=/dev/hda of=/dev/hdb and now the computer just seems to sit there I am sure that this will take a while but I could be wrong. does this seem right
|
|
|
09-24-2003, 03:57 PM
|
#9
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
You did it right - if stands for "in file" and of stands for "out file" so it will read from hda and output to hdb. It will take quite a while and the time wil vary depending on the speed of your computer and the drives used.
|
|
|
09-24-2003, 04:52 PM
|
#10
|
Member
Registered: Nov 2002
Posts: 70
Original Poster
Rep:
|
OK thanks.
I will let the computer sit, it has sit for about 1.5 hours.
Should I be concerned maybe after 5 hours.
Thanks again.
(I do not hear the hard drives doing anything.)
|
|
|
All times are GMT -5. The time now is 05:24 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
|
|