Welcome!
Important information
-- Information on torrent hosting changes
-- 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.1 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.3.1 release info here

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

Grub command line and no kernel in /boot after snapshot ISO installation

kurtkafka
Forum Novice
Forum  Novice
Posts: 9
Joined: Tue Feb 12, 2019 3:53 am

Re: Grub command line and no kernel in /boot after snapshot ISO installation

#11

Post by kurtkafka » Tue Feb 12, 2019 12:13 pm

I gave it another try with 18.1.
Same result.

Here is the log of what I did.

Code: Select all

- dd 18.1 x64 iso on USB stick
- boot from USB stick (no persistence) 
- started installer
- changed keyboard to German
- run partition tool making: swap (primary) extended with boot, root, home (all three encrypted) and data partition
- labelled the partitions acoordingly: boot = boot, etc.
- custom install on existing partitions -> next
- root on root partition and so on
- checked the encryption buttons for root and home
- gave passworts for encryption -> next, okayed the questions regarding formatting...
- waiting... system was installed, no error messages
- install grub -> yes
- name user / passwords

- reboot to on T400 installed version
- unlocking encrypted drives
- install updates
- install oolite / change desktop background
- make snapshot
- plug in USB stick and unmount it
- start live usb maker
- check box "encrypt"
- "LiveUSB creation successful"


- reboot to USB stick
- options: "persist_all", "save"
- enter passwords for encryption
- create root persistence file automatically (option 1)
- create home persistence file automatically (option 1)
- dynamic root persistence ("yes")
- choose auto-save mode (1 "automatic")
- some boot messages show up, blinking cursor "Please unlock disk rootfs"
- enter password
- system boots

- reboot to USB stick
- delete all HDD partitions as su -> error: kernel cannot be informed...
- reboot to USB stick
- repartition HDD
- installer on different partitions: swap, boot, root, home, data
- stall grub on mbr

- reboot to T400
- Laptop boots into grub

kurtkafka
Forum Novice
Forum  Novice
Posts: 9
Joined: Tue Feb 12, 2019 3:53 am

Re: Grub command line and no kernel in /boot after snapshot ISO installation

#12

Post by kurtkafka » Tue Feb 12, 2019 12:17 pm

dolphin_oracle wrote:
Tue Feb 12, 2019 11:26 am
looks like we have a bug in snapshot for that doesn't pick up /boot when its a separate partition. We are working to fix that now.
Thanks in advance.

Can I adjust the OS on the USB stick to my needs and after the problem is fixed just do an
sudo aptitude update
sudo aptitude upgrade
and then use the snapshotter and install the adjusted OS on my notebook without any problems?

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

Re: Grub command line and no kernel in /boot after snapshot ISO installation

#13

Post by fehlix » Tue Feb 12, 2019 12:25 pm

dolphin_oracle wrote:
Tue Feb 12, 2019 11:26 am
looks like we have a bug in snapshot for that doesn't pick up /boot when its a separate partition. We are working to fix that now.
Just a thought ... I know it was introduced with partition-encryption, but I wouldn't recommend to use it for non-encrypted, as I'm sure separate /boot will create confusion for non-encrypted installs, without bringing any benefit by having it separated. Just keep it simple for new user. An advanced user could separate /boot manually anyway later, if he feels it is needed. ... just a thought ... :snail:
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
Adrian
Forum Veteran
Forum Veteran
Posts: 9513
Joined: Wed Jul 12, 2006 1:42 am

Re: Grub command line and no kernel in /boot after snapshot ISO installation

#14

Post by Adrian » Tue Feb 12, 2019 2:18 pm

Thanks for the report, the new mx-snapshot 19.2.1 (will appear shortly in the repo) should fix this issue with separate /boot partition.

User avatar
QuidANkEpLuChIpS
Forum Novice
Forum  Novice
Posts: 3
Joined: Tue Feb 12, 2019 12:31 am

Re: Grub command line and no kernel in /boot after snapshot ISO installation

#15

Post by QuidANkEpLuChIpS » Tue Feb 12, 2019 3:40 pm

Adrian wrote:
Tue Feb 12, 2019 2:18 pm
Thanks for the report, the new mx-snapshot 19.2.1 (will appear shortly in the repo) should fix this issue with separate /boot partition.
Less than 24 hours between initial report and a potential fix being pushed, nice! I'll try to build a new ISO tonight after upgrading and slap it on another machine. And sorry for lack of additional feedback, still stuck at work. But the reason sounds plausible for me as well. Source laptop was encrypted with separate boot -> unencrypted snapshot ISO -> either unencrypted or encrypted destination machine.

User avatar
QuidANkEpLuChIpS
Forum Novice
Forum  Novice
Posts: 3
Joined: Tue Feb 12, 2019 12:31 am

Re: Grub command line and no kernel in /boot after snapshot ISO installation

#16

Post by QuidANkEpLuChIpS » Wed Feb 13, 2019 3:01 am

Initial results are good. I upgraded mx-snapshot, built a new ISO, and installed it on the aforementioned desktop (without encryption in this instance). Grub works as expected and the system boots fine. The only problem I ran into was what I believe is a known issue where the system/kernel on the live ISO doesn't seem to pick up partition changes during the install (i.e. you choose full disk or manually go nuke stuff in gparted but the installer fails while trying to create partitions). After making doubly sure they were gone in gparted, and rebooting back into the ISO, the installer went through fine. I'll reinstall it again on the two targets this week, encrypted this time, and report back if anything is amiss (which I don't expect).

kurtkafka
Forum Novice
Forum  Novice
Posts: 9
Joined: Tue Feb 12, 2019 3:53 am

Re: Grub command line and no kernel in /boot after snapshot ISO installation

#17

Post by kurtkafka » Wed Feb 13, 2019 4:35 am

How can I upgrade mx-snapshot?

Edit: Found it out. When I tried update / upgrade yesterday it just wasn't yet in the repos.

kurtkafka
Forum Novice
Forum  Novice
Posts: 9
Joined: Tue Feb 12, 2019 3:53 am

Re: Grub command line and no kernel in /boot after snapshot ISO installation

#18

Post by kurtkafka » Wed Feb 13, 2019 5:48 am

First try failed. I upgradet the USB stick (persistence on) with aptitude update and aptitude upgrade. A new mx-snapshot version was installed.
Then I rebooted and installed from the USB stick to the T400's HDD. Boots into grub again.

User avatar
dolphin_oracle
Forum Veteran
Forum Veteran
Posts: 10636
Joined: Sun Dec 16, 2007 1:17 pm

Re: Grub command line and no kernel in /boot after snapshot ISO installation

#19

Post by dolphin_oracle » Wed Feb 13, 2019 7:41 am

kurtkafka wrote:
Wed Feb 13, 2019 5:48 am
First try failed. I upgradet the USB stick (persistence on) with aptitude update and aptitude upgrade. A new mx-snapshot version was installed.
Then I rebooted and installed from the USB stick to the T400's HDD. Boots into grub again.
You are going to need to create a new snaphot with the updated mx-snapshot as the update to mx-snapshot will not replace the .missing boot folder on your current snaoshot.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad T530 - MX-18
lenovo s21e - MX-18, antiX-17.3.1 (live-USB)
FYI: mx "test" repo is not the same thing as debian testing repo.

kurtkafka
Forum Novice
Forum  Novice
Posts: 9
Joined: Tue Feb 12, 2019 3:53 am

Re: Grub command line and no kernel in /boot after snapshot ISO installation

#20

Post by kurtkafka » Wed Feb 13, 2019 7:46 am

Started afresh and it works. Thanks a lot!

Here is what I did:

dd 18.1 onto USB stick
installed from usb stick onto T400 with encryption and partitions swap, root, boot, home, data
rebooted T400 from HDD
update & upgrade T400 to latest mx-snapshot
rebooted T400 from HDD
made snaphot from HDD system from within HDD system
wrote snapshot to USB stick with encryption enabled
booted from USB stick
installed from USB stick to HDD with grub written to mbr
reboot from HDD
Halejula!

Post Reply

Return to “Installation”