Hi there,
I was unfortunate that during a system update I disconnected the power cable, and my machine stopped booting. I tried to fix it using the live usb, but i made it worst, now I don’t even have a initrmfs.img and cannot boot at it. I still can access using the live usb.
I hope someone can help me before I take the hard decision to a do a fresh install.
FLVAL
December 4, 2019, 11:47am
#2
Hi @alfa33333 ,
generally when you disconnect the power cable like this, you need to check your bios that certainly changed to default mode. Check this first, that everything is well setup inside your bios.
Do you use the UEFI usb live or Legacy mode ?
If UEFI, check your bios to remove the secure boot, and see if it boots on your UEFI usb live.
I use legacy mode. It is an old machine. The usb live boots fine. I tried to repa it usen the arch-chrot and building, but i made it worse and now the files in my boot folder are missing.
@alfa33333
1.What machine is it?
2.which boot do you use grub, syslinux, …?
3.You had many partitions, only one in root, tell us what you remember?
FLVAL
December 4, 2019, 6:06pm
#5
For help, give us the return from :
sudo fdisk -l
At first, try to follow the links from @Resiliencia he gave you the solution.
Hi,
I will try to follow the instructions, this is the output of fdisk -l
Disk /dev/sda: 298.9 GiB, 320072933376 bytes, 625142448 sectors
Disk model: WDC WD3200BEKT-7
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x585c2d9b
Device Boot Start End Sectors Size Id Type
/dev/sda1 63 80324 80262 39.2M de Dell Utility
/dev/sda2 * 81920 38293503 38211584 18.2G 7 HPFS/NTFS/exFAT
/dev/sda3 38293504 625139711 586846208 279.9G 83 Linux
Disk /dev/sdb: 14.93 GiB, 16005464064 bytes, 31260672 sectors
Disk model: Cruzer Glide
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x05be8f8f
Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 2048 31260671 31258624 14.9G c W95 FAT32 (LBA)
Disk /dev/loop0: 1.2 GiB, 1282580480 bytes, 2505040 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/sdc: 931.49 GiB, 1000170586112 bytes, 1953458176 sectors
Disk model: My Passport 0830
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x842cd40b
Device Boot Start End Sectors Size Id Type
/dev/sdc1 2048 1953458175 1953456128 931.5G 7 HPFS/NTFS/exFAT
But also, in the /boot it is almost empty:
[root@archiso /]# cd boot
[root@archiso boot]# ls
grub intel-ucode.img vmlinuz-linux
manuel
December 4, 2019, 8:47pm
#7
First make a backup if you have some important stuff there.
Then, under arch-chroot, do the following:
sudo pacman -S linux
sudo pacman -Syyu
sudo grub-install /dev/sda
sudo grub-mkconfig -o /boot/grub/grub.cfg
and reboot as @Resiliencia said below!
1 Like
I will back up everything, and give it a last try.
Do I reboot normally from the livecd? or do I need to do something special about it?
If it does not work, I will just do a fresh reinstall. The pain of configuring everything back again.
manuel
December 4, 2019, 9:06pm
#10
Yes, normal boot with livecd.
Then prepare for chroot, something like
sudo su
mount /dev/sda3 /mnt
arch-chroot /mnt
and then the commands in the previous post.
Thank you for the try.
I did everything mentioned, but it simply throw me to the grub shell, and could find any file nor boot. So I went for a fresh install.