Going through Using livecd v17.0.1 (and above) as grub to boot OS with broken bootloader. No output for
grub> search.file /etc/manjaro-release root
There was some error about something like not being able to write to 0xc0 after
grub> configfile /boot/grub/grub.cfg
but it booted.
Got a bunch of GUID partition table header signature is wrong errors for sudo grub-install /dev/sda
:
There are multiple manjaros:
On restarting I now see two manjaros in the UEFI BIOS
Ran
grub> linux /boot/vmlinuz-4.19-x86_64 root=UUID=$abc rw grub> initrd /boot/initramfs-4.19-x86_64.img grub> boot
I think I need to fix up the partition table:
then
I still got the same error as in the title, so I started again:
Steps 7 to 9 are fine.
I think I need to fix the partition table:
Will come back to this tomorrow, might just try installing afresh, moving the data partition or the data to a separate hard drive and installing over all existing partitions.
Some updates:
Output booted into OS and transferred to phone via mtp:
[jr@dl ~]$ sudo rm /boot/grub/grubenv
[sudo] password for jr:
[jr@dl ~]$ sudo grub-editenv /boot/grub/grubenv
Unknown command `/boot/grub/grubenv'.
Usage: grub-editenv [OPTION...] FILENAME COMMAND
Try 'grub-editenv --help' or 'grub-editenv --usage' for more information.
[jr@dl ~]$ sudo grub-editenv /boot/grub/grubenv create
[jr@dl ~]$ sudo grub-editenv - set boot_success=0
[jr@dl ~]$ sudo grub-install /dev/sda
Installing for x86_64-efi platform.
GUID Partition Table Header signature is wrong: 139e8811bbe5652 != 5452415020494645
GUID Partition Table Header signature is wrong: 0 != 5452415020494645
GUID Partition Table Header signature is wrong: 139e8811bbe5652 != 5452415020494645
GUID Partition Table Header signature is wrong: 0 != 5452415020494645
GUID Partition Table Header signature is wrong: 139e8811bbe5652 != 5452415020494645
GUID Partition Table Header signature is wrong: 0 != 5452415020494645
Installation finished. No error reported.
[jr@dl ~]$ sudo update-grub
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-4.19-x86_64
Found initrd image: /boot/intel-ucode.img /boot/initramfs-4.19-x86_64.img
Found initrd fallback image: /boot/initramfs-4.19-x86_64-fallback.img
Found Ubuntu 18.04.2 LTS (18.04) on /dev/sda6
Found memtest86+ image: /boot/memtest86+/memtest.bin
done
[jr@dl ~]$ inxi -Fxz
System: Host: dl Kernel: 4.19.28-1-MANJARO x86_64 bits: 64 compiler: gcc v: 8.2.1 Desktop: KDE Plasma 5.15.2
Distro: Manjaro Linux
Machine: Type: Laptop System: Dell product: Latitude E6410 v: 0001 serial: <filter>
Mobo: Dell model: 0HNGW4 serial: <filter> UEFI: Dell v: A16 date: 12/05/2013
Battery: ID-1: BAT0 charge: 34.4 Wh condition: 34.4/48.8 Wh (70%) model: Samsung SDI DELL PT43699 status: Full
CPU: Topology: Dual Core model: Intel Core i5 M 560 bits: 64 type: MT MCP arch: Nehalem rev: 5 L2 cache: 3072 KiB
flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 21290
Speed: 1384 MHz min/max: 1199/2667 MHz Core speeds (MHz): 1: 1463 2: 1463 3: 1463 4: 1463
Graphics: Device-1: Intel Core Processor Integrated Graphics vendor: Dell Latitude E6410 driver: i915 v: kernel
bus ID: 00:02.0
Display: x11 server: X.Org 1.20.4 driver: intel unloaded: modesetting resolution: 1440x900~60Hz, 1920x1080~60Hz
OpenGL: renderer: Mesa DRI Intel Ironlake Mobile v: 2.1 Mesa 18.3.4 direct render: Yes
Audio: Device-1: Intel 5 Series/3400 Series High Definition Audio vendor: Dell Latitude E6410 driver: snd_hda_intel
v: kernel bus ID: 00:1b.0
Sound Server: ALSA v: k4.19.28-1-MANJARO
Network: Device-1: Intel 82577LM Gigabit Network vendor: Dell Latitude E6410 driver: e1000e v: 3.2.6-k port: 7040
bus ID: 00:19.0
IF: eno1 state: down mac: <filter>
Device-2: Broadcom and subsidiaries BCM43224 802.11a/b/g/n vendor: Dell Wireless 1520 Half-size Mini PCIe Card
driver: wl v: kernel port: 7000 bus ID: 02:00.0
IF: wlp2s0 state: dormant mac: <filter>
Drives: Local Storage: total: 298.09 GiB used: 5.91 GiB (2.0%)
ID-1: /dev/sda vendor: Seagate model: ST9320423AS size: 298.09 GiB
Partition: ID-1: / size: 133.11 GiB used: 5.90 GiB (4.4%) fs: ext4 dev: /dev/sda1
ID-2: swap-1 size: 8.19 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda2
Sensors: System Temperatures: cpu: 52.0 C mobo: N/A sodimm: 46.0 C
Fan Speeds (RPM): cpu: 3265
Info: Processes: 186 Uptime: 3m Memory: 3.72 GiB used: 462.7 MiB (12.2%) Init: systemd Compilers: gcc: 8.2.1 Shell: bash
v: 5.0.0 inxi: 3.0.32
[jr@dl ~]$ efi bootmgr -v
bash: efi: command not found
[jr@dl ~]$ efibootmgr -v
BootCurrent: 0007
Timeout: 2 seconds
BootOrder: 0005,0006,0001,0002,0000,0003,0004,0007
Boot0000 Diskette Drive BBS(Floppy,,0x0)
Boot0001* Internal HDD BBS(HD,,0x0)P0: ST9320423AS .
Boot0002* USB Storage Device BBS(USB,,0x0)
Boot0003* CD/DVD/CD-RW Drive BBS(CDROM,,0x0)P1: TSSTcorp DVD+/-RW TS-U633J.
Boot0004 Onboard NIC BBS(Network,,0x0)IBA GE Slot 00C8 v1381.
Boot0005* manjaro HD(5,MBR,0x1d12e7a3,0x0,0x0)/File(\EFI\manjaro\grubx64.efi)
Boot0006* ubuntu HD(5,MBR,0x1d12e7a3,0x0,0x0)/File(\EFI\ubuntu\shimx64.efi)
Boot0007 UEFI: TSSTcorp DVD+/-RW TS-U633J PciRoot(0x0)/Pci(0x1f,0x2)/Sata(1,65535,0)/CDROM(1,0xf9e28,0x2000)
[jr@dl ~]$ sudo parted -l
Model: ATA ST9320423AS (scsi)
Disk /dev/sda: 320GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 146GB 146GB primary ext4
3 146GB 272GB 125GB primary ext4
4 272GB 311GB 39.7GB extended
5 272GB 272GB 538MB logical fat32 boot, esp
6 272GB 311GB 39.1GB logical ext4
2 311GB 320GB 8790MB primary linux-swap(v1)
Warning: Unable to open /dev/sr0 read-write (Read-only file system). /dev/sr0
has been opened read-only.
Error: Can't have a partition outside the disk!
Ignore/Cancel? Ignore
Model: TSSTcorp DVD+-RW TS-U633J (scsi)
Disk /dev/sr0: 2100MB
Sector size (logical/physical): 2048B/2048B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
2 8385MB 8402MB 16.8MB primary esp
[jr@dl ~]$ sudo blkid
/dev/sda1: UUID="f551c71f-17a6-45c1-bf28-c0bd234b73c6" TYPE="ext4" PARTUUID="1d12e7a3-01"
/dev/sda2: UUID="f9fc9791-d4be-45b5-8434-f3718b3652fd" TYPE="swap" PARTUUID="1d12e7a3-02"
/dev/sda3: UUID="89ae1041-c29a-4a18-81ff-e3e757b20de0" TYPE="ext4" PARTUUID="1d12e7a3-03"
/dev/sda5: UUID="1E01-8DB7" TYPE="vfat" PARTUUID="1d12e7a3-05"
/dev/sda6: UUID="32f7f667-8a78-4dd2-ab7c-3badcc069612" TYPE="ext4" PARTUUID="1d12e7a3-06"
/dev/sr0: UUID="2019-03-12-09-50-33-00" LABEL="M1804" TYPE="iso9660" PTTYPE="dos"
[jr@dl ~]$ findmnt -s
TARGET SOURCE FSTYPE OPTIONS
/ UUID=f551c71f-17a6-45c1-bf28-c0bd234b73c6 ext4 defaults,noatime
/boot/efi UUID=1E01-8DB7 vfat defaults,noatime
swap UUID=f9fc9791-d4be-45b5-8434-f3718b3652fd swap defaults,noatime
[jr@dl ~]$ findmt /boot/efi
bash: findmt: command not found
[jr@dl ~]$ findmnt /boot/efi
TARGET SOURCE FSTYPE OPTIONS
/boot/efi /dev/sda5 vfat rw,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro
[jr@dl ~]$
Again:
Will come back to this tomorrow, might just try installing afresh, moving the data partition or the data to a separate hard drive and installing over all existing partitions.