LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-24-2016, 01:55 AM   #1
canadensis
Member
 
Registered: Sep 2013
Location: Sydney, Australia
Distribution: Slackware, xBSD, Gentoo, Calculate
Posts: 55

Rep: Reputation: 6
Dual-boot with Manjaro - no GUI


Hello All,

I am trying to dual-boot Slackware (32-bit, current) with Manjaro (Fluxbox, openrc). I have installed Slack, then Manjaro (format /dev/sda2 for /, use /dev/sda3 for /home, use /dev/sda4 for swap and with no boot loader). I then boot back into Slackware and

1. Make directory /mnt/manjaro
2. Add this to /etc/fstab (below)
3. Edit /etc/lilo.conf (below)
4. Run lilo -v

Slackware still boots fine, I am using it to write this. But when I boot Manjaro, I get to the graphical login manager which looks normal, but on entering my password it just returns me to the login screen. I am able to login on another tty.

Also, and I do not know whether this is related, early in the boot process I get a warning "The root device is not configured to be mounted read-write! It may be fsck'd later on."

Code:
$ cat /etc/fstab 
/dev/sda4        swap             swap        defaults         0   0
/dev/sda1        /                ext4        defaults         1   1
/dev/sda3        /home            ext4        defaults         1   2

/dev/sda2        /mnt/manjaro     ext4        defaults         1   2

#/dev/cdrom      /mnt/cdrom       auto        noauto,owner,ro,comment=x-gvfs-show 0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
tmpfs            /dev/shm         tmpfs       defaults         0   0
Code:
$ cat /etc/lilo.conf

...

# Linux bootable partition config begins
image = /boot/vmlinuz
  root = /dev/sda1
  label = Slackware
  read-only  # Partitions should be mounted read-only for checking
# Linux bootable partition config ends

# Linux bootable partition config begins
image = /mnt/manjaro/boot/vmlinuz-4.1-x86_64
  root = /dev/sda2
  append = "root=/dev/disk/by-uuid/33f34772-1f23-4644-8138-7b6500f574ba"
  initrd = /mnt/manjaro/boot/initramfs-4.1-x86_64.img
  label = Manjaro
  read-only  # Partitions should be mounted read-only for checking
# Linux bootable partition config ends
Any help would be appreciated!

Cheers, Bill
 
Old 01-24-2016, 02:07 AM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
hi
What's in the /home/[user]/.xinitrc ?
If things are not set right there, chances are you cannot start the DE and you get sent back to the login screen...
Melissa
 
Old 01-24-2016, 03:00 AM   #3
canadensis
Member
 
Registered: Sep 2013
Location: Sydney, Australia
Distribution: Slackware, xBSD, Gentoo, Calculate
Posts: 55

Original Poster
Rep: Reputation: 6
Thanks Melissa, I did not think of that!

Code:
$ cat .xinitrc
#!/bin/sh
#  xinitrc.xfce - modified to work around xfce4session bug
#                 https://bugzilla.xfce.org/show_bug.cgi?id=8841


########################################################################
##  Merge in defaults and keymaps                                     ##
########################################################################

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

if [ -f $sysresources ]; then
    /usr/bin/xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
    /usr/bin/xmodmap $sysmodmap
fi

if [ -f $userresources ]; then
    /usr/bin/xrdb -merge $userresources
fi

if [ -f $usermodmap ]; then
    /usr/bin/xmodmap $usermodmap
fi

########################################################################
##  Start xfce Desktop Environment                                    ##
########################################################################

if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
  exec ck-launch-session dbus-launch --exit-with-session /usr/bin/startxfce4
else
  exec dbus-launch --exit-with-session /usr/bin/startxfce4
fi
Can you suggest how I fix this? Can I test for the partition somehow?

Thanks, Bill
 
Old 01-24-2016, 03:03 AM   #4
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Hi Bill,
try to add this line at the end
Code:
exec startxfce4
and see where it ends
Melissa
 
Old 01-24-2016, 02:12 PM   #5
canadensis
Member
 
Registered: Sep 2013
Location: Sydney, Australia
Distribution: Slackware, xBSD, Gentoo, Calculate
Posts: 55

Original Poster
Rep: Reputation: 6
Hi Melissa,

Arrgh - now I realise what has happened! Your suggestion to edit .xinitrc worked, actually what I did was login to Slackware and used xwmconfig to change the default to Fluxbox, then I booted Manjaro and logged in OK ... to the default Fluxbox with no Manjaro settings but with the Manjaro applications such as lxterminal available.

Of course by sharing /home on /dev/sda4 the Manjaro installer did not write anything to /home. The /mnt/manjaro/home directory is empty, so whether I login to Slackware or Manjaro I get the Slackware /home contents.

So, this could work nicely ... if I copy the Manjaro Fluxbox config files etc. from another Manjaro installation into /home, both Slack and Manjaro will use them and I will have the (very nice) Manjaro Fluxbox setup in Slackware!

The more tricky bit will be modifying .xinitrc to use XFCE in Slackware and Fluxbox in Manjaro, I need to test whether I am booting from sda1 or sda2 in the script perhaps. It might be easier, in the installation, to mount sda4 on /home/documents so that the two distros can have separate /home directories. Any other suggestions?

Thanks for your help,
Cheers, Bill

Last edited by canadensis; 01-24-2016 at 02:15 PM.
 
Old 01-25-2016, 05:10 AM   #6
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Hi,
Glad it worked out
So, for some, a common /home shared by different installed distros can be seen as a pro...to you...it's not...
Some guys at Ubuntu's site struggled with that too...I donbt know if that can help...
I has kept quite some people awake... Guillermo Garron being one...he seems to have had a common user installed, pehaps this is the key to having or not having a commong /home...
Watching on...
Melissa
 
Old 01-28-2016, 08:35 AM   #7
chexmix
Member
 
Registered: Apr 2002
Location: Arlington, MA
Distribution: Slackware, Debian, OpenBSD
Posts: 246
Blog Entries: 16

Rep: Reputation: 25
Hi Bill ... this is a good instructive thread. Could you set it to SOLVED?
 
Old 01-29-2016, 06:35 PM   #8
canadensis
Member
 
Registered: Sep 2013
Location: Sydney, Australia
Distribution: Slackware, xBSD, Gentoo, Calculate
Posts: 55

Original Poster
Rep: Reputation: 6
Thanks Melissa and chexmix,

Two very useful links there Melissa!

So the problem was that I was attempting to share /home between two distributions - not a good idea because this leads to problems with shared configuration files. Could also have problems if the two distributions use different default UIDs and GIDs.

I have the following setup:

Code:
sda1 / for Slackware not including /home
sda2 / for Manjaro including /home
sda3 /home for Slackware
sda4 swap (used by both)
and I intend to simply copy files from one /home to the other when needed.

What are the other options for sharing files between two distros?

1. Share /home - this leads to problems with shared configuration files. Could also have problems if the two distributions use different default UIDs and GIDs.

2. Give each distribution its own /home and share common documents on a third partition in subdirectories of /home: you could set this up in /etc/fstab using the bind file system type,

3. Use symlinks from one distro to the other.

4. Mount sda3 from Manjaro when needed.

5. Copy files from one partition to the other as needed.

6. There are other options, of course, covered in Melissa's two links above. Options 1-3 (4?) above may create problems with GIDs and UIDs if different.

My /etc/fstab

Code:
/dev/sda4        swap             swap        defaults         0   0
/dev/sda1        /                ext4        defaults         1   1
/dev/sda3        /home            ext4        defaults         1   2

/dev/sda2        /mnt/manjaro     ext4        defaults         1   2

#/dev/cdrom      /mnt/cdrom       auto        noauto,owner,ro,comment=x-gvfs-show 0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
tmpfs            /dev/shm         tmpfs       defaults         0   0
My /etc/lilo.conf

Code:
# LILO configuration file
# Start LILO global section
boot = /dev/sda

...


# Linux bootable partition config begins
image = /boot/vmlinuz
  root = /dev/sda1
  label = Slackware
  read-only  # Partitions should be mounted read-only for checking
# Linux bootable partition config ends

# Linux bootable partition config begins
image = /mnt/manjaro/boot/vmlinuz-4.1-x86_64
  root = /dev/sda2
  initrd = /mnt/manjaro/boot/initramfs-4.1-x86_64.img
  label = Manjaro
  read-only  # Partitions should be mounted read-only for checking
# Linux bootable partition config ends
I hope this helps!
Cheers, Bill
 
1 members found this post helpful.
  


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
Manjaro Laptop suddenly won't boot xfce desktop environment. How to boot up normally? May99 Linux - Laptop and Netbook 1 08-09-2015 02:36 PM
Manjaro xfce Linux Laptop won't boot. How to boot up normally? brooklyntok Linux - Newbie 1 08-08-2015 11:10 AM
How to tweak Manjaro Gnome/Cinnamon GUI? DaComboMan Linux - Desktop 0 12-11-2012 10:44 PM
Custom dual boot GUI eeeBu Linux - Newbie 16 11-22-2009 09:31 AM
Dual Boot with XP - Mandrake will not open the GUI bodderz Mandriva 3 07-22-2004 02:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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