Linux - GeneralThis 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.
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.
Hello --- my system recently got hosed, and I was wondering if there was a way to re-install RH (either 8.0 or 7.3) from scratch, and specifying a second hard drive (which is intact), hdb, to use as the /home ? That way all my data and such could be restored from my previous drive.
Its something like:
hda ->
/etc
/var
/log
/usr
.
.
.
hdb ->
/home
Should I still recreate all the users once the new OS is installed since the /etc/passwd files and such need to be updated?
Should I use a different hdb (since it will get formatted during the install) and then later swap them? What other then the fstab files need to be updated if this is done?
The dilemma for me is that hdb is ~80 gigs and has ~50 gigs of data on it, so it is a bit much to transfer and backup
So, is my question clear? If so, any ideas? I am just not very confident that RH will not wipe out the hdb if I go through the install GUI.
If you read exactly what you are doing and pay attention to the partitioning section, you should be fine.
How hosed is it? Have you tried fixing the problem first?
If so, you can easy install RH on a second hard drive, just create your partitions there, install LILO to the MBR, point it to the correct partition, and boot to that hard drive from the BIOS....
THen once you are up and running on that hard drive, simply mount the other partitions, from the hosed drive, and copy the data and do whatever.
I would suggest reinstalling without a seperate home partition, then once the reinstall is done, adding your users (it will change its own home directory in the main partition), then delete the home directory in the main partition and edit fstab to mount hdb as home again.
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,803
Rep:
Re: RH recovery -- keeping /home from previous drive
Quote:
Originally posted by bock
I am just not very confident that RH will not wipe out the hdb if I go through the install GUI.
I have had good luck installing RH onto disks with existing data by using the ``Custom'' installation though, as I recall, it's not as automatic as the normal workstation or server installs. But... you have the option of accepting an existing partition layout before the installation proceeds. If you know the partition where /home was located, just don't assign a mount point to it when fdisk or Disk Druid runs. You can add it later.
If /home was part of your original root partition, you could swap original disk for another (you mentioned a second drive, no? Or did I not follow your explanation as well as I thought... ). I.e., make the original hda into hdb (or hdc, hdd, etc.). If you're swapping drives around, be sure to label them so you don't forget which one's which. Then install onto an empty hda. Mount the appropriate partitions on hdb (or whatever the original hda is now called) and copy the old /home files back.
BTW, you might want to consider having separate partitions/filesystems for /home and /usr/local (where a lot of your custom stuff normally gets installed). Makes future upgrades or, $DIETY forbid, reinstallations a snap.
Finally... Reinstallation is a pretty drastic step. Do you know why the system is unusable? Have you tried booting from your CD in rescue mode to repair the problem?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.