[Dorset] Help with /home

2011-05-07 Thread Peter Merchant
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


Re: [Dorset] Help with /home

2011-05-07 Thread John Cooper

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   ext3defaults1 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


Re: [Dorset] Help with /home

2011-05-07 Thread Ralph Corderoy
Hi,

John Cooper wrote:
 Export you current emails to any folder under /

Best to avoid /tmp just in case you re-boot for some reason and the
machine is set up to clear /tmp on boot.  Been there, done that...

Cheers,
Ralph.

--
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


Re: [Dorset] Help with /home

2011-05-07 Thread John Cooper

On 07/05/11 15:06, Ralph Corderoy wrote:

Hi,

John Cooper wrote:

Export you current emails to any folder under /


Best to avoid /tmp just in case you re-boot for some reason and the
machine is set up to clear /tmp on boot.  Been there, done that...

Cheers,
Ralph.

--
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

I agree, best avoided, though most distros don't wipe /tmp on a reboot. 
Fedora has tmpwatch installed by default to remove old /tmp files after 
30 days (cronjob).


--
--
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


[Dorset] Help with /home - Thanks

2011-05-07 Thread Peter Merchant
Thanks to John Cooper for his excellent instructions. I have now got
back all my home stuff. 

I haven't been able to get back the last couple of days emails, because
I like evolution the way it was before the upgrade and don't want to
restore all settings and data. 

editing fstab - because it is kubuntu I had to do everything via sudo.
Kate wouldn't work because  /home had disappeared. I couldn't remember
the command in vi, so I had to try (and learn) nano. 

Thanks again. 

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


Re: [Dorset] Help with /home - Thanks

2011-05-07 Thread John Cooper

On 07/05/11 20:54, Peter Merchant wrote:

Thanks to John Cooper for his excellent instructions. I have now got
back all my home stuff.

I haven't been able to get back the last couple of days emails, because
I like evolution the way it was before the upgrade and don't want to
restore all settings and data.

editing fstab - because it is kubuntu I had to do everything via sudo.
Kate wouldn't work because  /home had disappeared. I couldn't remember
the command in vi, so I had to try (and learn) nano.

Thanks again.

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



I was going to say set the root password but thought it would just add 
too much info, but if you want to logon as root in Ubuntu, logon as 
normal then


sudo password root

Enter your own password (once)
Enter the new password for root (twice)

Log off and logon as root

You are logged on under /root and not /home/root therefore can move 
/home as necessary. So you can use kate, vi or nano as usual plus any 
other familiar tools on your desktop.


A very good tip is to back up any config file BEFORE editing it, so for 
fstab, as root or use sudo


cd /etc
cp fstab fstab.orig

Then do your edits. It is surprising how easy it is to mess up the file 
and corrupt it, so a backup is essential.


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