I m not usre how you did that... but I did it in RHCE exam !! Wanted to delete /rhome used rm -fr tab and enter... the folder /rhome had permission issues.. and it didnt allow root to access/delete it.. that way i lost /root folder... with 1 hr 15mins to go.. I had to start from scratch as at that point I couldn't afford to put time to think of a workaround.
I did create a folder /root from init 1 but it needs to have .bash* files.. and if i create a user root.. it will disallow... cos it already exists.. you will need to comment the line for root (from init 1) in /etc/passwd (take backup of this file b4 any edition) before you do what nadeem suggests. and when creating user root.. do useradd -d /root root else it will go to /home/root --- In [email protected], "Nadeem M. Khan" <[EMAIL PROTECTED]> wrote: > > > root partition is deleted how to restore it > > From backups. Thats the only way. > > Since the root password is deleted, you won't be able to login as > root. Login to single user / rescue mode and change root's home to > some other partition, or make some other user root by setting its UID > fo zero in /etc/passwd. > > BTW, how did you do something as wierd as delete your root partition? > Is this a production environment? > > Regards, > NMK. >
