<br><br><div class="gmail_quote">On Fri, Oct 23, 2009 at 9:18 PM, John Culleton <span dir="ltr"><<a href="mailto:john@wexfordpress.com">john@wexfordpress.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div><div></div><div class="h5">On Friday 23 October 2009 16:30:10 Vincent wrote:<br>
> Hi everybody,<br>
><br>
> Having inserted a new hard drive in my PC, I'm planning to<br>
install Xubuntu<br>
> 9.10 to that. I then want to move my documents from my old<br>
hard drive there<br>
> and reformat my old hard drive.<br>
><br>
> Now, my problem is that I then want to make that hard drive<br>
my /home<br>
> directory. How would I go about doing that? Do I have to<br>
manually edit<br>
> /etc/fstab (please say no :).<br>
><br>
> Thanks in advance,<br>
<br>
</div></div>Reformatting is not necessary. If you want to change the size of<br>
the partitions etc. cfdisk is your friend.<br>
First you need to give yourself a root password.<br>
sudo passwd root<br>
(etc)<br>
Note spelling of passwd command.<br>
Next  you need to login as root and create an empty directory:<br>
mkdir /mnt/foo<br>
Then mount the old partition on that directory.<br>
mount /dev/sdb1 /mnt/foo -t ext3<br>
---using the correct partition name of course. Run cfdisk /dev/sdb<br>
or whatever to find the correct partition name. Try sda, sdb, hda,<br>
hdb.<br>
Next copy the contents of /home to that directory.<br>
cp -p -R /home /mnt/foo<br>
Next you can put a line in /etc/fstab like<br>
/dev/sdb1        /home          ext3        defaults<br>
<br>
---substituting the correct partition name for sdb1 of course. Then<br>
you need to reboot.<br>
<br>
In any form of Linux manual editing of things like fstab is a fact of<br>
life.  But it doesn't hurt a bit.<br>
--<br>
John Culleton<br>
"Create Book Covers with Scribus"<br>
<a href="http://www.booklocker.com/books/4055.html" target="_blank">http://www.booklocker.com/books/4055.html</a><br>
<font color="#888888"></font></blockquote><div><br>Hi John,<br><br>Thanks for the help. I'll do the reformatting anyway because I want to try ext4. The fstab line is helpful though, I assume I can just insert the line you gave, replacing ext3 by ext4 and sdb1 by the drive's name (sda1)?<br>

</div></div><br>-- <br>Vincent<br>