Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Dualbooting Gentoo/Ubuntu...sharing of /home and swap
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
martbab
n00b
n00b


Joined: 25 Sep 2008
Posts: 1
Location: Slovakia (Central Europe)

PostPosted: Thu Sep 25, 2008 10:16 pm    Post subject: Dualbooting Gentoo/Ubuntu...sharing of /home and swap Reply with quote

Hi everyone.

I'm about to install Gentoo on my laptop (HP nx6110). I'm new to this distro and I hope I will learn much about how Linux really works, hopefully without screwing the whole thing up (I'm also currently having some hard times with Hardy Heron too :D).

I have some question regarding the partitioning of my hard drive, my current layout is this:

Code:
 
/dev/sda1        10 GB        NTFS partition with WinXP
/dev/sda2         1 GB        linux swap
/dev/sda3        10 GB        / for Ubuntu (ext3)
/dev/sda4        30 GB        /home for Ubuntu (ext3)


I want to delete the NTFS partition which hosts an old defunct WinXP installation and create the /boot and root partitons for Gentoo.

The thing is that I would be happy if Gentoo and Ubuntu shared the /home directory, is it possible to do it with fdisk/parted during installation (i. e. save /dev/sda4 from deletion and make Gentoo mount it as /home at startup)?

I would also like to know if it is possible for Gentoo and Ubuntu to share /dev/sda2 as swapspace.

And last question, is there any sense in using XFS filesystem on laptop? I've heard that it is more reliable than ext3 but it's mainly used on large servers, so there's probably no point in using it on small 10 GB partition.

Thanks for your help! :)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Thu Sep 25, 2008 10:37 pm    Post subject: Reply with quote

martbab,

Welcome to Gentoo.

Partition your drive manually.
Remove both partition 1 and partition 2. If you are doing this from Ubuntu, run
Code:
swapoff /dev/sda2
*before* you run fdisk.

For partition 1, make a 32Mb partition for /boot
For partition 2, make an extended partition using the rest of the drive
This is a container for Logical Partitions, so you may have more than the four that the partition table can accomodate.

For partition 5 (make a logical partition) and recreate your swap
For partition 6 (make a logical partition) as / for gentoo.
run
Code:
 mkswap /dev/sda5
swapon /dev/sda5

Fix your Ubuntu /etc/fdisk, if it lists swap.

Code:
mke2fs /dev/sda1
for /boot
Gentoo can and should share /boot and swap with all your distros. /home is more of a problem as distros install different versions of the same applications and they expect to save their per user setting sin /home/<username>.

Now you have /boot on sda1, swap on /dev/sda5 and Gentoo / on /dev/sda6

XFS keeps lots of data in RAM for long periods without flushing it to disk. If you ever get a forced unclean shutdown, you will loose a lot of data - old data will still be on disk, thats why it needs a UPS, which is a little like a laptop battery. IF you don't have the RAM, you may as well use ext3 or reiserfs on /
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum