LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 11-23-2011, 10:39 PM   #31
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886

Quote:
Originally Posted by poly_s View Post
Ok now i'll put my hands up and say this is just an idea and I don't want to get any bad flame from any one for it or do want to have to apologise to anyone, nor will I.

Have you considered a zfs file system that lets you use multiple, seperate mount points that share the same common pool of space. This would avoid your free space being fragmented and would save you a head ache.

I say again.... Just an idea.
AFAIK, ZFS is not supported on Linux due to licensing issues.
 
Old 11-23-2011, 11:18 PM   #32
poly_s
Member
 
Registered: Sep 2011
Distribution: Arch
Posts: 47

Rep: Reputation: Disabled
Thaks for quick reply. I wont waist time looking further then.
 
Old 11-23-2011, 11:29 PM   #33
poly_s
Member
 
Registered: Sep 2011
Distribution: Arch
Posts: 47

Rep: Reputation: Disabled
And what about butter fs (btrfs) this file system has pooling, and is supported by kernel right? but young and unstable. but might achive the goals of OP. just a thought.
 
Old 11-24-2011, 02:24 AM   #34
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
Quote:
Originally Posted by TobiSGD View Post
@k3lt01: Wubi is not installing Ubuntu to a directory, it uses a loop mounted image file.
ah ok, thanks Tobi. I have never used WUBI but know of people who have and the way they told me about it didn't explain it fully. Thanks again.
 
Old 11-25-2011, 06:08 PM   #35
-kg-
LQ Newbie
 
Registered: Jan 2010
Location: Godfrey, IL
Distribution: Ubuntu, Fedora, OpenSUSE, Knoppix, Puppy
Posts: 24

Rep: Reputation: 0
Quote:
Originally Posted by TobiSGD View Post
@-kg-: It is absolutely no problem to use a distro independent partition for booting/installing a boot-loader. It also is no problem to install the boot-loader only in one bootloader. If you have 6 distributions that doesn't mean that you have to install 6 boot-loaders, one is totally sufficient.
I beg to differ. I completely understand that a distro-independent /boot partition is (relatively) no problem. I've done it before, and dropped it as it was a bit onerous for me to maintain. Every time something changes in one of the distros (like a kernel upgrade), you have to manually edit the GRUB menu to reflect the changes. Since it is distro independent, there is no way to use "update-grub" to effect those changes.

However, I disagree that "6 distros don't require 6 bootloaders," unless you mean the one in the MBR. As I stated, in the root partition of each distro I've ever had is a /boot directory. In that directory are files and a directory that are vitally important to that distro.

First, there is the /grub directory. GRUB is not only what gives you the directory you see on boot-up (i.e., the GRUB menu). Later stages of GRUB are what launches the OS associated with it. The GRUB associated with the bootloader in the MBR just points to the subsequent stages of GRUB of the distro (partition) that you select for booting.

Second, and certainly not least, are the Linux kernel files. Those are the basis of the whole shebang. If a separate /boot directory is not required for every distro, then where do these files (especially the kernel files) reside?

I'm perfectly willing to accept that I might be wrong, but I don't think that I am.
 
Old 11-25-2011, 10:56 PM   #36
hurry_hui
Member
 
Registered: Oct 2008
Location: Near Jakarta
Distribution: Slackware, Arch, Slax, Porteus, Tiny Core, Slitaz
Posts: 355
Blog Entries: 1

Rep: Reputation: 52
To OP:

There are perhaps solutions to your problem AFAIK:

- The difficult one: you need to understand distro of your choice. Since this choice determines the success of merging the six distros. Some distro has similar directory hierarchy that you cannot mix them, e.g /etc/init.d or /etc/sysconfig. Having choosing the right distro you need to recompile their /sbin/init (because init is binary)to suit your purpose and then rename it as their init{rd|ramfs} refer to, e.g, /sbin/init-mint /sbin/init-vector-11. This also require you create your own initramfs containing script to find those inits.

Problems that will come with this setup: some distro need certain version of kernel, its header and some tools to work properly.

- Another alternative: create read-only compressed rootfs (that can be mounted rw for later update) along with script that automatically mount their (separated) /home and virtualfs. This can also be done by using initramfs.

You need 6 kernel or just a recompiled one, 6 init{rd|ramfs} (each refers to their respective /sbin/init-*) and six modified inits. One grub partition, so grub is independent. Regardless kernel version these are usually virtualfs and/or mount points: /proc /sys /dev /srv /run /misc /media /mnt /net (btw, someone might want to correct this).

In addition, you can frugal-install some distro such as Slax, Porteus, Tiny Core and Slitaz. You can also use grub2 loopback function to load directly from iso hence saving space.

Apologize for my English.

Last edited by hurry_hui; 11-25-2011 at 11:04 PM. Reason: mixing vfs and mount points
 
Old 11-26-2011, 10:49 PM   #37
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by -kg- View Post
I beg to differ. I completely understand that a distro-independent /boot partition is (relatively) no problem. I've done it before, and dropped it as it was a bit onerous for me to maintain. Every time something changes in one of the distros (like a kernel upgrade), you have to manually edit the GRUB menu to reflect the changes. Since it is distro independent, there is no way to use "update-grub" to effect those changes.
Nope, just use symbolic links to your kernel, then you have not to change anything on the bootloader partition.

Quote:
However, I disagree that "6 distros don't require 6 bootloaders," unless you mean the one in the MBR. As I stated, in the root partition of each distro I've ever had is a /boot directory. In that directory are files and a directory that are vitally important to that distro.

First, there is the /grub directory. GRUB is not only what gives you the directory you see on boot-up (i.e., the GRUB menu). Later stages of GRUB are what launches the OS associated with it. The GRUB associated with the bootloader in the MBR just points to the subsequent stages of GRUB of the distro (partition) that you select for booting.

Second, and certainly not least, are the Linux kernel files. Those are the basis of the whole shebang. If a separate /boot directory is not required for every distro, then where do these files (especially the kernel files) reside?
Again, a bootloader is only needed once. If you don't install one in the second (third, fourth, ...) distro on a computer you will nonetheless be able to boot that distro, done that, works fine. You will most likely also don't have the /boot/grub directory when you don't install grub.
You understand the differences between a bootloader, the /boot directory and a boot partition? Why should the /boot directory (or the kernel files in it) be removed if you don't install a bootloader?
 
Old 11-26-2011, 11:40 PM   #38
-kg-
LQ Newbie
 
Registered: Jan 2010
Location: Godfrey, IL
Distribution: Ubuntu, Fedora, OpenSUSE, Knoppix, Puppy
Posts: 24

Rep: Reputation: 0
Quote:
Originally Posted by TobiSGD View Post
Nope, just use symbolic links to your kernel, then you have not to change anything on the bootloader partition.

Again, a bootloader is only needed once. If you don't install one in the second (third, fourth, ...) distro on a computer you will nonetheless be able to boot that distro, done that, works fine. You will most likely also don't have the /boot/grub directory when you don't install grub.
You understand the differences between a bootloader, the /boot directory and a boot partition? Why should the /boot directory (or the kernel files in it) be removed if you don't install a bootloader?
OK, I stand partially corrected. I have primarily dealt with Debian-based distros, which have 4 boot stages.

Quote:
The mini-Debian system is the 3rd stage of the boot process which is started by the boot loader. It runs the system kernel with its root filesystem on the memory. This is an optional preparatory stage of the boot process.
http://www.debian.org/doc/manuals/de..._debian_system

I didn't realize that not all distros used these extra GRUB stages.

And yes, I do know the difference between a bootloader, a /boot directory, and a /boot partition, though in operation the last two operate the same way. The /boot directory is the /boot directory, whether it resides on the root partition or is on it's own separate partition. It's considered a directory by Linux, no matter where it actually resides.

Last edited by -kg-; 11-26-2011 at 11:41 PM.
 
Old 11-27-2011, 07:13 AM   #39
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by -kg- View Post
http://www.debian.org/doc/manuals/de..._debian_system

I didn't realize that not all distros used these extra GRUB stages.
This is not a Grub stage. The usage of an initrd is also not distro dependent, you can use Debian without it if you compile a custom kernel and you can use it in any distro, if you need to (for example if your /-partition is a software-RAID).
To make that clear: The bootloader (Grub or any other, not every distro is using Grub) loads the kernel (and if configured to do so the initrd) to RAM and then hands over the control to the kernel. This is what happens at the beginning of stage 3. From that point the bootloader is not anymore involved in anything on that system, those extra stages are not related to the bootloader.
 
Old 11-27-2011, 02:57 PM   #40
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,303

Original Poster
Rep: Reputation: 57
/boot is only 17 MB anyway, not an issue at all, it can stay as an actual directory.

Symbolically linking just /usr is causing failure in mint. But unlike /boot, this cannot stay as actual because it is huge and may grow. Maybe it was not moved properly causing credentials to be affected or any non-regular files to be affected.

So what is the proper way to move /usr or any other directory? "cp -a" then "rm -fr"?

Mint 11-64, vectorlinux 6 and tinycore are probably the best options worth investigating if trial and error is the way.

Tinycore is happy inside a directory in mint's partition or any other partition. Sorted.

It remains to be seen which directories of vectorlinux can happily go inside a directory in another partition rather than stay as actual. Clearly NOT an issue of compatibility but an issue of symbolic links and that alone.

Last edited by Ulysses_; 11-27-2011 at 05:16 PM.
 
Old 11-27-2011, 05:14 PM   #41
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,303

Original Poster
Rep: Reputation: 57
Here's a screenshot of mint failing, if this is of any use.
Attached Thumbnails
Click image for larger version

Name:	mint failure.gif
Views:	27
Size:	39.1 KB
ID:	8488  
 
Old 11-27-2011, 10:38 PM   #42
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Seems that it can't find some executables, which means they are either not at the expected location or not marked executable.
 
Old 11-28-2011, 02:30 AM   #43
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
Quote:
Originally Posted by Ulysses_ View Post
It remains to be seen which directories of vectorlinux can happily go inside a directory in another partition rather than stay as actual. Clearly NOT an issue of compatibility but an issue of symbolic links and that alone.
If you have to put it in another partition it is showing that there is incompatibility that even symbolic linking cannot fix.
 
Old 11-28-2011, 05:17 AM   #44
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,303

Original Poster
Rep: Reputation: 57
Are you saying that a problem would not have occured if mint was alone with no other distros installed and /usr was moved to another partition? But a problem occurs or will occur because vectorlinux is installed in yet another partition and could be doing the same with its /usr directory? So it is a compatibility issue between distros as you've been saying all along (64bit versus 32bit etc in post #19)? Can't believe how much obvious BS they allow you to post and never withdraw it.

Last edited by Ulysses_; 11-28-2011 at 05:44 AM.
 
Old 11-28-2011, 05:33 AM   #45
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,303

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by TobiSGD View Post
Seems that it can't find some executables, which means they are either not at the expected location or not marked executable.
If it is caused by executables that are not marked executable, probably because the moving is not done correctly, I'll try moving the files by other means: duplicate the entire mint partition with gparted. Then symbolically link to selected directories, and the remaining dirs can be temporarily renamed. And see what happens.

Last edited by Ulysses_; 11-28-2011 at 05:36 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Distributed Storage Across Four Storage Nodes With GlusterFS On Mandriva 2010.0 LXer Syndicated Linux News 0 04-28-2010 06:30 PM
LXer: Distributed Storage Across Four Storage Nodes With GlusterFS On Fedora 12 LXer Syndicated Linux News 0 03-04-2010 11:50 AM
LXer: Distributed Storage Across Four Storage Nodes With GlusterFS On Debian Lenny LXer Syndicated Linux News 0 06-25-2009 02:40 PM
file storage while switching distros VeganBikePunk Linux - Newbie 9 06-14-2008 10:42 PM
Distros, distros, distros...slight rant.. Jamesb427 Linux - Distributions 1 05-31-2007 03:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 02:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration