On 07/05/11 10:25, Peter Merchant wrote:
I need some advice on how to do this without cocking it up. When I built
the new system from scratch, I let it put home in the same partition as
root.
I found instructions for moving it to a new partition:
http://embraceubuntu.com/2006/01/29/move-home-to-its-own-partition/
that seem to be straightforward. When I investigated, I discovered that
my sda7 had all the home stuff from my previous build. So I didn't
remember that I had done this already.
Can I just use the steps from renaming my current home to old_home,
editing fstab as per instructions, and everything will be OK, or is
there more?
Thanks for any advice.
Peter M.
--
Next meeting: Bournemouth, Tuesday 2011-06-07 20:00
Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/
How to Report Bugs Effectively: http://goo.gl/4Xue
Yes basically. Export you current emails to any folder under / and then
logout and logon as root which isn't mount under /home. Rename /home to
/home_old.
mkdir /home
chmod 755 /home
Edit you /etc/fstab and add something like this
/dev/sda7 /home ext3 defaults 1 2
assuming it is an ext3
mount -a
mount | grep home
you should see something like
/home on /home type none (rw,bind)
ls -al /home
should show all your old files.
Obviously /home_old is still available to recover any other files.
John.
--
--------------------------------------------------------------
Discover Linux - Open Source Solutions to Business and Schools
http://discoverlinux.co.uk
--------------------------------------------------------------
--
Next meeting: Bournemouth, Tuesday 2011-06-07 20:00
Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/
How to Report Bugs Effectively: http://goo.gl/4Xue