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

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-18 Final release info here
-- Migration Information to MX-18 here
-- antiX-17.3 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

Install to hard drive from ISO-boot [solved]

c7RAfN0H
Forum Novice
Forum  Novice
Posts: 9
Joined: Mon Dec 24, 2018 2:11 pm

Install to hard drive from ISO-boot [solved]

#1

Post by c7RAfN0H » Tue Jan 01, 2019 3:36 pm

Suppose I use grml-rescueboot on Debian/Ubuntu to boot up an MX18 iso, would I be able to install MX18 to my harddrive, assuming I don't overwrite the /boot partition from which my MX18 iso is being grml-rescuebooted?

Code: Select all

apt show grml-rescueboot
...
Description: Integrates Grml ISO booting into GRUB
 This package provides a script for update-grub which looks for
 Grml ISO images in /boot/grml and automatically adds an entry
 for each image. The purpose is to use one of those images to
 boot a Grml rescue system without using a CD or USB stick.
https://wiki.grml.org/doku.php?id=rescueboot

edit:spelling
edit:grammar
edit:title
Last edited by c7RAfN0H on Wed Jan 02, 2019 11:03 am, edited 1 time in total.

User avatar
BitJam
Forum Guide
Forum Guide
Posts: 2708
Joined: Sat Aug 22, 2009 11:36 pm

Re: install from grml-rescueboot

#2

Post by BitJam » Tue Jan 01, 2019 4:04 pm

I would be surprised if this booted correctly. Please let us know if it does. Why don't you want to boot MX the normal way? Do you have no usb stick to use? If you are on Linux and have "git" installed and you have one of our iso files and a usb-stick then you can make a full featured live-usb with these simple steps:

Code: Select all

git clone https://github.com/BitJam/live-usb-maker
git clone https://github.com/BitJam/cli-shell-utils
cd live-usb-maker
sudo ./live-usb-maker
Depending on the speed of the stick, the whole process takes about 2 minutes or less. A slow usb-2 stick will take longer to write to.

With our wide assortment of live tools and features (The Most Extensive Live-usb on the Planet!) it is possible that MX and/or antiX are much better at doing grml stuff than grml.

Almost a decade ago, I started working on our live system to make it easy for me to add Zsh to antiX live so I could have a fast-booting rescue usb that ran Zsh. It sounds like antiX is closer to grml than MX is. It has very good command line support including our cli control centre: antiX-cli-cc. Both antiX-base and antiX-full contain Fluxbox and several other lightweight window managers. OTOH MX provides a smoother GUI experience with a highly integrated XFCE desktop. The MX community repos make it shine and set it apart from most other Debian derivates. You literally get the best of both worlds (stable and testing). Both antiX and MX use the same live system.
Will I cry when it's all over?
When I die will I see Heaven?

c7RAfN0H
Forum Novice
Forum  Novice
Posts: 9
Joined: Mon Dec 24, 2018 2:11 pm

Re: install from grml-rescueboot

#3

Post by c7RAfN0H » Tue Jan 01, 2019 4:39 pm

It is indeed because I have no usb stick. I have no interest in grml, just looking for a way to boot an iso from my harddrive and then install that iso to my harddrive from the running system.

User avatar
fehlix
Forum Guide
Forum Guide
Posts: 2705
Joined: Wed Apr 11, 2018 5:09 pm

Re: install from grml-rescueboot

#4

Post by fehlix » Tue Jan 01, 2019 5:25 pm

c7RAfN0H wrote:
Tue Jan 01, 2019 4:39 pm
.. just looking for a way to boot an iso from my harddrive and then install that iso to my harddrive from the running system.
A little ISO cooking receipt:
Preparation: make new folder /ISO

Code: Select all

sudo mkdir /ISO
Ingredient:
place ISO in new folder as /ISO/MX-18_x64.iso

Save below ISO-boot menu as file /boot/grub/custom.cfg
Adjust language, keyboard. timezone.
Reboot and have fun with iso-booting.

Code: Select all

# ISO-Boot-Menu
# copy this file to /boot/grub/custom.cfg
# copy ISO to /ISO/MX-18_x64.iso
#
submenu "ISO-Boot Menu" {
   menuentry "ISO-Boot: MX-18_x64.iso - lang=en_US kbd=us tz=America/New_York" {
      set iso_path=/ISO/MX-18_x64.iso
      search --no-floppy --set=root --file $iso_path
      probe -u $root --set=buuid
      loopback loop $iso_path
      set root=(loop)
      
      linux  /antiX/vmlinuz buuid=$buuid fromiso=$iso_path quiet lang=en_US  kbd=us tz=America/New_York
      initrd /antiX/initrd.gz
   }
   
   menuentry "ISO-Boot: MX-18_x64.iso - text menus" {
      set iso_path=/ISO/MX-18_x64.iso
      search --no-floppy --set=root --file $iso_path
      probe -u $root --set=buuid
      loopback loop $iso_path
      set root=(loop)
      
      linux  /antiX/vmlinuz buuid=$buuid fromiso=$iso_path quiet menus
      initrd /antiX/initrd.gz
   }
   
   menuentry "ISO-Boot: MX-18_x64.iso - Failsafe" {
      set iso_path=/ISO/MX-18_x64.iso
      search --no-floppy --set=root --file $iso_path
      probe -u $root --set=buuid
      loopback loop $iso_path
      set root=(loop)
     
      linux  /antiX/vmlinuz buuid=$buuid fromiso=$iso_path quiet failsafe
      initrd /antiX/initrd.gz
   }
}
:puppy:
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

c7RAfN0H
Forum Novice
Forum  Novice
Posts: 9
Joined: Mon Dec 24, 2018 2:11 pm

Re: install from grml-rescueboot

#5

Post by c7RAfN0H » Tue Jan 01, 2019 5:37 pm

Thank you although for me that does not work yet with an error of something like, "Can not find /ISO/MX-18_x64.iso." I believe this is because most of my hdd is encrypted. I have an unencrypted /dev/sda1 mounted at /boot, and an encrypted /dev/sda2 containing an lvm group with two volumes, / and swap. It would make sense if I were able to do something like put the ISO directory on my unencrypted /boot partition and point the custom.cfg to that, but I have similar error with that, too.

User avatar
fehlix
Forum Guide
Forum Guide
Posts: 2705
Joined: Wed Apr 11, 2018 5:09 pm

Re: install from grml-rescueboot

#6

Post by fehlix » Tue Jan 01, 2019 5:52 pm

c7RAfN0H wrote:
Tue Jan 01, 2019 5:37 pm
this is because most of my hdd is encrypted.
It would make sense if I were able to do something like put the ISO directory on my unencrypted /boot
partition and point the custom.cfg to that, but I have similar error with that, too.
ohh ... nice you let us know ;) and was certainly not tested with encryption in mind but can surely be done too.
What about showing us quick system info (aka "inxi -Fxz" )

Code: Select all

inxi -Fxz
and perhaps this

Code: Select all

lsblk -f
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
anticapitalista
Forum Veteran
Forum Veteran
Posts: 5949
Joined: Sat Jul 15, 2006 10:40 am

Re: install from grml-rescueboot

#7

Post by anticapitalista » Tue Jan 01, 2019 5:53 pm

Use a cd/dvd or splash out on a cheapo £3 usb stick then.
anticapitalista
Reg. linux user #395339.

Philosophers have interpreted the world in many ways; the point is to change it.

antiX-17 "Heather Heyer" - lean and mean.
https://antixlinux.com

c7RAfN0H
Forum Novice
Forum  Novice
Posts: 9
Joined: Mon Dec 24, 2018 2:11 pm

Re: install from grml-rescueboot

#8

Post by c7RAfN0H » Tue Jan 01, 2019 6:30 pm

After some experimentation, it works. This is a snippet of my working custom.cfg:

Code: Select all

   menuentry "ISO-Boot: MX-18_x64.iso - lang=en_US kbd=us tz=America/New_York" {
      set iso_path=(hd0,1)/MX-18_x64.iso
      search --no-floppy --set=root --file $iso_path
      probe -u $root --set=buuid
      loopback loop $iso_path
      set root=(loop)
      linux  /antiX/vmlinuz buuid=$buuid fromiso=/MX-18_x64.iso quiet lang=en_US  kbd=us tz=America/New_York
      initrd /antiX/initrd.gz
   }
I just plopped the ISO right in /boot (/boot/MX-18_x64.iso). I specify the unencrypted drive (referred to as (hd0,1), aka /dev/sda1 in grub terms) as iso_path to be used for loopback. However, in my kernel params, I need to specify the iso file only for my fromiso value. Now... I wonder if I can install to hdd from this...
fehlix wrote:
Tue Jan 01, 2019 5:52 pm
ohh ... nice you let us know ;)
Now ain't that just the way...
fehlix wrote:
Tue Jan 01, 2019 5:52 pm
What about showing us quick system info (aka "inxi -Fxz" )

Code: Select all

inxi -Fxz
and perhaps this

Code: Select all

lsblk -f
inxi -Fxz

Code: Select all

System:    Host:  Kernel: 4.9.0-8-amd64 x86_64 (64 bit gcc: 6.3.0)
           Desktop: MATE 1.20.3 (Gtk 3.22.11) Distro: Debian GNU/Linux 9 (stretch)
Machine:   Device: portable System: 
           Mobo: Dell model: 034W60 v: A11 BIOS: Dell v: A11 date: 08/03/2012
CPU:       Dual core Intel Core i3-2310M (-HT-MCP-) cache: 3072 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 8381
           clock speeds: max: 2100 MHz 1: 1290 MHz 2: 1397 MHz 3: 1043 MHz 4: 1304 MHz
Graphics:  Card: Intel 2nd Generation Core Processor Family Integrated Graphics Controller
           bus-ID: 00:02.0
           Display Server: X.Org 1.19.2 drivers: modesetting (unloaded: fbdev,vesa)
           Resolution: 1366x768@60.01hz
           GLX Renderer: Mesa DRI Intel Sandybridge Mobile
           GLX Version: 3.0 Mesa 18.2.6 Direct Rendering: Yes
Audio:     Card Intel 6 Series/C200 Series Family High Definition Audio Controller
           driver: snd_hda_intel bus-ID: 00:1b.0
           Sound: Advanced Linux Sound Architecture v: k4.9.0-8-amd64
Network:   Card-1: Realtek RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller
           driver: r8169 v: 2.3LK-NAPI port: e000 bus-ID: 05:00.0
           IF: enp5s0 state: down mac: <filter>
           Card-2: Intel Centrino Wireless-N 1030 [Rainbow Peak] driver: iwlwifi bus-ID: 09:00.0
           IF: wlp9s0 state: up mac: <filter>
Drives:    HDD Total Size: 500.1GB (14.2% used)
           ID-1: /dev/sda model: WDC_WD5000BPVT size: 500.1GB temp: 46C
Partition: ID-1: / size: 449G used: 58G (14%) fs: ext4 dev: /dev/dm-2
           ID-2: /boot size: 1.9G used: 1.4G (82%) fs: ext4 dev: /dev/sda1
           ID-3: swap-1 size: 8.00GB used: 0.00GB (0%) fs: swap dev: /dev/dm-1
Sensors:   System Temperatures: cpu: 53.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 187 Uptime: 9 min Memory: 753.1/3862.7MB
           Init: systemd runlevel: 5 Gcc sys: 6.3.0 Client: Shell (bash 4.4.121) inxi: 2.3.5 
lsblk -f

Code: Select all

NAME                FSTYPE      LABEL UUID                                   MOUNTPOINT
sda                                                                          
├─sda1              ext4              b5e92325-258b-4cf7-8808-cf514ef66efa   /boot
└─sda2              crypto_LUKS       751a7468-a6f8-461d-b58f-0586c9bec678   
  └─sda2_crypt      LVM2_member       fVDrq3-OSwS-BJPJ-d4QM-B4ug-xawV-IWyxP1 
    ├─debian-swap   swap              11aa2a6c-4d1f-4729-bac8-e46781aba2af   [SWAP]
    └─debian-debian ext4              57f47bc9-8058-470a-86e3-a149198c8de1   /
sr0
Idk if this (my system and partition info) is still relevant at this point, I've got it booted okay, I just don't know if it will install... into the unknown I guess. Thanks for the pointers
anticapitalista wrote:
Tue Jan 01, 2019 5:53 pm
Use a cd/dvd or splash out on a cheapo £3 usb stick then.
It's a bit of a convoluted situation on my end, but yes, that would be the straightforward choice. Ty

edit:wording

User avatar
fehlix
Forum Guide
Forum Guide
Posts: 2705
Joined: Wed Apr 11, 2018 5:09 pm

Re: install from grml-rescueboot

#9

Post by fehlix » Tue Jan 01, 2019 6:48 pm

c7RAfN0H wrote:
Tue Jan 01, 2019 6:30 pm
After some experimentation, it works. This is a snippet of my working custom.cfg:

Code: Select all

   menuentry "ISO-Boot: MX-18_x64.iso - lang=en_US kbd=us tz=America/New_York" {
      set iso_path=(hd0,1)/MX-18_x64.iso
      search --no-floppy --set=root --file $iso_path
      probe -u $root --set=buuid
      loopback loop $iso_path
      set root=(loop)
      linux  /antiX/vmlinuz buuid=$buuid fromiso=/MX-18_x64.iso quiet lang=en_US  kbd=us tz=America/New_York
      initrd /antiX/initrd.gz
   }
I just plopped the ISO right in /boot (/boot/MX-18_x64.iso). I specify the unencrypted drive (referred to as (hd0,1), aka /dev/sda1 in grub terms) as iso_path to be used for loopback. However, in my kernel params, I need to specify the iso file only for my fromiso value. Now... I wonder if I can install to hdd from this...
A small issue in the custom.cfg you posted the "iso_path" need to be the path without the device,
otherwise the "buuid" might not get set properly.
So this shall work:

Code: Select all

   menuentry "ISO-Boot: MX-18_x64.iso - lang=en_US kbd=us tz=America/New_York" {
      set iso_path=/MX-18_x64.iso
      search --no-floppy --set=root --file $iso_path
      probe -u $root --set=buuid
      loopback loop $iso_path
      set root=(loop)
      linux  /antiX/vmlinuz buuid=$buuid fromiso=/MX-18_x64.iso quiet lang=en_US  kbd=us tz=America/New_York
      initrd /antiX/initrd.gz
   }
Alternatively if you have issues with uuid identification,
here the "fixed" device ( which works as long as grub and linux sees "(hd0,1)" == "/dev/sda1"

Code: Select all

   menuentry "ISO-Boot: MX-18_x64.iso - lang=en_US kbd=us tz=America/New_York" {
      loopback loop (hd0,1)/MX-18_x64.iso
      set root=(loop)
      linux  /antiX/vmlinuz bdev=/dev/sda1 fromiso=/MX-18_x64.iso quiet lang=en_US  kbd=us tz=America/New_York
      initrd /antiX/initrd.gz
   }   
And yes you can install, with two potential restrictions:
do install to an empty ( or better) pre-exstings partiton as (non-enrypted).
Do not install grub to the MBR but rather to "root",
in order to avoid to overwrite your existing grub (with encryption)
Boot into the encrypted install and run within the encrypted installation

Code: Select all

sudo update-grub
With this, your new install will have a new menuentry within that grub-menu.
:puppy:
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

dyfi
Forum Regular
Forum Regular
Posts: 160
Joined: Sat Jan 01, 2011 10:13 am

Re: install from grml-rescueboot

#10

Post by dyfi » Wed Jan 02, 2019 2:45 am

@fehlix - worked for me first time, thanks.

Post Reply

Return to “Installation”