Re: Ask EU: Ubuntu
- From: Nick <3-nospam@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 04 Nov 2009 07:39:20 +0000
Tim Hall <timhall@xxxxxxxxxxxxxxxxxxxxxxx> writes:
On Wed, 4 Nov 2009 00:02:29 +0000, Derek Turner <frderek@xxxxxxxxxxx>
On Tue, 03 Nov 2009 22:56:49 +0000
Tim Hall <timhall@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
Can I jump in with a Ubuntu question of my own?
I've just installed 8.10 on a machine that previously had W2k on it.
Said machine has two hard disks, one of which is used as a data store.
As I wasn't comptely sure what I was doing during the install, I
disconnected that drive,installed on the other drive and then
reconnected the data drive.
No major dramas, new drive recognised OK. But what I'd like to do is
set the /home partition to be on the new drive. At the moment it's a
folder on the other drive, and not even on a separate partition.
To complicate matters slightly the data store drive was partitioned
into three, called Data Partition, OS1 partition and OS2 partition.
This was when I had vague ideas a year ago of installing two OSs onto
each of those partitions, both looking at the data partition. It's
NTFS if that makes a difference.
so what was the question?
Is there a way of making the Data Partition on the data store drive
the /home/user_name folder? Bearing in mind that the data storedrive
was added to the machine after Ubuntu was installed and the current
/home folder is on the "other" drive.
The answer is "yes", but there is still a lot more to ask. Do you want
to keep any of the existing data? Is there any good reason not to clean
out the second disk (copying useful data off it onto the main one for
the time being) and reformat it in a Linux format. You're going to get
some (I don't know how big) performance hits from having your home
directory in a foreign file format.
My recommendation would be to (I've invented all the paths below, but
I'm sure you can replace them with whatever you actually get). This is
the command line version, you can do all of this interactively if you
want (but it's a lot harder to describe!).
cp -rp /media/data_partition other_data
use fdisk /dev/whatever to remove all the partitions off the old disk
use mkfs.ext? /dev/whatever to put a filesystem on the "old" disk
mount /dev/whatever /media/data_patition
cp -rp other_data /media/data_partition
sudo favourite_editor /etc/fstab
remove any line referencing the old disk
add a line:
/dev/whatever /home/user_dir ext? rw,user,auto,exec,utf8
save and exit
Note that with that done, any data you had under /home/user_dir is
hidden and wasted space. Once you know all is working well you could
umount the disk and copy or delete it to get the space back.
Online waterways route planner: http://canalplan.org.uk
development version: http://canalplan.eu