How to install Multiple Distros in One Partition??
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
I'm not sure why you want to do this bizarre mishmash. If you'd describe what you hope to accomplish by this jumble of (usually incompatible) files, perhaps someone could offer a suggestion of a better way to reach your goal.
In other words, you've started with one possible solution to a problem you haven't described. Is it the only possible way to solve your problem? Why?
To answer your question, it might be easier to do if, instead of ext3 you make the partition a logical volume set and, of course, have a different logical volume for each distribution.
However, if you don't want to do that, there's no reason you couldn't install everything in the single partition. Just set each distribution up in it's own set of directories, and specify the correct"root" location the the GRUB kernel line. The boot process will do a chroot to the specified location. With appropriate care, the fstab in each distribution could be set so "common" areas (e.g., non-hidden home files and directories, etc.) could be shared be each distribution.
maybe set them up something similar to the old zipslacks that ran on a windows fat32 partitons inside in its own directory except use a linux partition. I think ubuntu wubi does the same thing. on a windows partition
I have a question in this vein. Using the utility mk-boot-usb I have partitioned an 8GB key to run several livecd installations. Then, using the following commands I mounted the .iso images and copied the entire contents to individual logical ext2 partitions on the key.
mount -o loop -t iso9660 /iso/path/here /mnt/iso
mount /dev/targetpartition /mnt/target
cp -rvp /mnt/iso/* /mnt/target
I have already done this with a 4GB key which runs beautifully with my customized grub menu, but it has many less distros.
The problem is, the number of livecds that fit on the 8GB key is greater than the number of partitions I can have on the device (/dev/sd* are apparently limited to 16 maximum from what I have read). So, to overcome this, I have doubled-up some distros on single partitions. For example...
Ubuntu 9.04 32-bit in /dev/sda5/32 mounted as /media/Ubuntu32.64/32/
Ubuntu 9.04 64-bit in /dev/sda5/64 mounted as /media/Ubuntu32.64/64/
BackTrack 3 in /dev/sda6 mounted as /media/BackTrack3/
...where BackTrack 3 boots just fine, but Ubuntu 32 and 64 both start booting just fine with the kernel and initrd paths specified explicitly, but get lost looking for other boot files when referring to root=LABEL=Ubuntu32.64 since I can't figure out how to tell is that root is supposed to be root=(LABEL=Ubuntu32.64)/32/ or root=(LABEL=Ubuntu32.64)/64/ respectively.
Oddly enough, I can call the kernel and initrd lines using...
...but making similar modifications to the root line doesn't help. The same problem occurs with Arch 2009.08 32 & 64, DSL, TinyMe and TinyCore, but not when they're on their own partitions.
Any ideas? I know my way around linux in general, but I can't find anything in the GRUB manual or online that deals with this issue directly, and any syntax attempts I've made have failed. Oh, and thanks a million for reading through this book of a post.
Thanks for the quick reply. I originally tried using the UUIDs, but found that if I wanted to switch the OS on a partition and had to change size, the UUID would change on format. It's probably not necessary, but the LABEL call helps me keep track of what is what in GRUB. Is there any way to have device.map use something other than the /dev/sdX call? It would be much nicer to have it point to a UUID that doesn't change for its boot device from PC to PC. I think the answer is no since it should be calling a device, not a partition table, but since you have Thor's Hammer working so well (my compliments btw), maybe you've figured something like that out?
Also, thanks for the pointer about Ubuntu on the same partition, it's worth mentioning another odd behaviour. I had Ubuntu Jaunty 9.04 for both 32 & 64 bit processors, as well as Mint just for 32 bit on a completely different partition. Occasionally when a GRUB syntax would boot Ubuntu to limping (not elegant, but functional), it would load from that partition using Jaunty, but would present the GUI for Mint!!! I first thought I had made a late-night bleary-eyed mistake and copied the Mint iso to both drives, but I have confirmed that Jaunty definitely is booting the Mint GUI from another partition somehow (hd0,6 is Mint, hd0,11 is Ubuntu).
As far as DSL cheat codes, none yet. My netbook is running Ubuntu hatcheted and customized like crazy, and these keys are a way for me to play with other distros on a variety of PCs (as well as show it off to friends of course). Once I had them up and running smoothly, I wanted to play with cheats as fine-tuning, so I'll let you know as soon as I've settled on my favourites.
I should also send you my xpm splashes and menu sequence, I have used the "only half" strawberry in the lower right-hand corner and changed the colour of just the red part to signify each submenu of the main menu.lst
OH
what I meant about the dsl cheatcodes was
post your syslinux.cfg or grub menu.lst for me?
also, where have you got dsl installed to?
You wanna check out Portable-Qemu?
I made it cause I couldn't find one as good
it is basically qemu/qemu.exe, qemu-img/qemu-img.exe
and some scripts to run it all
you make a virtual hd with "make_vhd.sh" or "make_vhd.bat"(windows)
then you boot off the install.sh install.bat
ands install dsl to the vhd
it runs just like a real systemt
just a little slower
I got a xxx naked girl version and a clean version maybe
I could also make a new onw
haven't made one in a while
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.