You are not logged in.

#1 2015-10-31 23:08:46

Utini
Member
Registered: 2015-09-28
Posts: 452
Website

After arch re-install, windows from grub gone ?

Hey there, I had a dual boot setup with windows 8.1 + arch using grub as bootloader. Everything was fine until I re-installed arch (including grub), since then the windows entry is missing from grub ?

sneida@_____:~$ lsblk -f
NAME   FSTYPE LABEL            UUID                                 MOUNTPOINT
sda                                                                 
|-sda1 vfat   ESP              FE43-7CF9                            /boot/efi
|-sda2 vfat   DIAGS            20B5-7F47                            
|-sda3                                                              
|-sda4 ntfs   WINRETOOLS       9028B6FE28B6E280                     
|-sda5 ntfs                    01D113ACC073C410                     
|-sda6 ntfs   Share            4AFDD7CE1C9DC6DA                     
`-sda7 ext4   Arch Linux       e29d170b-22d7-48e6-bf1b-63c34ebd8087 /
sneida@_____:~$ sudo blkid
[sudo] password for sneida: 
/dev/sda1: LABEL="ESP" UUID="FE43-7CF9" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="6e60a1af-5a80-4f10-a032-cfaf41704e42"
/dev/sda2: LABEL="DIAGS" UUID="20B5-7F47" TYPE="vfat" PARTLABEL="Basic data partition" PARTUUID="6989b2dc-b211-4d97-b646-ef35bf0748f3"
/dev/sda3: PARTLABEL="Microsoft reserved partition" PARTUUID="26f12bcb-454d-4225-8a51-bd8861a34a9e"
/dev/sda4: LABEL="WINRETOOLS" UUID="9028B6FE28B6E280" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="18d92e2e-b8c5-4474-a8ff-423047bcd84d"
/dev/sda5: UUID="01D113ACC073C410" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="bcb694dd-22b0-4a54-8814-c3e428b828d9"
/dev/sda6: LABEL="Share" UUID="4AFDD7CE1C9DC6DA" TYPE="ntfs" PARTLABEL="Share" PARTUUID="d92e8668-1be0-4a7d-a9a1-e662c58c147d"
/dev/sda7: LABEL="Arch Linux" UUID="e29d170b-22d7-48e6-bf1b-63c34ebd8087" TYPE="ext4" PARTLABEL="Linux filesystem" PARTUUID="eb69bb8e-d8aa-4e67-9d8c-3c0b3df81ebf"
sneida@_____:~$ find /boot/ -type d -print
/boot/
/boot/efi
/boot/efi/en-us
/boot/efi/EFI
/boot/efi/EFI/Microsoft
/boot/efi/EFI/Microsoft/Boot
/boot/efi/EFI/Microsoft/Boot/bg-BG
/boot/efi/EFI/Microsoft/Boot/cs-CZ
/boot/efi/EFI/Microsoft/Boot/da-DK
/boot/efi/EFI/Microsoft/Boot/de-DE
/boot/efi/EFI/Microsoft/Boot/el-GR
/boot/efi/EFI/Microsoft/Boot/en-GB
/boot/efi/EFI/Microsoft/Boot/en-US
/boot/efi/EFI/Microsoft/Boot/es-ES
/boot/efi/EFI/Microsoft/Boot/et-EE
/boot/efi/EFI/Microsoft/Boot/fi-FI
/boot/efi/EFI/Microsoft/Boot/fr-FR
/boot/efi/EFI/Microsoft/Boot/hr-HR
/boot/efi/EFI/Microsoft/Boot/hu-HU
/boot/efi/EFI/Microsoft/Boot/it-IT
/boot/efi/EFI/Microsoft/Boot/ja-JP
/boot/efi/EFI/Microsoft/Boot/ko-KR
/boot/efi/EFI/Microsoft/Boot/lt-LT
/boot/efi/EFI/Microsoft/Boot/lv-LV
/boot/efi/EFI/Microsoft/Boot/nb-NO
/boot/efi/EFI/Microsoft/Boot/nl-NL
/boot/efi/EFI/Microsoft/Boot/pl-PL
/boot/efi/EFI/Microsoft/Boot/pt-BR
/boot/efi/EFI/Microsoft/Boot/pt-PT
/boot/efi/EFI/Microsoft/Boot/qps-ploc
/boot/efi/EFI/Microsoft/Boot/ro-RO
/boot/efi/EFI/Microsoft/Boot/ru-RU
/boot/efi/EFI/Microsoft/Boot/sk-SK
/boot/efi/EFI/Microsoft/Boot/sl-SI
/boot/efi/EFI/Microsoft/Boot/sr-Latn-CS
/boot/efi/EFI/Microsoft/Boot/sr-Latn-RS
/boot/efi/EFI/Microsoft/Boot/sv-SE
/boot/efi/EFI/Microsoft/Boot/tr-TR
/boot/efi/EFI/Microsoft/Boot/uk-UA
/boot/efi/EFI/Microsoft/Boot/zh-CN
/boot/efi/EFI/Microsoft/Boot/zh-HK
/boot/efi/EFI/Microsoft/Boot/zh-TW
/boot/efi/EFI/Microsoft/Boot/Fonts
/boot/efi/EFI/Microsoft/Boot/Resources
/boot/efi/EFI/Microsoft/Boot/Resources/de-DE
/boot/efi/EFI/Microsoft/Boot/Resources/en-US
/boot/efi/EFI/Boot
/boot/efi/EFI/arch
/boot/grub
/boot/grub/fonts
/boot/grub/locale
/boot/grub/themes
/boot/grub/themes/starfield
/boot/grub/x86_64-efi

I basically did everything as the wiki says. Those are the commands I used:

#Mount EFI Partition
mkdir -p /mnt/boot/efi
gdisk -l /dev/sda # output -> #1 = EFI boot partition
mount /dev/sda1 /mnt/boot/efi

#generate fstab
genfstab -p /mnt >> /mnt/etc/fstab
cat /mnt/etc/fstab

.
.
.

#generate RAM Disk
mkinitcpio -p linux

#install bootloader
pacman -Syu grub efibootmgr

#generate grub config
grub-mkconfig -o /boot/grub/grub.cfg

#install grub altough it is already installed?
grub-install /dev/sda
ls -l /boot/efi/EFI/arch # -> output = grub ?

Any ideas what went wrong and how to fix it? yikes

Thanks !

Last edited by Utini (2015-10-31 23:09:12)


Setup 1: Thinkpad T14s G3, 14" FHD - R7 6850U - 32GB RAM - 2TB Solidigm P44 Pro NVME
Setup 2: Thinkpad X1E G1, 15.6" FHD - i7-8850H - 32GB RAM - NVIDIA GTX 1050Ti - 2x 1TB Samsung 970 Pro NVME
Accessories: Filco Majestouch TKL MX-Brown Mini Otaku, Benq XL2420T (144Hz), Lo(w)gitech G400, Puretrak Talent, Sennheiser HD800S + Meier Daccord FF + Meier Classic FF

Offline

#2 2015-10-31 23:14:58

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: After arch re-install, windows from grub gone ?

Not an Installation issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2015-11-01 01:19:19

Rethil
Member
Registered: 2014-08-21
Posts: 83

Re: After arch re-install, windows from grub gone ?

Install os-prober, then recreate your grub.cfg.

Offline

#4 2015-11-01 08:40:26

Utini
Member
Registered: 2015-09-28
Posts: 452
Website

Re: After arch re-install, windows from grub gone ?

Rethil wrote:

Install os-prober, then recreate your grub.cfg.

sneida@_____:~$ grubupdate     
Generating grub configuration file ...
Found Intel Microcode image
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
Found fallback initramfs image: /boot/initramfs-linux-fallback.img
Found Windows Boot Manager on /dev/sda1@/EFI/Microsoft/Boot/bootmgfw.efi
done

Looks like os-prober did the job, I can't remember if I installed it for my first Arch setup yikes Thanks !


Setup 1: Thinkpad T14s G3, 14" FHD - R7 6850U - 32GB RAM - 2TB Solidigm P44 Pro NVME
Setup 2: Thinkpad X1E G1, 15.6" FHD - i7-8850H - 32GB RAM - NVIDIA GTX 1050Ti - 2x 1TB Samsung 970 Pro NVME
Accessories: Filco Majestouch TKL MX-Brown Mini Otaku, Benq XL2420T (144Hz), Lo(w)gitech G400, Puretrak Talent, Sennheiser HD800S + Meier Daccord FF + Meier Classic FF

Offline

Board footer

Powered by FluxBB