Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Only msdos1 matters, since msdos5 is a swap partition. Did you forget to insmod linux? That's how EXT4 gets to be known to grub. It might be all you need is the following:
Code:
insmod linux
root=hd0,msdos1
linux /vmlinuz root=/dev/sda1 noresume
initrd /initrd.img
boot
I didn't need insmod normal or normal.
Hi, do you mean to put those lines in Grub Rescue? Because when I did, all I kept getting was "Unknown Filesystem", "Unknown Command 'linux'", "Unknown Command 'initrd'", "Unknown Command 'boot'".
I would guess that you've got about 2 years worth of kernels in sda1.
Just the latest two or three is quite sufficient.
However, sdb looks like it has partition troubles - so if you have a decent backup of your data files, then it would be quicker to do a reinstall.
Quote:
=================== sda1: Location of files loaded by Grub: ====================
I would guess that you've got about 2 years worth of kernels in sda1.
Just the latest two or three is quite sufficient.
However, sdb looks like it has partition troubles - so if you have a decent backup of your data files, then it would be quicker to do a reinstall.
If I don't have a decent backup, would you know what would be the easiest way, considering that I can't get in to get the files? Thanks.
Using a Mint install DVD as a "live" disk (no install), you can boot from the DVD and attempt to mount relevant HD partitions.
If the mount succeeds and the HD is not dead, then it is possible to copy the disk files to an external device.
Note:- if the HD is corrupted or even no longer spinning up, there are still ways to try to extract some of the information.
What worked for me may not work for you due to the problems leading up to your need to ask for help. You may need to preface what I wrote in comment 14 with:
Code:
set prefix=(hd0,msdos1)/boot/grub
Try running set before anything else to see if what grub already knows makes sense. If you don't understand any of what you see following the set command or in the URL this instruction comes from (in comment 12), then this method of attempting recovery is probably not for you.
What worked for me may not work for you due to the problems leading up to your need to ask for help. You may need to preface what I wrote in comment 14 with:
Code:
set prefix=(hd0,msdos1)/boot/grub
Try running set before anything else to see if what grub already knows makes sense. If you don't understand any of what you see following the set command or in the URL this instruction comes from (in comment 12), then this method of attempting recovery is probably not for you.
Grub is dead you won't be able to recover from the grub rescue prompt. From a live usb, run fschk and delete and/or move files off the partition. If you can't salvage from a live usb, then a reinstall. There are a few linux rescue iso's floating around that would be useful in this
Googling how to rescue a linux system give hits on how to fix
Last edited by colorpurple21859; 10-31-2019 at 06:59 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.