Grub hell. Can I just delete the EFI partition and reinstall ubuntu?
Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
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.
ok hell I'm seeing it. If I tell fsck to fix things I could lose the entire partition right?
I bet it happened because I resized the drive. I dunno why that's not safe.
What about this- what if I do an install where everything is in the 100 gig parition? So it'll have it's on little /home in there, and the corrupt partition will mount at something else random like /oldhome?
well- or even safer- I could not even tell the installer to give it a mount point; to tell it to just leave it alone. Then after boot I could manually mount it each time I boot?
make a backup of the files that are important to you on the drive, then run the fsck.
Ok maybe I'll order a backup drive; but hypothetically the all-in-one 100 gig plan with it's own /home in there sounds reasonable right? I mean surely it doesn't need to check every partition on the disk just to boot? I can see how it would need to check the ones with automatic mount points in fstab, but if the disk has like some obscure little parition somewhere with a bad fs that's not even in fstab then it wouldn't care right?
just copy the files that are important to you to a usb or somewhere on the root partition temporarily. Run fsck if all goes well your done, if not your files are backed up and you have a little more work to do to get the system booting correctly.
Last edited by colorpurple21859; 02-08-2020 at 08:18 PM.
just copy the files that are important to you to a usb or somewhere on the root partition temporarily.
I don't have enough room man. It's actually complicated- Some of it all is backed to the cloud but figuring out what is and what isn't is going to take like a week or more. Well and/or having to pull it all back down if I need to is going to take so much time and cost so much bandwidth. It's like 1.7 tb's.
So here- given two next moves- which is safer- to let fsck do stuff or to try the reinstall all in one partition so the installer ignores the other ones? Gotta be the latter right?
It has been awhile since I did this, goes something like this You will have to do it from the live iso, mount /dev/sda3 at /mnt edit the /mnt/fstab, mkdir /mnt/home, mkdir /mnt/home/<your home> run the commands to chroot into the system, chown <your user> /home/<your home>
exit and reboot.
might have to recreate the Documents, Downloads, other folders once your booted into your system.
Last edited by colorpurple21859; 02-08-2020 at 09:11 PM.
Haha no that sounds way more shaky than just reinstalling right? I mean I bet the installer puts settings stuff in your home directory on install?
There's nothing on the 100 gig root partition I need to keep (it was empty when I began all this madness), so I'm thinking I'll just nuke it and reinstall from scratch only let it have it's own /home.
Unless you see that as high risk for some kind of disaster?
and/or is there anything I should do before trying (deleting the ubuntu directory in efi as you mentioned yesterday)
and/or is there anything I should do before trying (deleting the ubuntu directory in efi as you mentioned yesterday)
Not sure what you mean by this question. If I'm reading this right the answer is no. The problem all along had nothing to do with grub bootloader, efi/legacy mode, or the efi partition. The problem is your /home partition, which you will have to do something with it eventyually before the fs gets so corrupted you loose your files on it.
Not sure what you mean by this question. If I'm reading this right the answer is no. The problem all along had nothing to do with grub bootloader, efi/legacy mode, or the efi partition. The problem is your /home partition, which you will have to do something with it eventyually before the fs gets so corrupted you loose your files on it.
perfect! that's ironically the exact thing I wanted to hear. ok I'm gonna eat and then bite the bullet and to the 100g plan.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.