LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Kernel? grub ? factory default? (https://www.linuxquestions.org/questions/linux-kernel-70/kernel-grub-factory-default-4175732645/)

Rumple 01-10-2024 09:23 PM

Kernel? grub ? factory default?
 
Hi everyone, I went to Mint forum for help but no one has helped me yet and it makes sense as i dont think mint is the problem. So i thought you guys could help. One guy over there thinks its something to do with the uuid

I am still somewhat new to this world and gave up 4 times trying to switch to linux. There is always something... I dont want to learn commands I am not interested in that I want to use the computer thats it. But I also refuse to go back to Microsoft or Cannonical. I dont want to debate this here. Anyway I chose LMDE and gonna stick to it.

With a multiple hard drives system (1 boot 2 storage) I had installed LMDE4 which run fine but then I wiped my storage drive( no dual boot). I dont know if the grub was on it but lmde wouldnt boot anymore, grub problems. So i just tried to reinstall lmde6 which didnt solve anything.

I tried repairboot. After install, when booting, I got stuck on the freaking black screen asking me to login TTY something where even putting the correct user and pass u set up at install wont work. No ctrl+alt+ F#whichever doesnt work. Someone somewhere suggested the environment wasnt installed. Anyway thats still not the problem.

Someone somewhere else suggested to tell grub which drive to load from by using commands that looked like "set boot=sda1 (the boot partition)something and then insmod something then normal" which didnt do anything because IT DIDNT KNOW WHAT NORMAL IS. Please remember I HAVE NOT CLUE what this all means... I just want the computer to run. Please forgive my frustration and exasperation. I went mint because I didnt want to bother with that stuff. Anyway, I took it upon myself to try more cause i dont want to go back to microsoft or canonical. But grub still isnt the problem I think.. see what follows...

Someone somewhere elselse said to go through recovery to go as root to edit a grub file or something like that..which ended with me not being able to do that because "Cannot open access to console, the root account is locked"... I mean... All of this after ten hours for spelunking forums for solutions. I just want to smash the freaking pc at this point. I am sure all of this make sense to some of you but it does not for me.

So it dawn upon me that everything i read online was to try to salvage the information on the drive. I dont care, I already wiped everything. So why not just go to factory setting like when parts were new. Which is when I learned about kernel... they dont reset with cmos. I dont know how kernels works I dont care anymore. Normally I ld be eager to learn about it but I have so much time invested already on something so complex that im just brain dead now.

So what can I do to just get everything to factory so I cant just install LMDE6 and can finally go bang my head on the wall trying to install simpler stuff like non-free driver for my gpu and proton... PLEASE someone tell me the steps to just... get out of this mess once and for all...\

https://termbin.com/219u

syg00 01-10-2024 10:15 PM

You state you have 3 drives, but only one shows in that listing. From the liveUSB let's see this output from terminal.
Code:

efibootmgr -v
lsblk -f


Rumple 01-10-2024 11:34 PM

Quote:

Originally Posted by syg00 (Post 6475964)
You state you have 3 drives, but only one shows in that listing. From the liveUSB let's see this output from terminal.

They re just unplugged now. I was testing a theory. Assume they are their if needed
whats that and what am I to do with it ?
Code:

efibootmgr -v
lsblk -f


teckk 01-12-2024 04:17 PM

Read the installation instructions for the distro that you are wanting to use.
https://www.linuxmint.com/documentation.php
https://linuxmint-installation-guide....io/en/latest/
https://linuxmint-user-guide.readthedocs.io/en/latest/

Wipe a drive.
Put the partitions that you want on it.
Put a filesystem on the partitions. Depending on what the partitions are for.
Install an operating system on the partition/partitions the way you want.
Install a bootloader.

All of that will take a little forethought. If it is a UEFI machine then you'll need a EFI system partition. If it is BIOS/gpt, and you are using grub, then you'll need a small boot partition.

Quote:

I dont want to learn commands I am not interested in that
You can't not learn and learn at the same time.

Read the docs for your distro. That is the best source of info.

https://en.m.wikipedia.org/wiki/BIOS
https://en.m.wikipedia.org/wiki/Uefi

colorpurple21859 01-12-2024 04:47 PM

This could be a problem:
Quote:

Partition:
Message: No partition data found.
Quote:

I had installed LMDE4 which run fine but then I wiped my storage drive( no dual boot).
You may have deleted the system EFI partition that is needed for the computer to boot.

Open a terminal and type the commands mentioned, and post the output of the commands here so we can see disk partitions, and bootloaders registered with the bios/firmware. May have to add sudo to beginning of each command to get any useful output.

Rumple 01-16-2024 05:58 PM

Title to reply
 
Quote:

Originally Posted by teckk (Post 6476304)
Read the installation instructions for the distro that you are wanting to use.
https://www.linuxmint.com/documentation.php
https://linuxmint-installation-guide....io/en/latest/
https://linuxmint-user-guide.readthedocs.io/en/latest/

Wipe a drive.
Put the partitions that you want on it.
Put a filesystem on the partitions. Depending on what the partitions are for.
Install an operating system on the partition/partitions the way you want.
Install a bootloader.

All of that will take a little forethought. If it is a UEFI machine then you'll need a EFI system partition. If it is BIOS/gpt, and you are using grub, then you'll need a small boot partition.

!yes i did that. https://itsfoss.community/t/installing-lmde-6/11256 did the partioning right, the flagging right but the grub on the boot partiotion too like this website says


Read the docs for your distro. That is the best source of info.

! This is not a distro problem. This is a kernel problem. But thanks anyways

See ! for answers

Rumple 01-16-2024 06:15 PM

Quote:

Originally Posted by Rumple (Post 6475971)
They re just unplugged now. I was testing a theory. Assume they are their if needed
whats that and what am I to do with it ?
Code:

efibootmgr -v
lsblk -f


mint@mint:~$ sudo efibootmgr -v
BootCurrent: 000D
Timeout: 3 seconds
BootOrder: 000B,000D,000A,000C,000E
Boot000A* HL-DT-ST DVDRAM GH40F BBS(CDROM,,0x0)AMBO
Boot000B* UEFI OS HD(1,GPT,913bc6d4-9c52-43f3-a9ec-dccfbf5896af,0x800,0xfa000)/File(\EFI\BOOT\BOOTX64.EFI)
Boot000C* WDC WD1002FAEX-00Z3A0 BBS(HD,,0x0)AMBO
Boot000D* UEFI: KingstonDataTraveler 3.0 PciRoot(0x0)/Pci(0x5,0x0)/Pci(0x0,0x0)/USB(2,0)/HD(1,MBR,0x38582a06,0x3f,0x39a2c81)AMBO
Boot000E* KingstonDataTraveler 3.0 BBS(HD,,0x0)AMBO
mint@mint:~$ lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
loop0
squash 4.0 0 100% /usr/lib/live/mount/rootfs/filesystem.squashfs
/run/live/r
ootfs/files
ystem.squas
hfs
sda
├─sda1
│ vfat FAT32 ESP C8C0-3074
├─sda2
│ swap 1 swap b99a93f5-e141-43ee-87cd-dff04b72530c
├─sda3
│ ext4 1.0 b848b32c-34d6-4435-86f2-e907018cdee3
└─sda4
ext4 1.0 home 0ea581ae-918c-4d58-98cd-28d885527d80
sdb
└─sdb1
vfat FAT32 KINGSTON
3ACC-7536 26.2G 9% /usr/lib/live/mount/medium
/run/live/m
edium
sr0
mint@mint:~$

@sig00 @colorpurple21859

thanks

colorpurple21859 01-16-2024 07:18 PM

Post the output of:
Code:

sudo blkid

Rumple 01-16-2024 08:23 PM

Quote:

Originally Posted by colorpurple21859 (Post 6477320)
Post the output of:
Code:

sudo blkid

mint@mint:~$ sudo blkid
/dev/sdb1: LABEL_FATBOOT="KINGSTON" LABEL="KINGSTON" UUID="3ACC-7536" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="38582a06-01"
/dev/loop0: TYPE="squashfs"
/dev/sda4: LABEL="home" UUID="0ea581ae-918c-4d58-98cd-28d885527d80" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="home" PARTUUID="14af2e89-1c68-4e89-9561-f75cc05731ca"
/dev/sda2: LABEL="swap" UUID="b99a93f5-e141-43ee-87cd-dff04b72530c" TYPE="swap" PARTLABEL="swap" PARTUUID="4441960d-4df5-40c5-bb8f-b69d9f49eba7"
/dev/sda3: UUID="b848b32c-34d6-4435-86f2-e907018cdee3" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="system" PARTUUID="b9e65e05-8036-4e36-9c14-626709936f72"
/dev/sda1: LABEL_FATBOOT="ESP" LABEL="ESP" UUID="C8C0-3074" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI" PARTUUID="913bc6d4-9c52-43f3-a9ec-dccfbf5896af"
mint@mint:~$

niceflipper8827 01-20-2024 09:04 PM

Quote:

I just want to smash the freaking pc at this point.
It never did anyone favors to smash things however, I can understand that your extremely frustrated to the point of just throwing your hands up and quitting. This attitude won't help you get any where , I know this from several times over my years of using many different distributions at several points on my journey I too have wanted go give up but I took a step back and this at certain points even gave it anywhere from a few hours to a day or more. I also understand that you need an operational PC so I'm quite prone to recommend that you consider a distribution like either MX Linux or either variant of Linux Mint.

Rumple 01-30-2024 02:09 AM

Quote:

Originally Posted by colorpurple21859 (Post 6477320)
Post the output of:
Code:

sudo blkid

Hey just checking if you forgot about me ?

hazel 01-30-2024 06:00 AM

Quote:

Originally Posted by Rumple (Post 6477327)
mint@mint:~$ sudo blkid
/dev/sdb1: LABEL_FATBOOT="KINGSTON" LABEL="KINGSTON" UUID="3ACC-7536" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="38582a06-01"
/dev/loop0: TYPE="squashfs"

That looks to me like an installation disk of some kind. It has a compressed filesystem (squashfs) on it, which has been separately mounted.
Quote:

/dev/sda4: LABEL="home" UUID="0ea581ae-918c-4d58-98cd-28d885527d80" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="home" PARTUUID="14af2e89-1c68-4e89-9561-f75cc05731ca"
That's your home partition, used for personal data.
Quote:

/dev/sda2: LABEL="swap" UUID="b99a93f5-e141-43ee-87cd-dff04b72530c" TYPE="swap" PARTLABEL="swap" PARTUUID="4441960d-4df5-40c5-bb8f-b69d9f49eba7"
Swap partition
Quote:

/dev/sda3: UUID="b848b32c-34d6-4435-86f2-e907018cdee3" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="system" PARTUUID="b9e65e05-8036-4e36-9c14-626709936f72"
That will be your root partition.
Quote:

/dev/sda1: LABEL_FATBOOT="ESP" LABEL="ESP" UUID="C8C0-3074" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI" PARTUUID="913bc6d4-9c52-43f3-a9ec-dccfbf5896af"
EFI system partition where your boot files are. @ColorPurple thought you might have accidently deleted that one but clearly it's still there. Whether it still contains the right files is another matter.

If I were you I would try to mount it:
Code:

mount /dev/sda1
or if that doesn't work, the full command
Code:

mount -t vfat /dev/sda1 /boot/efi
Then you can go to /boot/efi/EFI and look at the contents. Hopefully you will find a GRUB file there. Look for grub64.efi.

colorpurple21859 01-30-2024 06:27 PM

let me see I have this correct, you reinstalled lmde6 and now it boots to black screen or are you getting a grub-rescue message?


All times are GMT -5. The time now is 01:54 AM.