Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

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

Off-Topic discussions about science, technology, and non Debian specific topics.
Message
Author
User avatar
KaliDevHacker
Posts: 7
Joined: 2020-05-26 22:01
Location: Norway

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

#1 Post by KaliDevHacker »

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

CwF
Global Moderator
Global Moderator
Posts: 2680
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 196 times

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

#2 Post by CwF »

Who makes up these post?

User avatar
sunrat
Administrator
Administrator
Posts: 6467
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 473 times

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

#3 Post by sunrat »

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!

cuckooflew
Posts: 677
Joined: 2018-05-10 19:34
Location: Some where out west
Been thanked: 1 time

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

#4 Post by cuckooflew »

"KaliDevHacker", where do they get the user names ? :lol:
Please Read What we expect you have already Done
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!

User avatar
sunrat
Administrator
Administrator
Posts: 6467
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 473 times

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

#5 Post by sunrat »

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
sickpig
Posts: 589
Joined: 2019-01-23 10:34

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

#6 Post by sickpig »

@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
KaliDevHacker
Posts: 7
Joined: 2020-05-26 22:01
Location: Norway

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

#7 Post by KaliDevHacker »

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

anticapitalista
Posts: 429
Joined: 2007-12-14 23:16
Has thanked: 12 times
Been thanked: 13 times

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

#8 Post by anticapitalista »

Just wondering why didn't you post your query on the Kali forums?
antiX with runit - lean and mean.
https://antixlinux.com

cuckooflew
Posts: 677
Joined: 2018-05-10 19:34
Location: Some where out west
Been thanked: 1 time

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

#9 Post by cuckooflew »

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
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!

cuckooflew
Posts: 677
Joined: 2018-05-10 19:34
Location: Some where out west
Been thanked: 1 time

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

#10 Post by cuckooflew »

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/ ... ali-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
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!

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

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

#11 Post by KaliDevHacker »

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

cuckooflew
Posts: 677
Joined: 2018-05-10 19:34
Location: Some where out west
Been thanked: 1 time

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

#12 Post by cuckooflew »

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
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

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

#13 Post by p.H »

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.

User avatar
sunrat
Administrator
Administrator
Posts: 6467
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 473 times

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

#14 Post by sunrat »

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!

trinidad
Posts: 297
Joined: 2016-08-04 14:58
Been thanked: 15 times

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

#15 Post by trinidad »

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.

cuckooflew
Posts: 677
Joined: 2018-05-10 19:34
Location: Some where out west
Been thanked: 1 time

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

#16 Post by cuckooflew »

Congratulations on using it 2 years before Linus Torvalds published the source code for the kernel!
:D Good catch, I missed that,...but based on the wiki, and my calculator, it is only 1 year, so pretty close,..
Linux (/ˈlɪnəks/ (About this soundlisten) LIN-əks)[9][10] is a family of open source Unix-like operating systems based on the Linux kernel,[11] an operating system kernel first released on September 17, 1991, by Linus Torvalds.[12][13][14] Linux is typically packaged in a Linux distribution.

Code: Select all

$ bc 
2020-1991
29
Please Read What we expect you have already Done
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!

User avatar
RU55EL
Posts: 546
Joined: 2014-04-07 03:42
Location: /home/russel

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

#17 Post by RU55EL »

Kali is (I believe) a tool for system administrators and others responsible for the care and security of computers, usually servers. It's ironic, if you have to ask how to fix Kali, you are not one of the people it was designed for. In my exploration of Kali, I have come to the conclusion that I am nowhere near qualified to make use of it.

Kali is defiantly, a very poor choice as an everyday desktop system. That is not what it was designed for. Debian is a much better choice.

[edit]
I will also emphasize that Kali questions should be directed to the Kali Linux forum.
[/edit]

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

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

#18 Post by KaliDevHacker »

You have absolutely right. In 1989-1992 i went computer engineer school in Bergen. It was Unix, not Linux.
I can see i have done a lot of failure here. Wrong distro, wrong forum, have to change my username or you all are going to
laugh at me for the rest of my life.
I am so sorry for doing all this mistakes. A forum moderator can delete my user, and you will never see me again.
I bet you were all expert users when you started the Linux, and you probably never did anything wrong.
Thank you very much for everything and goodbye
[Linux server 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2 (2020-04-29) x86_64 GNU/Linux]


DevPiggy

cuckooflew
Posts: 677
Joined: 2018-05-10 19:34
Location: Some where out west
Been thanked: 1 time

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

#19 Post by cuckooflew »

Oh no , I feel so bad, almost makes me want to cry, but hey, you know, and we know, we all started out not knowing anything, made and still make mistake, some learned and still learn from their mistakes, and continue to make mistakes,learn and grow,...instead of just giving up.
The username , well I am sure we would get over that, and a little humour is good for everyone, but you could ask a admin to change the username, or you also could start a new account, and use a new username, or just keep the one you have...
cuckooflew wrote: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.
============
KaliDevHacker > Thank you very much for everything and goodbye
You are welcome, and all ways will be if and when you return, but any way, for now good bye, and don't give up, next time probably will be better.
Oh, and P.S,
A forum moderator can delete my user,
No, sorry about this, the moderators and admins do not delete accounts, just like that, how ever you can read this :
Account Deletion the theread explains how you can disable your account yourself, if you really want to. But think seriously on that, once disabled it can not be re-enabled,....and I seriously doubt a admin would do it for you.
Please Read What we expect you have already Done
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!

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

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

#20 Post by KaliDevHacker »

For me its all or nothing. I am a stubborn person, i will never give up, not Debian, and not my username. If you are gonna **** me because of my username, i would rather go for Arch linux if this is the only forum there is on Debian, or show you all that you are wrong for thinking i am stupid or a wannabe hacker that never will be anything more than a script kiddie.
I have allways been the comedian, or the funny guy because i like being that. I never said i was a hacker, i dont wanna be a hacker, and in the situations were people tell me how to act, i just do the opposite to **** them off. I like Debian, and i am serious about it, not because i work with it, just because i like it and i wanna be good in everything i do, or else its no point in doing it. You probably think i am 12 years old for picking a username like this, but i hope you one day will see past that and see me for my who i am, and not for a dumbass picking the wrong username. I was also trying to post this post in Kali Forum a week ago, it looks like they are not serious people at all. It never got on the forum, and i did not get any answer for why, so i ditch those people, and when i think about it, why use Kali, its probably just a couple of tools i am going to use from there anyway.

1) If you are willing to point me in the right direction for which debian distro i am gonna pick?
Please dont say Ubuntu, i dont like doing things the easy way, i will do it the hard way, because i learn more that way, better to force myselves using the terminal. I am learning python programming for the moment, and i wanna learn NASM programming. I was programming in Basic, Pascal, C, C++ and database back in the days.
2) What books will you recommend be buying?
I am currently reading "Kali Linux, Revealed", "Gray hat Hacking", and "Unix and Linux system administration Handbook"
[Linux server 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2 (2020-04-29) x86_64 GNU/Linux]


DevPiggy

Locked