Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] How badly did I skrew up?? HOME=/ Help!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
cgmd
Veteran
Veteran


Joined: 17 Feb 2005
Posts: 1585
Location: Louisiana

PostPosted: Thu Apr 05, 2007 2:02 am    Post subject: [Solved] How badly did I skrew up?? HOME=/ Help! Reply with quote

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
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Thu Apr 05, 2007 2:54 am    Post subject: Reply with quote

Code:
cd /home
mkdir you
chown you:you you
chmod 700 you

Where you is your username.
Back to top
View user's profile Send private message
cgmd
Veteran
Veteran


Joined: 17 Feb 2005
Posts: 1585
Location: Louisiana

PostPosted: Thu Apr 05, 2007 3:04 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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