LinuxQuestions.org
Visit Jeremy's Blog.
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 07-25-2017, 10:52 AM   #1
lse123
Member
 
Registered: Dec 2008
Posts: 130

Rep: Reputation: 15
Can install triple boot system and Fedora 26 and Ubuntu 17.04 share same Home folder


Can install triple boot system and Fedora 26 and Ubuntu 17.04 share same Home folder.... having already Win 10 Pro?

Linux being Desktop versions
 
Old 07-25-2017, 11:24 AM   #2
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
The home folder will have configuration and launcher files for your software. Since there's no guarantee that Fedora and Ubuntu will be using the same versions, that would probably lead to problems. They can share the same user data, though, either in a third place or in one of the /homes. This explains things:
http://www.garron.me/en/linux/dual-b...s-distros.html
 
Old 07-25-2017, 01:48 PM   #3
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
so the two home - same user? are Fedora 26 and Ubuntu 17.04 and windows all by itself. yes -

you have to ensure that both users of same name have same UID and first user group, ie userName:groupName
bob users / bob users UID for both 1001

the only thing is, it is best to mimic like desktops in both OS's because for each user-OS they are sharing the same config.

I found that Debian didn't play nice when trying this, so do prepare yourself for a few reboots, into each OS and setting UID or changing them to match both user for each OS.

like the other said depending on vers of software and there conf along with which desktop/WM you use too can conflict.

I run Slack and Void in this setup sharing the same home without issues. Sometimes VOID will update an app then I get a message in Slack- so I just get the latest ver of that app then mod and run a slackbuild on it to update it too. Then the shared config is back in order.

if one OS does not have an app that the other has I have not seen any thing going bonkers as a result of it.

with Fluxbox and alike I just have to update the menu with is a one liner in the CLI when changing OS'es because something are there and some are not as well as located in a different area. but a quick mmenu -f fluxbox and I'm fixed in that area.

Just remember to check and changed my UID to match the same userName if needed then work out the rest of the kinks as you go.

it can be done - if you really want it, you might even have to try different distros until you find two that will play nice together.

Last edited by BW-userx; 07-25-2017 at 01:58 PM.
 
Old 07-25-2017, 02:01 PM   #4
lse123
Member
 
Registered: Dec 2008
Posts: 130

Original Poster
Rep: Reputation: 15
In my reading of the book "Linux Bible 9e (c) 2015"
Chapter: Installing Linux
Boot-loaders :section
GRUB Legacy 1 :sub-section
"
If you make any changes to the /boot/grub/grub.conf file, you do not need to load those changes. GRUB automatically picks up those changes when you reboot your computer.
"

(modify boot order[RHEL 6 / Win XP] etc boot info and files in Boot Menu, Also add in Boot Menu other Linux)

Can edit this file[/boot/grub/grub.conf] by taking out and connecting HDD as external disk to another system ??? I have to connect to Linux Desktop or Linux VM...?

I mean with GUI Text Editor...
 
Old 07-25-2017, 02:12 PM   #5
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by lse123 View Post
In my reading of the book "Linux Bible 9e (c) 2015"
Chapter: Installing Linux
Boot-loaders :section
GRUB Legacy 1 :sub-section
"
If you make any changes to the /boot/grub/grub.conf file, you do not need to load those changes. GRUB automatically picks up those changes when you reboot your computer.
"

(modify boot order[RHEL 6 / Win XP] etc boot info and files in Boot Menu, Also add in Boot Menu other Linux)

Can edit this file[/boot/grub/grub.conf] by taking out and connecting HDD as external disk to another system ??? I have to connect to Linux Desktop or Linux VM...?

I mean with GUI Text Editor...
huh?

can you edit the files by means other than you original OS? yes just boot something else and mount that drive and find edit save and cross fingers reboot.

what are you wanting to edit grub for? it takes care of itself for the most part, until it is not picking p an OS then you can add it to 40_custom

congif - yes you can edit it in any text editor just need to have root permissions to save it.

Last edited by BW-userx; 07-25-2017 at 02:14 PM.
 
Old 07-25-2017, 03:34 PM   #6
lse123
Member
 
Registered: Dec 2008
Posts: 130

Original Poster
Rep: Reputation: 15
Quote:
congif - yes you can edit it in any text editor just need to have root permissions to save it.
What if edit connecting as ext drive to other OS, again needed root permissions???
 
Old 07-25-2017, 03:46 PM   #7
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by lse123 View Post
What if edit connecting as ext drive to other OS, again needed root permissions???
LINUX -- YePPerS -- just su into it or sudo from the Host OS or log in as rot on the Host OS

I just
Code:
sudo mount /dev/sdxx /mnt
sudo nano   /mnt/path/to/rootFile in a terminal -- that's Linux
xx = actual letter of dive and number of partition.

Last edited by BW-userx; 07-25-2017 at 03:48 PM.
 
Old 07-25-2017, 06:56 PM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490
You can certainly do what you want but the potential minimal problems are explained in post 2 and if you are a new user, I would expect that you will have problems. The information you posted from your source on the Grub bootloader is outdated, neither Fedora nor Ubuntu have used Grub Legacy for years and that is what being discussed. You won't find any grub.conf file in the Grub directory for either of those systems.
 
Old 07-26-2017, 01:15 AM   #9
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,809
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
Grub Legacy documentation in that book is not applicable to Fedora 26 or Ubuntu 17.04, so I suggest you ignore that section of the book.

Whichever of the two distros is installed later will, if all installation defaults are accepted, automatically put the other, and Windows, barring unforeseeable obstacles, into its boot menu.

Default system installations of both Fedora and Ubuntu will usurp boot control of the previously installed distribution. The manner in which each does usually works well for most users initially, but a problem typically comes at updates time for the previously installed distribution, when it will at least attempt to wrest bootloader control back from the newer. The PC's admin should make a choice to take an active role in reconfiguring one or the other, unless he has taken appropriate action to alter bootloader configuration at installation time of the second. Not ensuring only one attempts to maintain control can eventually lead to no boot control at all, particularly when Windows is also installed. Reliable multiboot requires the PC's admin to get actively involved in boot configuration lest boot control eventually disappear.

All that said, Fedora 26 and Ubuntu 17.04 both use Gnome Desktop by default, which means sharing exactly the same home may be more likely to produce ill effects from differences in installed software versions. This may or may not be significant given the proximity in release dates of the two distros. It may be wise to ensure that each distro uses a different USER ID for the default user (opposite what BW-userx first suggested), so that configuration settings are not shared. The rest of user data can be safely shared, and all on the same /home filesystem.
 
Old 07-26-2017, 06:51 AM   #10
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
as far as boot order - that too can be changed after the OS's are installed, as stated - last installed takes control of the boot order via its boot loader.

if you want the other Linux to take over, just use it to install grub2 again and update it. - the advantages might be one grub2 is easier to deal with then the other one, even though grub2 is grub two some distos modify it to fit their needs. do not forget about 40_custom if one distro does not pick up Windows and or the other distro for whatever its reasons.

40_custom can be used to fix that. This whole process is a simple process - just that it can be time consuming. Especially on a first time basis.
Quote:
It may be wise to ensure that each distro uses a different USER ID for the default user (opposite what BW-userx first suggested), so that configuration settings are not shared. The rest of user data can be safely shared, and all on the same /home filesystem.
for the faint hearted. but he is right - I just found two Linux Distros that play nice together to get rid of that problem. and I like them - they are originals, not knock offs to boot.

the only issue I can see with same /home two users if you're running one system and download into its Download directory, then next time you boot up the other system, and yeah I need to get what I downloaded oops it is in the other login user on my other system. Now you got to take extra steps to get it, or take extra steps to then move it to a generalized area that both users have permissions to can access it without any problems.

whereas if you get two distros that play nice together then you will find that sharing the same user name in the same /home/sameuser between two or more Linux OS's is do able and does not conflict.

the trick is to find two distros that play nice together, and the desktops or WM you use too. settings have to be shared if same user same /home/user

Void is a rolling release
Slack is not.

The config for my WM (Fluxbox, WindowMaker, JWM) that is basically the only three WM I use - they all share their same config between the two.

The only time I ever got into a situation where I had software conflicts was with Deluge, Voided update it, Slack was behind a ver. Deluge kept asking me if I wanted to update the config when ever I went to Slack. Finally I just updated Deluge in Slack - via Slackbuilds.


all of my other mis matched versions of software do not conflict between the two. They are isolated between the two systems.

the only thing I have to remember is to update my menu when I switch OS's - which is a simple thing to do. But I do not use my menu that much to remember to do that because I use keyboard shortcuts for what I use - they work in both distros without having to change a thing.

but what you are planing to use is more "Distributor controlled". Like Debian is, I could not get it to play nice with this type of set up.

trial and error will only tell.

it is not like you cannot set it up both ways.

same user same /home partition with two systems
different user same /home partition with two systems

then see which one works for you.

Last edited by BW-userx; 07-26-2017 at 07:19 AM.
 
Old 07-27-2017, 02:22 PM   #11
lse123
Member
 
Registered: Dec 2008
Posts: 130

Original Poster
Rep: Reputation: 15
Look at this scenario
I have 450GB Free with Win 7 Pro fragmented 2% / I think no needed defragment

I want in addition install as multi-boot system
Win 10 Pro
Fedora 26
Ubuntu 17.04

I will make a 3rd partition 300GB for Win 10 Pro and install. [Win 7 Pro are 2 partitions] from 450GB
I will install Fedora 26 doing while installing 100GB partition from 300GB.
I will install Ubuntu 17.04 doing while installing 50GB partition from 100GB.

Is this correct? Where must create primary and where logical partition?

My book Linux Bible 9e says
"
some things you should know about the grub.cfg file: ■ Instead of editing grub.cfg by hand or having kernel RPM packages add to it, grub.cfg is generated from the contents of the /etc/default/grub file and the /etc/grub.d directory. You should modify or add to those files to confi gure GRUB 2 yourself...
"

To edit these files after have 4 multiboot OSs where found in Fedora 26 or Ubuntu?

Last edited by lse123; 07-27-2017 at 03:24 PM.
 
Old 07-27-2017, 03:48 PM   #12
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
256GB ssd windows with its partitions 3 total, and two Linux OS with shared /home
Code:
Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1  *         2048   1026047   1024000   500M  7 HPFS/NTFS/exFAT <- crap win partition
/dev/sda2         1028160 204902463 203874304  97.2G  7 HPFS/NTFS/exFAT <- win 10 OS with a little extra for user
/dev/sda3       204906496 205828095    921600   450M 27 Hidden NTFS WinRE <- crap win partition
/dev/sda4       205828096 488397167 282569072 134.8G  5 Extended
/dev/sda5       205830144 249968639  44138496    21G 83 Linux <- Linux OS
/dev/sda6       249970688 303507455  53536768  25.5G 83 Linux <- Linux OS
/dev/sda7       303509504 488396799 184887296  88.2G 83 Linux <- shared /home
the os of Linux only needs as little as 5GB for it. Most "name brand" Linux OS'es

Oh yeah my swap is on my 16GB SD Card -- which never gets used.

I have installed Win10 On a 32GB SDD.

NOTE:

I wiped everything and partitioned by drive giving windows only so much to work with first, leaving the other part alone. Because with Windows and it has to have other partitions only had what i gave it to work with - leaving the rest for me and my Linux. then Installed my Linux -

So depending on how much you want windows to have and how much you want for Linux -- is all up to you when you do this.

MBR - use up your three and the 4th use for extended to get max partitions. Worry about customizing grub for another day. Just have both Linux install Grub on /sda MBR and after each install of both Linux then you can deal with who will be the Linux to control boot after you get done with that just by which Linux you use to install grub to MBR -

Last edited by BW-userx; 07-27-2017 at 04:04 PM.
 
Old 07-28-2017, 02:56 AM   #13
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,809
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
Quote:
Originally Posted by lse123 View Post
Where must create primary and where logical partition?
I don't understand what you are asking. The biggest "must" regarding the where of MBR partitioning is that there can be no primary in between two logicals. Most people place all primaries nearest the start of the disk and keep the logicals after, but it is possible to have primaries at start and end with logical(s) in between. Another must is that Windows must have its boot files on a primary, but that can be less than 60MB in size, with all its system files on a logical. Another must is that for DOS/OS2/Windows BIOS/Legacy MBR code to work as expected is that there must be one primary with an MBR boot flag set and which contains bootable code in its PBR.
 
Old 07-28-2017, 07:31 AM   #14
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490
I see some potential problems with the scenario you posted above (post 11). If you have windows 7 installed, is it the older MBR? If that is the case, you need to install windows 10 MBR which you should be able to do using the Custom install option. If you mix MBR with EFI, one of them won't boot without making changes in the BIOS each time you want to change. Also, if you use GPT partitioning you need UEFI for windows. If you use UEFI for windows then your Linux systems will need to be UEFI to enable booting from the same boot menu to windows and/or Linux.

A default windows 7 install would have been MBR so I think you need to check to verify if you have GPT or the older MBR. If you have GPT all partitions are primary. If you have the older MBR you have the 4 primary partition limitation and of course one of them can be an Extended in which you can create a number of logical partitions to use.

With regard to the grub.cfg file, you are told not to manually edit it because when you run update-grub or grub-mkconfig, all the entries will be changed. If you manually put an entry in grub.cfg and update grub it will be gone after the update. If you are going to be multi-booting it would probably be a good idea to make a backup of that file, at least the working menuentry sections. Or you can do as recommended and put these change in the two files mentioned, /etc/default/grub file and the /etc/grub.d directory.

Quote:
To edit these files after have 4 multiboot OSs where found in Fedora 26 or Ubuntu?
I'm not sure what you are asking here as those files are in the path specified?
 
Old 07-29-2017, 04:47 AM   #15
lse123
Member
 
Registered: Dec 2008
Posts: 130

Original Poster
Rep: Reputation: 15
"
sure what you are asking here as those files are in the path specified?
"
In what partition... is folder /etc/ where grub files folders located??

I think my system is Not UEFI... how create extended partition in Fedora... 3rd install so install inside a logical partition and after create another logical partition install Ubuntu during ubuntu install?
 
  


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
Triple boot UEFI System Win 8.1/Kali 2016.1/ubuntu 15.10 A340 Linux - Newbie 3 05-11-2016 05:04 AM
Redirect an app resource folder from system /usr/share to /home/user/[app]/usr/share minyor Linux - Software 2 04-23-2013 06:44 AM
LXer: Triple-boot Windows 7, Ubuntu 12.10 and Fedora 18 on one HDD LXer Syndicated Linux News 0 03-06-2013 02:00 PM
triple boot question xp pro-ubuntu 8.04-fedora 10 HELP!!! witch1973 Linux - Newbie 14 11-09-2009 02:40 PM
Triple boot - XP, Fedora, Ubuntu Hertzy3 Linux - Software 4 08-08-2008 07:06 AM

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

All times are GMT -5. The time now is 12:57 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