[SOLVED] grub bootloader and blkid partition woes

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
wmeler
Level 3
Level 3
Posts: 108
Joined: Thu Jul 19, 2012 7:46 pm
Contact:

[SOLVED] grub bootloader and blkid partition woes

Post by wmeler »

SOLUTION:
1) My /etc/fstab file was pointing to a bad partition (sda6).
2) I had to run "sudo blkid" to get the right UUID, and then get that back into /etc/fstab --or in this case, /media/mnt/bb9*e/etc/fstab (where /mnt/bb9*e was where my root partition was mounted by opening Disks and then hitting the Play symbol to auto-mount it).
3) I then was able to go into grub after a reboot. I went into the Linux Mint (or Ubuntu) Advanced Options option. (The second one.)
4) From there, I re-built grub just in case and did all the other utility'ish things I could manage.
5) Rebooted and everything came up beautifully. Solved.
6) Also, the following may help. It was related for me:
viewtopic.php?f=46&t=386558&p=2265454#p2265454


Booted into a Live USB of Linux Mint. The kind you install from.
2) Moved all my files on sda6's partition elsewhere temporarily.
3) Delete sda6 partition (to make space to expand/grow sda5).
4) Used gparted to expand/grow sda5. This succeded.
5) I created a new sda6 in the space that remained from where sda6 was before. Presumably further into the disk since sda5 took some of it's space, I'm assuming.
6) Moved files back to sda6. Nothing important to booting. (Not even sure why I'm mentioning this step. Anyhoo.)
7)Shutdown and restarted the laptop without Live USB. Did not boot properly. I realize I should have done *something* before this step. But it's been years since I've messed with grub and fstab.


Update: Here's what I see from within Live USB (mounted my sda6 root partition to /media/mint/bb9*e):

mint@mint:/media/mint/bb9e4ab8-b91b-4bd9-8198-6015ab08c02e/etc$ cat fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda5 during installation
UUID=bb9e4ab8-b91b-4bd9-8198-6015ab08c02e / ext4 errors=remount-ro 0 1
# /data was on /dev/sda6 during installation
UUID=46C2B5C12A5B6606 /data ntfs defaults,umask=007,gid=46 0 0
# /windows was on /dev/sda2 during installation
UUID=B0FC6032FC5FF0D8 /windows ntfs defaults,umask=007,gid=46 0 0
/swapfile none swap sw 0 0
mint@mint:/media/mint/bb9e4ab8-b91b-4bd9-8198-6015ab08c02e/etc$ sudo blkid
/dev/sda1: LABEL="SYSTEM" BLOCK_SIZE="512" UUID="7CB2E8C8B2E887CA" TYPE="ntfs" PARTUUID="d4f04c7f-01"
/dev/sda2: LABEL="Windows" BLOCK_SIZE="512" UUID="B0FC6032FC5FF0D8" TYPE="ntfs" PARTUUID="d4f04c7f-02"
/dev/sda3: LABEL="HP_RECOVERY" BLOCK_SIZE="512" UUID="A6CE00F0CE00BA97" TYPE="ntfs" PARTUUID="d4f04c7f-03"
/dev/sda5: UUID="bb9e4ab8-b91b-4bd9-8198-6015ab08c02e" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="d4f04c7f-05"
/dev/sda6: LABEL="DATA" UUID="815d2238-42e6-4ef0-89e6-e8a4eff82231" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="d4f04c7f-06"
/dev/sdb1: LABEL="LINUX MINT" UUID="A0DE-C2F0" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="001a5715-01"
/dev/loop0: TYPE="squashfs"
mint@mint:/media/mint/bb9e4ab8-b91b-4bd9-8198-6015ab08c02e/etc$

UPDATE 2:
a) I see that for sda6, my "data" partition...the UUID in /etc/fstab does not match what "sudo blkid" showed it should be.
b) Also, /etc/fstab is expecting it should be ntfs, not ext4 (which it is).

What now, please?

Thanks in advance.
Last edited by LockBot on Sat Jun 03, 2023 10:00 pm, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
My posts:
search.php?search_id=egosearch

Linux Mint 21 (Vanessa) - Cinnamon
Locked

Return to “Installation & Boot”