keep "/home" after reinstallation?
Hello!
I want to reinstall my Fedora Core 2, but keep my /home directory untouched because I have a lot of data witch I don't want to loose. I do not have another hdd to save it there. So, is it possible to format and reinstall Fedora with leaving my /home untouched? I thought that formatting all partitions but not /home, in the installation...whould do the trick...but I'm not sure. Maybe someone has done it before. Or another trick would be great to. Please help me with this! Thank you! Boby |
This is why it's important to have your /home as a seperate partition. In short, cut up your drive and make a partition and copy all the data there. Or, burn it all to a CD/multiple floppies. Outside of this, I think you're pretty much screwed.
|
These are my partitions:
/ /boot /home /usr /var will it work if I format only /, /boot, /usr, /var ? Or do you mean to have /home on an other hdd? Boby |
that'll be fine. just tell it not to touch /home. you might want to do it a slightly different way to feel safer, and totally ignore /home through the whole installation, and let /home be a normal directory on /. then just add it to /etc/fstab yourself, and it'll mount just fine. One note though, you, as a user are represented by a UID and as a group by the GID. These defaults might not be carried between distros. for example most distro's start user id's at 500, but i *think* BSD starts from 1000... so the UID would differ and so the files would no longer appear to be yours. if the does happen it's no biggie, you can use chown to alter the files, or use useradd (or edit /etc/passwd directly) to change your own UID.
|
hey man , I have different partitions. I used it in windows ands kept that in mind.
I have one for / (and home etc) and separate disks (partitions) for storage, ( hda5 hda6), so whatever I do at / (like new format) I don't touch my data, that are stored in other partitions. |
OK guys...I've done it! Througt the installation I formatted all partitions but didn't touched my /home.
Everything worked fine. When I log in as normal user, I have another /home/boby . This directory is in my / partition. All I want now is to use my /home partition (not directory, it's the old one that I kept) instread of the new /home directory that was newly created for user boby. I'll post here my partitions, /etc/fstab and /etc/mtab df -T Code:
[root@localhost modem]# df -Th Code:
[root@localhost modem]# fdisk -l Code:
[root@localhost modem]# cat /etc/fstab Code:
[root@localhost modem]# cat /etc/mtab Thank you! Boby |
Just delete your new home directory, and create a symbolic link to your old home partition.
|
All times are GMT -5. The time now is 01:06 PM. |