Welcome!
Important information
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- Introducing our new Website
-- MX Linux on social media: here

Current releases
-- MX-18.1 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.4 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Boot and ISO from Grub

Help for Current Versions of MX
User avatar
crazysquirrel
Forum Novice
Forum  Novice
Posts: 55
Joined: Thu Mar 14, 2019 5:59 pm

Boot and ISO from Grub

#1

Post by crazysquirrel » Thu Mar 14, 2019 6:36 pm

I am looking for a way to select an ISO (TAILS specifically) from ISO on the grub menu along with my other entries.
But any live iso would be nice. A step by step tutorial would be nice.

Also want to colorize and customize folders in MX 17.1.

Emblems seem pretty SPARSE and no colorize feature.

I colorize folders on my movie drive according to whatever category they are in for quick access.
I tried gnome icon theme in synaptic and still no colorize feature.

Running Mx 17.1 (but I saw something that said 18 continuum rollback feature briefly in Grub).
Core i5, 8gb dual channel ram, ASUS P7H55 Pro mobo. 2TB hybrid HD (seagate) with dual boot XP Media Center Edition 2005.
Have other storage drives also connected internally and some externally when needed.
Mx 17.1, dual boot with XP Media Center Edition 2005, core i5, 4gb ram, 2TB hybrid Seagate + other storage drives.

I NEED MULTISYSTEM just like the one I can get for *buntu derivatives. NOT THE ISO ONE.

User avatar
fehlix
Forum Veteran
Forum Veteran
Posts: 3111
Joined: Wed Apr 11, 2018 5:09 pm

Re: Boot and ISO from Grub

#2

Post by fehlix » Thu Mar 14, 2019 8:59 pm

crazysquirrel wrote:
Thu Mar 14, 2019 6:36 pm
I am looking for a way to select an ISO (TAILS specifically) from ISO on the grub menu
With this iso: /ISO/Tails/tails-amd64-3.12.1.iso
and this grub-menu entry within the file /boot/grub/custom.cfg

Code: Select all

menuentry "ISO-boot: tails-amd64-3.12.1.iso"  {

  set isofile=/ISO/Tails/tails-amd64-3.12.1.iso

  search --no-floppy --set=root --file $isofile
  loopback loop $isofile
  set root=(loop)
  echo "Booting $isofile ..."

  linux /live/vmlinuz boot=live findiso=${isofile} config apparmor=1 security=apparmor nopersistence noprompt timezone=Etc/UTC block.events_dfl_poll_msecs=1000 splash noautologin module=Tails kaslr slab_nomerge slub_debug=FZP mce=0 vsyscall=none page_poison=1 union=aufs quiet
  initrd /live/initrd.img
}
I can boot into Tails from an existing MX-Linux grub-menu.
:puppy:
Welcome to the forum.
EDIT: added missing set root=(loop)
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
crazysquirrel
Forum Novice
Forum  Novice
Posts: 55
Joined: Thu Mar 14, 2019 5:59 pm

Re: Boot and ISO from Grub

#3

Post by crazysquirrel » Thu Mar 14, 2019 9:30 pm

Thank you will try that as soon as I get MX fixed.... or reinstalled....
Mx 17.1, dual boot with XP Media Center Edition 2005, core i5, 4gb ram, 2TB hybrid Seagate + other storage drives.

I NEED MULTISYSTEM just like the one I can get for *buntu derivatives. NOT THE ISO ONE.

User avatar
crazysquirrel
Forum Novice
Forum  Novice
Posts: 55
Joined: Thu Mar 14, 2019 5:59 pm

Re: Boot and ISO from Grub

#4

Post by crazysquirrel » Thu Mar 14, 2019 10:56 pm

File not found (grub custom).
I even looked in the Grub customizer and no way I can see to add it in where it would work.

Does the iso have to be on a linux root partition or where?
What about on a separate drive formatted in ntfs?

Planning on R/R the whole OS.

I may have messed it up too much to fix it.
Mx 17.1, dual boot with XP Media Center Edition 2005, core i5, 4gb ram, 2TB hybrid Seagate + other storage drives.

I NEED MULTISYSTEM just like the one I can get for *buntu derivatives. NOT THE ISO ONE.

User avatar
asqwerth
Forum Veteran
Forum Veteran
Posts: 4290
Joined: Sun May 27, 2007 5:37 am

Re: Boot and ISO from Grub

#5

Post by asqwerth » Thu Mar 14, 2019 11:56 pm

I note in your signature you say "I need PPAs".

MX is not Ubuntu-based.

If you enabled lots of PPAs that might be causing or might cause in future many issues with your installation.
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

User avatar
fehlix
Forum Veteran
Forum Veteran
Posts: 3111
Joined: Wed Apr 11, 2018 5:09 pm

Re: Boot and ISO from Grub

#6

Post by fehlix » Fri Mar 15, 2019 7:56 am

crazysquirrel wrote:
Thu Mar 14, 2019 10:56 pm
File not found (grub custom).
You need to have both files:
The iso: /ISO/Tails/tails-amd64-3.12.1.iso
and this new text file /boot/grub/custom.cfg
Yes, and both are probably new.
crazysquirrel wrote:
Thu Mar 14, 2019 10:56 pm
Does the iso have to be on a linux root partition or where?
What about on a separate drive formatted in ntfs?
The ISO can be on any ext4 partition, and sure you can adjust iso-path and iso-filename mentioned in custom.cfg.
:puppy:
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
Buck Fankers
Forum Regular
Forum Regular
Posts: 294
Joined: Sat Mar 10, 2018 9:06 pm

Re: Boot and ISO from Grub

#7

Post by Buck Fankers » Fri Mar 15, 2019 8:19 am

fehlix wrote:
Fri Mar 15, 2019 7:56 am
crazysquirrel wrote:
Thu Mar 14, 2019 10:56 pm
File not found (grub custom).
You need to have both files:
The iso: /ISO/Tails/tails-amd64-3.12.1.iso
and this new text file /boot/grub/custom.cfg
This is interesting, so I had to try it out as well ;-)
Legacy boot, new menu entry does shows up but I got the same error.
I made sure path to the file and file name is correct, both files present...
Beside upper errors I also saw something like: can't find: /live/vmlinuz

User avatar
fehlix
Forum Veteran
Forum Veteran
Posts: 3111
Joined: Wed Apr 11, 2018 5:09 pm

Re: Boot and ISO from Grub

#8

Post by fehlix » Fri Mar 15, 2019 8:23 am

Buck Fankers wrote:
Fri Mar 15, 2019 8:19 am
fehlix wrote:
Fri Mar 15, 2019 7:56 am
crazysquirrel wrote:
Thu Mar 14, 2019 10:56 pm
File not found (grub custom).
You need to have both files:
The iso: /ISO/Tails/tails-amd64-3.12.1.iso
and this new text file /boot/grub/custom.cfg
This is interesting, so I had to try it out as well ;-)
Legacy boot, new menu entry does shows up but I got the same error.
I made sure path to the file and file name is correct, both files present...
Beside upper errors I also saw something like: can't find: /live/vmlinuz
Better show what you have... somewhere a typo ?
EDIT: Yes, my typo

Code: Select all

menuentry "ISO-boot: tails-amd64-3.12.1.iso"  {

  set isofile=/ISO/Tails/tails-amd64-3.12.1.iso

  search --no-floppy --set=root --file $isofile
  loopback loop $isofile
  set root=(loop)
  echo "Booting $isofile ..."

  linux /live/vmlinuz boot=live findiso=${isofile} config apparmor=1 security=apparmor nopersistence noprompt timezone=Etc/UTC block.events_dfl_poll_msecs=1000 splash noautologin module=Tails kaslr slab_nomerge slub_debug=FZP mce=0 vsyscall=none page_poison=1 union=aufs quiet
  initrd /live/initrd.img
}
I missed
set root=(loop)
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
Buck Fankers
Forum Regular
Forum Regular
Posts: 294
Joined: Sat Mar 10, 2018 9:06 pm

Re: Boot and ISO from Grub

#9

Post by Buck Fankers » Fri Mar 15, 2019 9:18 am

I'm trying on another laptop where I don't have internet connection set up to show you what I have, but I just copy/paste your code, placed it to: /boot/grub/custom.cfg and I copy/paste filename from your code and renamed iso file to make sure the name is correct & matches code. I got the same error as before, maybe only difference, this time there is repeated: "error: disk 'loop' not found"

So looks like iso file is not being found, for that reason I also tried changing iso file path to absolute path, simplified path with of course editing custom.cfg to reflect the changes in file location. I tried these combinations:

Code: Select all

set isofile=/home/mx/ISO/Tails/tails-amd64-3.12.1.iso
set isofile=/home/mx/isoboot/tails.iso
set isofile=/isoboot/tails.iso
and every atempt produces the same set of errors: (of course reflecting different file path, this bellow is original error)

Code: Select all

error: no such device: /ISO/Tails/tails-amd64-3.12.1.iso.
error: disk 'loop' not found.
Booting: /ISO/Tails/tails-amd64-3.12.1.iso ...
error: disk 'loop' not found.
error: you need to load the kernel first
Next I will download again tails iso image, just in case

OK, here I copy code from custom.cfg so you can see my latest atempt:

Code: Select all

menuentry "ISO-boot: tails-amd64-3.12.1.iso"  {

  set isofile=/isoboot/tails.iso

  search --no-floppy --set=root --file $isofile
  loopback loop $isofile
  set root=(loop)
  echo "Booting $isofile ..."

  linux /live/vmlinuz boot=live findiso=${isofile} config apparmor=1 security=apparmor nopersistence noprompt timezone=Etc/UTC block.events_dfl_poll_msecs=1000 splash noautologin module=Tails kaslr slab_nomerge slub_debug=FZP mce=0 vsyscall=none page_poison=1 union=aufs quiet
  initrd /live/initrd.img
}
Of course error is now:

Code: Select all

error: no such device: /isoboot/tails.iso.
error: disk 'loop' not found.
Booting: /isoboot/tails.iso ...
error: disk 'loop' not found.
error: you need to load the kernel first
If it matters, there is only MX 18.1 on this disk.
Lets wait if someone else has the same error.
If not, problem is then clearly on my side

User avatar
fehlix
Forum Veteran
Forum Veteran
Posts: 3111
Joined: Wed Apr 11, 2018 5:09 pm

Re: Boot and ISO from Grub

#10

Post by fehlix » Fri Mar 15, 2019 9:31 am

Buck Fankers wrote:
Fri Mar 15, 2019 9:18 am
error: no such device: /isoboot/tails.iso.
On what partition is "/isoboot/tails.iso" better put it on a ext4 partition.
show

Code: Select all

ls -l /isoboot
You might also verify the iso by checking the signature:
I do:

Code: Select all

$ gpgv tails-amd64-3.12.1.iso.sig tails-amd64-3.12.1.iso 
gpgv: Signature made Di 12 Feb 2019 23:24:52 CET
gpgv:                using RSA key FE029CB4AAD4788E1D7828E8A8B0F4E45B1B50E2
gpgv: Good signature from "Tails developers (offline long-term identity key) <tails@boum.org>"
gpgv:                 aka "Tails developers <tails@boum.org>"

I got "Good Signature ... " because I imported their signing key like this:

Code: Select all

gpg --no-default-keyring --keyring ~/.gnupg/trustedkeys.kbx --fetch-keys https://tails.boum.org/tails-signing.key
gpg: requesting key from 'https://tails.boum.org/tails-signing.key'
gpg: key DBB802B258ACD84F: 2 duplicate signatures removed
gpg: key DBB802B258ACD84F: 1952 signatures not checked due to missing keys
gpg: key DBB802B258ACD84F: "Tails developers (offline long-term identity key) <tails@boum.org>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
:puppy:
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

Post Reply

Return to “MX Help”