View previous topic :: View next topic |
Author |
Message |
cgmd Veteran
Joined: 17 Feb 2005 Posts: 1585 Location: Louisiana
|
Posted: Thu Apr 05, 2007 2:02 am Post subject: [Solved] How badly did I skrew up?? HOME=/ Help! |
|
|
Hi...
I thought I would get smart and sub partition my home partition. My home partition was /dev/sda4. I made a tarball of home/: Code: |
tar cvpf home_bu.tar /home |
I then moved home_bu.tar to / (/dev/sda3) for safekeeping while I repartitioned, making /dev/sda4 (extended), /dev/sda5 (portage/) and /dev/sda6 (home/). (I made the 2 new partitions ext3).
Then, my error... I simply untarred home_bu.tar, from it's location within / .
I realized a problem, when I then rebooted, and upon logging in as cgmd wound up with: Code: |
chuxtux login: cgmd
Password: ********
Last login: Wed Apr 4 20:23:36 2007 on tty1
No directory, logging in with HOME=/
cgmd@chuxtux / $ |
How do I fix things such that I once again log into /home/cgmd rather than logging into / ??
I need to permanently change the shell variable such that HOME=/home/cgmd
Edit: Resolved this by untarring from within /home, which produced another home/ tree. In turn, I moved all the subdirectories of the second home tree up one level. I then deleted the empty /home/home/ , and rebooted. All is now back to normal!!
Thanks! _________________ "Primum non nocere" ---Galen
Last edited by cgmd on Thu Apr 05, 2007 2:59 am; edited 1 time in total |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Thu Apr 05, 2007 2:54 am Post subject: |
|
|
Code: | cd /home
mkdir you
chown you:you you
chmod 700 you |
Where you is your username. |
|
Back to top |
|
|
cgmd Veteran
Joined: 17 Feb 2005 Posts: 1585 Location: Louisiana
|
Posted: Thu Apr 05, 2007 3:04 am Post subject: |
|
|
Hi, PaulBredbury...
Thanks for that suggestion. I didn't think to solve it that way, I'll use that next time. My solution is in the edited post, above.
Thanks, again! _________________ "Primum non nocere" ---Galen |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|