recovering "lost" users..... probably stupid question (stupid user.......)
Hey ho!
Nice dist upgrade to Ubuntu 9.10 this morning.........not! To start with, the dist upgrade seemed to be going Ok, but it "lost" my partners login. Her /home is still there, but it wouldn't let me add her username again, it just comes up with the same error about there already being a /home/username partition for her. Since then, I tried to cure this with the "idiot windows user cure all" and downloaded and re-installed (mainly because I'm an impatient idiot), this has resulted in loosing my login as well. I can still see my /home/bigjohn partition area in the /home partition but I can't add my username either. I've managed to get round this for the moment by adding a completely new user called "bigjohnspc" but I'm hoping that when I've reinstated our normal user names I can dump that. Can someone kindly point me in the right direction please as this is stressing me out like you wouldn't believe........ ? regards John |
Quote:
When this happens, I tend to think that the UID has changed for the user. *Nix tends to look at the numeric UID rather than the user's name. What happens when compare the UID of your passwd file and the UID of your old 'bigjohn' home directory, like this: Code:
export USER='bigjohn'; ls -ln /home | grep $USER | awk '{print $3}' |
Quote:
|
Quote:
|
Quote:
I never did find out what happened to my firefox bookmarks and stuff like that, those just seemed to disappear despite copying all my /home to the shared partition. Ah well, that'll teach me to believe it when they offer upgrades. I'll just have to download as burn a disc of the new version next time. It still seems that even within the same distro, that upgrading is very precarious and not to be trusted, whereas it does seem less problematic to do a full install of the newer version. Why that might be I don't know but it seems to have been like this forever..... why "they" can make it so that's it's a painless/lossless upgrade? well I don't know enough about it to even guess... thanks again for the assist regards john |
Dedicated partition for /home
I have a theory that if you put /home onto a dedicated partition, this will preserve it when you re-install or upgrade - you would just tell the new set-up process to mount /home on this partition. Furthermore, it may be possible to have two separate Linux installations sharing the same data.
I have never done this myself, but plan to do so next time I upgrade. I'd be pleased to hear from anyone else whether this would work, or whether the problem of UUIDs mentioned above would screw thing up. |
Quote:
|
All times are GMT -5. The time now is 02:36 AM. |