Mint-Kali dual boot questions

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Locked
kaszasp
Level 1
Level 1
Posts: 46
Joined: Sun Aug 02, 2015 1:49 pm

Mint-Kali dual boot questions

Post by kaszasp »

Dear All,

I am trying to dual boot Linux Mint and Kali. I have some problems with some of my partitions. I have googled a lot reading about partitions, partitioning, gparted, disks, fstab etc., but still don't get it. Please help.

1. Here is what I would like to achieve with my partitions:
I would like to have 4 partitions: one for the two Linux distros (Mint & Kali) each, one data partition that can be accessed from both distributions and one swap partition that both of the distributions can use (no, I don't want to hybernate).
/dev/sda1: Mint system and home (ext4)
/dev/sda3: Kali system and home (ext4)
/dev/sda4: Data partition used by both Mint & Kali (ext4)
/dev/sda2: Extended partition for swap partition
/dev/sda5: Swap partition (swap)

2. Here is what I got so far:
I started from a machine with a single Linux Mint 17.3 on one partition, that occupied the entire disk, minus the swap partition. I used gparted from the Kali Live USB to shrink the Mint partition and add the new Kali partition and the data partition. I didn't change Mint's existing extended/swap partition.
I managed to install Kali and got it up and running on it's own partition.

3. Problems:
3.1. On the Linux Mint system:
During booting, I get an error message (s for skip mounting, m for continue mounting).
Mint's view on the data partition is not mounted, although in the Disks utility I set it to mount at startup and added the correct mounting point (/mnt/data).
Mint's view on the extended partition is shown in gparted as "not busy, there are no mounted logical partitions" and the linux swap partition is not active.
3.2. On the Kali system:
Kali's view on the data partition is mounted, accessible under /mnt/data
Kali's view on the extended partition is: under Disks it seems like I had one partition 2 (this must have been the extended part.), but there is no swap part., just 2GB free space. However, in gparted I can see sda2 as extended, status busy and sda5 as active (these are the extended and swap partitions, respectively).

Can someone please help me to sort this out to get the end result I have stated under 1.?
I would greatly appreciate if someone would not only write the solution but also explain !verbose what is going on.

FInally, the fstab files:
Mint:

Code: Select all

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=28bdc8b8-681a-4da7-9b19-b054d67256a3 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=5144cdb7-6e38-4fc7-b3ae-ee30c5d49748 none            swap    sw              0       2
/dev/sda4 /mnt/data auto nosuid,nodev,nofail,x-gvfs-show 0 0
Kali:

Code: Select all

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda3 during installation
UUID=4c3ad136-c096-4b7a-80b8-d585604db3c1 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=7cbfcebd-b08f-4b41-81e0-d0d2f7ec2039 none            swap    sw              0       0
/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/disk/by-uuid/fb07e5e7-6116-4352-a838-87aeafbeb704 /mnt/data auto nosuid,nodev,nofail,x-gvfs-show 0 0
Let me know if I need to provide additional info.

Any help is greatly appreciated.

Thanks,
Peter
User avatar
WharfRat
Level 21
Level 21
Posts: 13909
Joined: Thu Apr 07, 2011 8:15 pm

Re: Mint-Kali dual boot questions

Post by WharfRat »

I don't really like these entries /dev/disk/by-uuid/fb07e5e7-6116-4352-a838-87aeafbeb704 /mnt/data auto nosuid,nodev,nofail,x-gvfs-show 0 0

Paste back

Code: Select all

sudo blkid
from mint
ImageImage
kaszasp
Level 1
Level 1
Posts: 46
Joined: Sun Aug 02, 2015 1:49 pm

Re: Mint-Kali dual boot questions

Post by kaszasp »

Hello WharfRat,

Many thanks for taking this up.

blkid from Mint:

Code: Select all

/dev/sda1: LABEL="mint" UUID="28bdc8b8-681a-4da7-9b19-b054d67256a3" TYPE="ext4"
/dev/sda3: LABEL="kali" UUID="4c3ad136-c096-4b7a-80b8-d585604db3c1" TYPE="ext4"
/dev/sda4: LABEL="data" UUID="fb07e5e7-6116-4352-a838-87aeafbeb704" TYPE="ext4"
/dev/sda5: LABEL="swap" UUID="7cbfcebd-b08f-4b41-81e0-d0d2f7ec2039" TYPE="swap" 
blkid from Kali:
/dev/sda1: LABEL="mint" UUID="28bdc8b8-681a-4da7-9b19-b054d67256a3" TYPE="ext4" PARTUUID="00065f2d-01"
/dev/sda3: LABEL="kali" UUID="4c3ad136-c096-4b7a-80b8-d585604db3c1" TYPE="ext4" PARTUUID="00065f2d-03"
/dev/sda4: LABEL="data" UUID="fb07e5e7-6116-4352-a838-87aeafbeb704" TYPE="ext4" PARTUUID="00065f2d-04"
/dev/sda5: LABEL="swap" UUID="7cbfcebd-b08f-4b41-81e0-d0d2f7ec2039" TYPE="swap" PARTUUID="00065f2d-05"
Regards,
peter
User avatar
WharfRat
Level 21
Level 21
Posts: 13909
Joined: Thu Apr 07, 2011 8:15 pm

Re: Mint-Kali dual boot questions

Post by WharfRat »

You make it too easy with the labels :D

Make sure you have your mount point /mnt/data and change the fstab entry for /dev/sda4 to

Code: Select all

UUID=fb07e5e7-6116-4352-a838-87aeafbeb704   /mnt/data	ext4	  errors=remount-ro,noatime,user 0 2
You can use that entry for Mint and Kali.

The partition will mount at boot,

To mount manually mount /mnt/data should wotk without the need for sudo.

Happy mounting :wink:
ImageImage
kaszasp
Level 1
Level 1
Posts: 46
Joined: Sun Aug 02, 2015 1:49 pm

Re: Mint-Kali dual boot questions

Post by kaszasp »

Hello WharfRat,

I did as you suggested, added the line below to both fstab files (Mint and Kali).

The results are:

Mint:
I am still getting the same error message during booting (s for skip mounting, m for continue mounting).
The extended partition is in "not busy" status, the swap partition under it is in "not active". I guess Mint is not using the swap partition at all (?).

Kali:
I am getting a repeated error message during boot:
systemd-fstab-generator[161]: Failed to create mount unit file /run/systemd/generator/mnt-data.mount, as it already exists. Duplicate entry in /etc/fstab?
The Disks application still shows the swap partition as unallocated.
The data partition is happily mounted.

All in all, the good news is that the data partition on Kali is now auto-mounted, but there is no change in Mint and now I have a new boot-time error message in Kali.

Some more input from Mint that might help:

Code: Select all

dmesg tail | grep sda1
[    1.730162]  sda: sda1 sda2 < sda5 > sda3 sda4
[   10.388107] EXT4-fs (sda1): INFO: recovery required on readonly filesystem
[   10.388113] EXT4-fs (sda1): write access will be enabled during recovery
[   11.562330] EXT4-fs (sda1): recovery complete
[   11.572907] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   24.215825] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro

dmesg tail | grep sda4
[    1.730162]  sda: sda1 sda2 < sda5 > sda3 sda4
[   25.638677] EXT4-fs (sda4): Unrecognized mount option "x-gvfs-show" or missing value
[   66.886431] EXT4-fs (sda4): Unrecognized mount option "x-gvfs-show" or missing value
[   67.025282] EXT4-fs (sda4): Unrecognized mount option "x-gvfs-show" or missing value
[  160.053075] EXT4-fs (sda4): mounted filesystem with ordered data mode. Opts: (null)
I would really like to understand what's going on, not only solve the problem at hand (as in: teach him to fish, don't give him fish).

regards,
Peter
User avatar
WharfRat
Level 21
Level 21
Posts: 13909
Joined: Thu Apr 07, 2011 8:15 pm

Re: Mint-Kali dual boot questions

Post by WharfRat »

I wasn't looking for this before - check your Mint swap UUID against fstab

fstab UUID
UUID=5144cdb7-6e38-4fc7-b3ae-ee30c5d49748 none swap sw 0 2

blkid UUID
LABEL="swap" UUID="7cbfcebd-b08f-4b41-81e0-d0d2f7ec2039"

I looks correct in Kali.

I also revised the fstab entry above, my mistake there chopping it off :oops:
viewtopic.php?f=90&t=232815&p=1235168#p1235096
ImageImage
kaszasp
Level 1
Level 1
Posts: 46
Joined: Sun Aug 02, 2015 1:49 pm

Re: Mint-Kali dual boot questions

Post by kaszasp »

Hi WharfRat,

I made the recommended UUID changes in /etc/fstab, results:

1. Mint:
I am still getting the s for skip mounting, m for continue mounting error message during booting.
Swap now works!! It appears correctly in both the gparted and Disks applications.
For some reason, the mount point of the data partition in gparted is: /mnt/data,/mnt/data (no mistake, it is doubled). All the more interesting, because in /etc/fstab it is looking good, /mnt/data only mentioned once.

2. Kali:
I am still getting the error message during boot:

Code: Select all

systemd-fstab-generator[161]: Failed to create mount unit file /run/systemd/generator/mnt-data.mount, as it already exists. Duplicate entry in /etc/fstab?
However, swap is working fine and data is mounted. The only thing remaining on Kali is this error message.

Thanks a lot for your help so far. We got the data partition mounted on Kali, swap working on Mint. All I need now is to get rid of the error messages and have the data partition mounted in Mint.

Regards,
Peter
User avatar
WharfRat
Level 21
Level 21
Posts: 13909
Joined: Thu Apr 07, 2011 8:15 pm

Re: Mint-Kali dual boot questions

Post by WharfRat »

Then lets have a look at the latest revised fstab files.
ImageImage
kaszasp
Level 1
Level 1
Posts: 46
Joined: Sun Aug 02, 2015 1:49 pm

Re: Mint-Kali dual boot questions

Post by kaszasp »

Hello WharfRat,

Thank you for staying with me.

Mint blkid:

Code: Select all

/dev/sda1: LABEL="mint" UUID="28bdc8b8-681a-4da7-9b19-b054d67256a3" TYPE="ext4" 
/dev/sda3: LABEL="kali" UUID="4c3ad136-c096-4b7a-80b8-d585604db3c1" TYPE="ext4" 
/dev/sda4: LABEL="data" UUID="fb07e5e7-6116-4352-a838-87aeafbeb704" TYPE="ext4" 
/dev/sda5: LABEL="swap" UUID="7cbfcebd-b08f-4b41-81e0-d0d2f7ec2039" TYPE="swap" 
Mint /etc/fstab:

Code: Select all

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=28bdc8b8-681a-4da7-9b19-b054d67256a3 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=7cbfcebd-b08f-4b41-81e0-d0d2f7ec2039 none            swap    sw              0       2
/dev/sda4 /mnt/data auto nosuid,nodev,nofail,x-gvfs-show 0 0
UUID=fb07e5e7-6116-4352-a838-87aeafbeb704    /mnt/data       ext4    errors=remount-ro,noatime,user  0       2
Kali blkid:

Code: Select all

/dev/sda1: LABEL="mint" UUID="28bdc8b8-681a-4da7-9b19-b054d67256a3" TYPE="ext4" PARTUUID="00065f2d-01"
/dev/sda3: LABEL="kali" UUID="4c3ad136-c096-4b7a-80b8-d585604db3c1" TYPE="ext4" PARTUUID="00065f2d-03"
/dev/sda4: LABEL="data" UUID="fb07e5e7-6116-4352-a838-87aeafbeb704" TYPE="ext4" PARTUUID="00065f2d-04"
/dev/sda5: LABEL="swap" UUID="7cbfcebd-b08f-4b41-81e0-d0d2f7ec2039" TYPE="swap" PARTUUID="00065f2d-05"
Kali /etc/fstab:

Code: Select all

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda3 during installation
UUID=4c3ad136-c096-4b7a-80b8-d585604db3c1 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=7cbfcebd-b08f-4b41-81e0-d0d2f7ec2039 none            swap    sw              0       0
/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/disk/by-uuid/fb07e5e7-6116-4352-a838-87aeafbeb704 /mnt/data auto nosuid,nodev,nofail,x-gvfs-show 0 0
UUID=fb07e5e7-6116-4352-a838-87aeafbeb704	/mnt/data	ext4	errors=remount-ro,noatime,user	0	2
Many thanks for your help,
regards,
Peter
User avatar
WharfRat
Level 21
Level 21
Posts: 13909
Joined: Thu Apr 07, 2011 8:15 pm

Re: Mint-Kali dual boot questions

Post by WharfRat »

You have to get rid of /dev/sda4 /mnt/data auto nosuid,nodev,nofail,x-gvfs-show 0 0 in mint

and in Kali get rid of /dev/disk/by-uuid/fb07e5e7-6116-4352-a838-87aeafbeb704 /mnt/data auto nosuid,nodev,nofail,x-gvfs-show 0 0

You only want to have UUID=fb07e5e7-6116-4352-a838-87aeafbeb704 /mnt/data ext4 errors=remount-ro,noatime,user 0 2
in BOTH fstab files.
ImageImage
kaszasp
Level 1
Level 1
Posts: 46
Joined: Sun Aug 02, 2015 1:49 pm

Re: Mint-Kali dual boot questions

Post by kaszasp »

Hi WharfRat,

Success.
Unqualified, unanimous, utter success.

Many thanks for going all the way holding my hand.

Regards,
Peter
User avatar
WharfRat
Level 21
Level 21
Posts: 13909
Joined: Thu Apr 07, 2011 8:15 pm

Re: Mint-Kali dual boot questions

Post by WharfRat »

WharfRat wrote:Make sure you have your mount point /mnt/data and change the fstab entry for /dev/sda4 to

Code: Select all

UUID=fb07e5e7-6116-4352-a838-87aeafbeb704   /mnt/data	ext4	  errors=remount-ro,noatime,user 0 2
I did say change the fstab entry, not add the line to it :wink:
ImageImage
kaszasp
Level 1
Level 1
Posts: 46
Joined: Sun Aug 02, 2015 1:49 pm

Re: Mint-Kali dual boot questions

Post by kaszasp »

Hi WharfRat,

You are right, good point.

Thanks again,
peter
catrunner75
Level 1
Level 1
Posts: 31
Joined: Fri Sep 11, 2020 11:11 pm

Re: Mint-Kali dual boot questions

Post by catrunner75 »

this is pure space talk in its ultimate form. my brain half melted reading this string. i dont see me ever getting to this level of nerd. confused.
User avatar
Moem
Level 20
Level 20
Posts: 11598
Joined: Tue Nov 17, 2015 9:14 am
Location: The Netherlands
Contact:

Re: Mint-Kali dual boot questions

Post by Moem »

Catrunner, you seem to be trying to run while you're still learning to walk. You're very new at using Linux. Give yourself some time, okay? It'll all work out eventually.
For now, I'm closing this thread because it's too old. We do not revive threads older than 6 months on this forum because of the potential for confusion between different versions of Mint. So if you want to talk about dual boot, use your new thread.
Image

If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!
Locked

Return to “Newbie Questions”