Make sure to go to single user mode before unmounting and maintaining
the /home partitio, i.e., as root, issue the command
# init 1
Provide your root password, copy/rsync the old /home partition to the
new device; modify the /home line in /etc/fstab to point to the new home
device. After everything is finished, issue the command
# exit
and your machine will boot into multi-user mode. If everything is in
good order, you should see all your regular user files.
HTH, Hendrik Schaink
Gustin Johnson wrote:
> On Monday 10 October 2005 17:11, Shawn wrote:
>
>>You might need to modify the setting in /etc/fstab that says where to
>>find /home.
>>
>>Also, you might want to try copying the existing /home files/directories
>>into the new location. If you do this (remember to keep the permissions
>>intact), you should be able to log in and notice no difference than before
>>- other than files are now saved to the new partition.
>>
>>So, you'd need the following steps (going from memory here, hope I don't
>>miss any):
>>
>>1. Create new partition (sounds like you've already done this)
>>2. Mount the new partition to a temporary location
>> (i.e. mount /my/new/partition /mnt/tmp
>> - mount to some place outside the home partition)
>>3. Copy over the existing /home directory
>> (i.e. cp -a /home/* /mnt/tmp
>> - notice the -a - it's archive which is the same as -dpr)
>>4. Unmount the new location
>> (i.e. umount /mnt/tmp)
>>5. Edit the /etc/fstab file - change the /home entry to point to
>> /my/new/partition)
>>6. reboot. (this may not be necessary, but should avoid some problems that
>>you might encounter with unmounting /home )
>
>
> Should not need to be done. This is best done from the command line (ie no
> GUI) and as root (whos home directory usually resides in /root)
>
>
>>7. Login - you should be able to login fine, and find your existing files.
>>If so, do one final test - create a new file, then as root find out what
>>partition it got saved to. If all went well, it should be on the new
>>partition, but not in the old /home location.
>>
>>DON'T FORGET TO BACKUP critical files first (like /etc/fstab).
>>
>>If you run into any problems, just change /etc/fstab back to the original
>>settings, and you should be fine.
>>
>>Now, that said, I haven't actually gone through this procedure myself
>>(yet), but my understanding of the file systems says this should work fine.
>>(hopefully someone will correct me if I'm wrong).
>
>
> I have done this a few times (not always the /home dir, sometimes /var /tmp
> and so on, for these choosing a lower runlevel or using knoppix is your
> friend), the only problems have been with incorrect permissions. cp -a
> should preserve permissions, though I prefer to use rsync -avu
> Eg:
> rsync -avu /home /new-home
> umount /new-home
> change /etc/fstab so that the partition that was mounted as /new-home now
> mounts to /home
> mv /home /old-home (if the old /home was not mounted on its own partition)
> mkdir /home
> mount /home
>
> If everything is ok you can remove old-home or burn to dvd etc.
>
> Always BACKUP YOUR DATA. You will screw this up (maybe not this time, but
> eventually... trust me :)
>
>
>>Good Luck.
>>
>>Shawn
>>
>>On Monday 10 October 2005 16:09, Jon wrote:
>>
>>>Hi All,
>>>
>>>I've created a separate partition for my home dir, but I can't figure out
>>>how to point my user account to it. I've tried just updating the entry
>>>for my user in my /etc/passwd file, but I don't know if that's the right
>>>thing to do. It seems to work, but everything else on my system stops
>>>working...my sound, my desktop disappears...etc.
>>>
>>>Is there somthing I'm missing?
>>>
>>>Thanks!
>>>
>>>Jon
>>>
>>>
>>>--
>>>Convert Them All!
>>>personal: http://www.jonwatson.ca
>>>GNU/Linux Podcast: http://www.thepodcastnetwork.com/linuxuser
>>>New Linux User Blog: http://www.newlinuxuser.com
>>>skype: jondwatson
>>>Registered GNU/Linux User #391254
>
>
> _______________________________________________
> clug-talk mailing list
> [email protected]
> http://clug.ca/mailman/listinfo/clug-talk_clug.ca
> Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
> **Please remove these lines when replying
--
Hendrik M. Schaink
Chief Consultant
"Integrated Business Solutions & Dependable Service"
InfoVision Consulting
Calgary, Alberta, Canada
Phone: (403) 239-0099
"The Vision: We are the partners of choice for companies and
organizations that share our commitment to creating a world
that is truly wise, courageous, prosperous, innovative,
inclusive, sustainable and humane." --Ruben Nelson
GPG Fingerprint: 1371 0927 8C3C 831F A838 C312 68BC F5DB 010D F3D7
_______________________________________________
clug-talk mailing list
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying