grub rescue, error: disk 'lvmid..' not found,after grub-inst

If it doesn't relate to Debian, but you still want to share it, please do it here

grub rescue, error: disk 'lvmid..' not found,after grub-inst

Postby KaliDevHacker » 2020-05-26 23:11

I am using a 'Debian Jessie' based debian kali linux. My system information, the output of the 'sudo uname -a' command.
[Linux kali 5.5.0-kali2-amd64 #1 SMP Debian 5.5.17-1kali1 (2020-04-21) x86_64 GNU/Linux]
I deleted all partitions before i installed Windows 10 Enterprise. Before that my Linux worked perfectly. And it wont boot anymore, because i deleted my bootloader that was on my windows disk. I came across some solutions to my problem that was going to fix my bootloader. The solution i came across is the commands 6-31.I had to change the command 6 with command 1-5 because my /dev/sdb3 partition is crypto_LUKS filesystem. I beleive i fucked it up some place between command 1-5. I am not an experienced user, and after i rebooted my system i was in grub rescue mode.I hope there is someone here that can see where i fucked it up, and tell me what to do to fix the problem.

1. sudo cryptsetup open /dev/sdb3 backup
2. sudo lsblk -f /dev/sdb
3. sudo vgdisplay --short
4. sudo lvs -o lv_name,lv_size -S vg_name=server-vg
5. sudo mount /dev/server-vg/root /mnt
6. /*sudo mount /dev/sdb3 /mnt*/
7. sudo mount --bind /dev /mnt/dev
8. sudo mount --bind /proc /mnt/proc
9. sudo mount --bind /sys /mnt/sys
10. sudo mkdir /mnt/sys/firmware/efi/efivars
11. sudo mount --bind /sys/firmware/efi/efivars /mnt/sys/firmware/efi/efivars
12. sudo mkdir /mnt/boot/efi
13. sudo mount /dev/sdb1 /mnt/boot/efi
14. sudo mount -o remount,rw /dev/sdb1 /mnt/boot/efi
15. sudo mkdir /mnt/hostrun
16. sudo mount --bind /run /mnt/hostrun
17. sudo chroot /mnt
18. mkdir /run/lvm
19. mount --bind /hostrun/lvm /run/lvm
20. grub-install /dev/sdb
21. update-grub
22. exit
23. sudo umount /mnt/dev
24. sudo umount /mnt/proc
25. sudo umount /mnt/sys/firmware/efi/efivars
26. sudo umount /mnt/sys
27. sudo umount /mnt/boot/efi
28. sudo umount /mnt/hostrun
29. sudo umount /mnt/run/lvm
30. sudo umount /mnt
31. sudo shutdown -r



error: disk 'lvmid/C5jYs5-VQXZ-2Aak-Cm6v-QEvf-F9UM-BBDwOD/RK6yu3-loSB-MyBU-H7w3-ALqX-2tRO-570YLW' not found.
grub rescue> ls
(hd0) (hd1) (hd2)
grub rescue>
[Linux server 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2 (2020-04-29) x86_64 GNU/Linux]


DevPiggy
User avatar
KaliDevHacker
 
Posts: 7
Joined: 2020-05-26 22:01
Location: Norway

Re: grub rescue, error: disk 'lvmid..' not found,after grub-

Postby CwF » 2020-05-27 00:39

Who makes up these post?
CwF
 
Posts: 696
Joined: 2018-06-20 15:16

Re: grub rescue, error: disk 'lvmid..' not found,after grub-

Postby sunrat » 2020-05-27 01:39

Kali is not supported here, nor any other distro whether "Debian-based" or not. Kali has forums, I believe.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 3088
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: grub rescue, error: disk 'lvmid..' not found,after grub-

Postby cuckooflew » 2020-05-27 02:20

"KaliDevHacker", where do they get the user names ? :lol:
Please Read What we expect you have already Done
Google knows a lot,
God, our Father knows all, maybe ask Him ,
…one flew east, one flew west,
One flew over the cuckoo’s nest.

I am not the right colour, so my life does not matter ?
to God it does :)
cuckooflew
 
Posts: 434
Joined: 2018-05-10 19:34
Location: Some where out west

Re: grub rescue, error: disk 'lvmid..' not found,after grub-

Postby sunrat » 2020-05-27 02:46

cuckooflew wrote:"KaliDevHacker", where do they get the user names ? :lol:


The "Mr. Robot Effect" is still alive and kicking.
If I had a dollar for every time someone who shouldn't be using Kali posts here, I'd have a few dollars. :lol: It's definitely not for people who are "not an experienced user" and certainly won't instantly turn anyone into a 133t h4x0r.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 3088
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: grub rescue, error: disk 'lvmid..' not found,after grub-

Postby sickpig » 2020-05-27 03:20

@OP
mount /boot before mounting /boot/efi if /boot is on a different partition
then from chroot run
Code: Select all
update-initramfs -c
after installing grub

edit
install lvm2 in chroot before installing grub if not already installed
User avatar
sickpig
 
Posts: 378
Joined: 2019-01-23 10:34

Re: grub rescue, error: disk 'lvmid..' not found,after grub-

Postby KaliDevHacker » 2020-05-27 08:39

Thanx sickpig, looks like you are the only serious person in here
[Linux server 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2 (2020-04-29) x86_64 GNU/Linux]


DevPiggy
User avatar
KaliDevHacker
 
Posts: 7
Joined: 2020-05-26 22:01
Location: Norway

Re: grub rescue, error: disk 'lvmid..' not found,after grub-

Postby anticapitalista » 2020-05-27 09:19

Just wondering why didn't you post your query on the Kali forums?
antiX with runit - lean and mean.
https://antixlinux.com
anticapitalista
 
Posts: 381
Joined: 2007-12-14 23:16

Re: grub rescue, error: disk 'lvmid..' not found,after grub-

Postby cuckooflew » 2020-05-27 13:24

KaliDevHacker wrote:Thanx sickpig, looks like you are the only serious person in here

You should have asked at the kali forums, did you not notice : this is ; Debian User Forums Kali linux is NOT Debian
we (most of us)like to keep the forum strictly Debian related, and yes , as you can see we take that seriously, ...so go figure.
Please Read What we expect you have already Done
Google knows a lot,
God, our Father knows all, maybe ask Him ,
…one flew east, one flew west,
One flew over the cuckoo’s nest.

I am not the right colour, so my life does not matter ?
to God it does :)
cuckooflew
 
Posts: 434
Joined: 2018-05-10 19:34
Location: Some where out west

Re: grub rescue, error: disk 'lvmid..' not found,after grub-

Postby cuckooflew » 2020-05-27 13:52

KaliDevHacker >> I am not an experienced user,

So why are you using Kali ? and why a user name that pretends to be Dev and Hacker ?
Please read these: https://www.kali.org/docs/introduction/should-i-use-kali-linux/
Is Kali Linux Right For You?

As the distribution’s developers, you might expect us to recommend that everyone should be using Kali Linux. The fact of the matter is, however, that Kali is a Linux distribution specifically geared towards professional penetration testers and security specialists, and given its unique nature, it is NOT a recommended distribution if you’re unfamiliar with Linux or are looking for a general-purpose Linux desktop distribution for development, web design, gaming, etc.

Even for experienced Linux users, Kali can pose some challenges. Although Kali is an open source project, it’s not a wide-open source project, for reasons of security. The development team is small and trusted, packages in the repositories are signed both by the individual committer and the team, and — importantly — the set of upstream repositories from which updates and new packages are drawn is very small. Adding repositories to your software sources which have not been tested by the Kali Linux development team is a good way to cause problems on your system.

While Kali Linux is architected to be highly customizable, don’t expect to be able to add random unrelated packages and repositories that are “out of band” of the regular Kali software sources and have it Just Work. In particular, there is absolutely no support whatsoever for the apt-add-repository command, LaunchPad, or PPAs. Trying to install Steam on your Kali Linux desktop is an experiment that will not end well. Even getting a package as mainstream as NodeJS onto a Kali Linux installation can take a little extra effort and tinkering.

If you are unfamiliar with Linux generally, if you do not have at least a basic level of competence in administering a system, if you are looking for a Linux distribution to use as a learning tool to get to know your way around Linux, or if you want a distro that you can use as a general purpose desktop installation, Kali Linux is probably not what you are looking for.

In addition, misuse of security and penetration testing tools within a network, particularly without specific authorization, may cause irreparable damage and result in significant consequences, personal and/or legal. “Not understanding what you were doing” is not going to work as an excuse.

However, if you’re a professional penetration tester or are studying penetration testing with a goal of becoming a certified professional, there’s no better toolkit — at any price — than Kali Linux.


And this:
http://www.isc.cnrs.fr/informatique/TheSmartWay.htm
When You Ask
Choose your forum carefully

Be sensitive in choosing where you ask your question. You are likely to be ignored, or written off as a loser, if you:

post your question to a forum where it's off topic
Please Read What we expect you have already Done
Google knows a lot,
God, our Father knows all, maybe ask Him ,
…one flew east, one flew west,
One flew over the cuckoo’s nest.

I am not the right colour, so my life does not matter ?
to God it does :)
cuckooflew
 
Posts: 434
Joined: 2018-05-10 19:34
Location: Some where out west

Re: grub rescue, error: disk 'lvmid..' not found,after grub-

Postby KaliDevHacker » 2020-05-27 15:56

I started using Linux 30 years ago, i have just been away for 15 years. I know Linux, and i have no problem changing to Debian, and i will do that. I can install what package from Kali i want selves into Debian.
[Linux server 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2 (2020-04-29) x86_64 GNU/Linux]


DevPiggy
User avatar
KaliDevHacker
 
Posts: 7
Joined: 2020-05-26 22:01
Location: Norway

Re: grub rescue, error: disk 'lvmid..' not found,after grub-

Postby cuckooflew » 2020-05-27 16:28

Ok, and yes, actually all (or most) of the tools that Kali uses are available for Debian and in the Debian repositoriess,
and for Desktop use , Debian will be better. So any way, welcome back to Linux and welcome to the forum, apology if we seem "snobbish", but honestly we (most of us) really take Debian pretty seriously,..especially about keeping the forum dedicated to Debian. Thanks
Ahh, edit P.S. If you do re-install Debian, be more carefull when the installer asks where you want to install grub.
Please Read What we expect you have already Done
Google knows a lot,
God, our Father knows all, maybe ask Him ,
…one flew east, one flew west,
One flew over the cuckoo’s nest.

I am not the right colour, so my life does not matter ?
to God it does :)
cuckooflew
 
Posts: 434
Joined: 2018-05-10 19:34
Location: Some where out west

Re: grub rescue, error: disk 'lvmid..' not found,after grub-

Postby p.H » 2020-05-28 08:19

KaliDevHacker wrote:12. sudo mkdir /mnt/boot/efi

You should not have to create /boot/efi, it should already exist. Standard Debian installation with encrypted root creates a separate unencrypted /boot partition. It must be mounted before running grub-install, update-grub, update-initramfs or installing/removing/updating a kernel.

KaliDevHacker wrote:14. sudo mount -o remount,rw /dev/sdb1 /mnt/boot/efi

What is the point of this command ? The previous command already mounted the partition read-write.

If Kali was using the EFI partition on the Windows drive which was deleted, you should also update /etc/fstab with the UUID of the new EFI partition.

KaliDevHacker wrote:20. grub-install /dev/sdb

There is no point in specifying a device such as /dev/sdb when installing GRUB for EFI boot. It is ignored.

KaliDevHacker wrote:21. update-grub

That was not needed. /boot/grub/grub.cfg was not deleted and did not need to be updated.

KaliDevHacker wrote:Thanx sickpig, looks like you are the only serious person in here

At least you are wise enough to exclude yourself from the liste of serious people. If you were serious, you would have provided more information about your setup :
- boot scheme (UEFI or BIOS)
- drives
- partitions
- encrypted volumes
- LVM volumes
- /etc/fstab...

sickpig wrote:@OP
Code: Select all
update-initramfs -c
after installing grub
install lvm2 in chroot before installing grub if not already installed

Both useless actions. The initramfs does not need to be updated and lvm2 is already installed.
p.H
 
Posts: 1383
Joined: 2017-09-17 07:12

Re: grub rescue, error: disk 'lvmid..' not found,after grub-

Postby sunrat » 2020-05-28 09:04

KaliDevHacker wrote:I started using Linux 30 years ago, i have just been away for 15 years. I know Linux, and i have no problem changing to Debian, and i will do that. I can install what package from Kali i want selves into Debian.

Congratulations on using it 2 years before Linus Torvalds published the source code for the kernel! :mrgreen:
Yeah we are a bit snobbish about Debian. Those of us who have been on this forum for a while have seen a plethora of help requests which have eventually been a pointless waste of time due to people using Debian-based systems rather than Debian. Many of these distros make modifications which make any help we try to give irrelevant. Kali is the worst as it attracts lots of script kiddies who have no idea what they are doing or why they are doing it, just that somehow they heard real hackers use it.
There are a lot of knowledgeable people here who will be happy to help with Debian questions if you have any. And I would advise to change your user name for people to take you seriously. :wink:
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 3088
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: grub rescue, error: disk 'lvmid..' not found,after grub-

Postby trinidad » 2020-05-28 15:25

just that somehow they heard real hackers use it


Kali is fast becoming something that is at contretemps within itself in design and its reasonable purposes. Seems almost a hobbyist pursuit at times, though it claims to be both convenient and serious; still both claims are false. It is, like anything with a name, responsible for creating its own user base cache often filled with imbeciles, and yet it seems to struggle mightily against such incursions into its ego ridden claim to fame and name. All the more reason for Debian users to be peevish about the spillover into a Debian forum. I tested it once a few years ago in the Debian 8 era. Never since. It seems, though it has good tools available, to be geared to alluring the kind of audience it seems to haughtily reject. Maybe it is an ego exercise for its developers... i/e lure 'em in and then humiliate them. They seem to enjoy working that way with their audience. Yes the Debian forum absolutely should kick Kali users questions to the trash bucket, or start giving destructive answers... a humorous possibility, or send them a mail bot that keeps repeating "I am not Debian"

TC
You can't believe your eyes if your imagination is out of focus.
trinidad
 
Posts: 129
Joined: 2016-08-04 14:58

Next

Return to Offtopic

Who is online

Users browsing this forum: No registered users and 9 guests

fashionable