Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
If the hard drive is blank, create a partition for one distro's root, another for another distro's root (etc etc). You can share the /home and swap partitions between distros though I'm not sure how well this works, since I only have one on at a time.
When you install the distro, tell it which partitions to use (most have an option to do this).
I've Gentoo as my primary distribution, but also Debian, which I use very often. Yesterday I installed FreeBSD... .
Are you familiar with Linux? If not I'll recommend you to start with something like Fedora or Mandrake (you can also try Knoppix, but I don't like it very much). The setup programs of these distributions will allow you to partition your harddisk. The only thing you have to do then is to leave some space free, so when you decide to install the second distribution, the setup program of the second distribution will have some space where to install the system.
What Orkie was saying is that, for Linux, you need a "SWAP" partition, that the system uses to simulate RAM memory if necessary. Well, if you have more than one distribution, you only need one SWAP partition, because they can use the same, so when you install the second distribution, you can say to the setup program not to create a new one, but to use the existing partition. Same applies to the "/home" partition, where the users' files are stored. Unless you want your distributions to be completely independent, you can make them to share this partition, so the same users (with their documents) will exist in both.
For instance, I've a 40Gb HD also. If I run fdisk I get:
Code:
Disk /dev/hda: 40.0 GB, 40060403712 bytes
255 heads, 63 sectors/track, 4870 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 1 974 7823623+ 83 Linux
/dev/hda2 975 1097 987997+ 82 Linux swap / Solaris
/dev/hda3 1098 4502 27350662+ f W95 Ext'd (LBA)
/dev/hda4 * 4503 4870 2955960 a5 FreeBSD
/dev/hda5 1098 4137 24418768+ 83 Linux
/dev/hda6 * 4138 4502 2931831 83 Linux
/dev/hda1 is my Gentoo's system partition.
/dev/hda2 is the swap partition.
/dev/hda3 is an extended partition: for i386 you cannot have more than 4 partitions, but one of them can be "extended". Inside an extended partition you can create "logical" partitions. Those are /dev/hda5 (where my /home partition is) and /dev/hda6 (my Debian partition).
Finally, /dev/hda4 contains FreeBSD.
@suresh*: For what it's worth here's my partitioning scheme:
Code:
Frank2:~# fdisk -l
Disk /dev/sda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0007c950
Device Boot Start End Blocks Id System
/dev/sda1 1 243 1951866 82 Linux swap / Solaris
/dev/sda2 * 244 304 489982+ 83 Linux
/dev/sda3 305 3951 29294527+ 83 Linux
/dev/sda4 3952 24321 163622025 5 Extended
/dev/sda5 3952 11246 58597056 83 Linux
/dev/sda6 11247 14893 29294496 83 Linux
/dev/sda7 14894 18540 29294496 83 Linux
/dev/sda8 18541 20485 15623181 83 Linux
/dev/sda9 20486 22430 15623181 83 Linux
/dev/sda10 22431 24321 15189426 83 Linux
sda1: swap 2Gb
sda2: /boot 500Mb
sda3: /data ~30Gb #shared (fstab entry in each distro to mount at /data)
sda5: / Debian Lenny ~55Gb #my primary OS, gnome DE
sda6 / Arch ~30Gb #still under construction , xfce DE
sda7: / Slackware64 13.0 ~30Gb #KDE
sda8, sda9, sda10: ~15Gb each formatted as ext3 #used for test runs
I also use vbox quite a bit, it's great for experiments.
If the hard drive is blank, create a partition for one distro's root, another for another distro's root (etc etc). You can share the /home and swap partitions between distros though I'm not sure how well this works, since I only have one on at a time.
When you install the distro, tell it which partitions to use (most have an option to do this).
DO NOT use shared /home between distros, not even between different versions of the same distro. The results of shared /home is horrible (been there, done that). Took a long time to fix the damage.
A better solution is to use a separate partition, i.e.:/data. You can store your documents, pictures, music, etc. there. What I ended up doing was to create a partition of ext3 called /common. Then created sub-directories /Documents, /Pictures, /Music... and made symlinks in /home/tom to those directories.
The data is shared with different distros and the user settings (stored in /home/tom) aren't clobbered between distros.
I'll also add that while I never had a problem sharing a swap space on a desktop, I've run into some oddities sharing swap on a laptop that uses that space during hibernate/suspend ........I think it's just hibernate.........all the same when I've been in powersave and the battery died from one distro, and then the same happened with the other distro, when I booted back into the original I got a number of errors.
Also when I'm just trying out distros, I no longer use multiple partitions for a single distro. It just gets too messy. I usually end up formatting one distro and using it's partition for the remaining install. I always keep a seperate data partition that is mounted in all distros as /mnt/data.
Maybe you could try installing a single distribution of linux and then install VirtualBox on it. That way you can try out as many distributions as you want without having to partition your hard disk each time.
DO NOT use shared /home between distros, not even between different versions of the same distro. The results of shared /home is horrible (been there, done that). Took a long time to fix the damage.
A better solution is to use a separate partition, i.e.:/data. You can store your documents, pictures, music, etc. there. What I ended up doing was to create a partition of ext3 called /common. Then created sub-directories /Documents, /Pictures, /Music... and made symlinks in /home/tom to those directories.
The data is shared with different distros and the user settings (stored in /home/tom) aren't clobbered between distros.
I don't exactly agree. I would recommend sharing the /home partition but use different home directories. E.G. one could be jsmith-fc while another is jsmith-suse. Since the location of your home directory is given in /etc/passwd, you can edit /etc/passwd and rename your home directory after the installation, using the same username. You do need to keep in mind that different distro's may use different ranges for user IDs. You can edit /etc/login.defs to use the same ranges.
Sharing directories for documents & downloads is a good idea however. You want your UID to be the same across each distro to share common directories.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.