How to repair Windows installation

Hi, I had installed Manjaro last week, but the autoinstaller maked only one partition without swap. First time, grub showed at the list of options both installed OS, but if I selected “windows” it doesn’t start. (I think because the partition table was changed to GPT).
Ok I think isn’t the first problem I had here (I need the swap, obviously), so with live-usb I’ll divide that installation in sub-partition, that you can see here:

sudo parted -l
Modello: ATA Hitachi HTS72505 (scsi)
Disco /dev/sda: 500GB
Dimensione del settore (logica/fisica): 512B/512B
Tabella delle partizioni: gpt
Flag del disco:

Numero Inizio Fine Dimensione File system Nome Flag
1 1049kB 106MB 105MB fat32 EFI system partition
2 577MB 268GB 267GB ntfs Microsoft basic data
3 268GB 268GB 548MB ntfs Windows RE
4 268GB 269GB 105MB ext4 avvio, esp
5 269GB 290GB 21,5GB ext4
6 290GB 303GB 12,9GB ext4
7 303GB 492GB 189GB ext4
8 492GB 500GB 8590MB linux-swap(v1) swap

I search the UUID for change my fstab:

sudo lsblk -fs
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINT
sda1 vfat FAT32 SISTEMA 24C1-20D7
└─sda
sda2 ntfs 3A44E68E44E64C67
└─sda
sda3 ntfs EE7EAA517EAA127F
└─sda
sda4 ext4 1.0 63910b74-3aaf-4b45-bc7d-4eb9b38917bf 23,6M 67% /boot
└─sda
sda5 ext4 1.0 8ed677e7-5c21-4cca-ae93-a9f5e0107a34 7,5G 56% /
└─sda
sda6 ext4 1.0 12c6d897-925a-4cda-b1c3-f49e6ed1e6eb 4,5G 56% /var
└─sda
sda7 ext4 1.0 810a64fc-d78b-4c6f-a4f7-a9abc68dc123 159,6G 2% /home
└─sda
sda8 swap 1 3f9f5135-4e9d-4577-899e-f0719c61399f [SWAP]
└─sda
sr0

So my fstab is (it’s better include also boot partition and or swap too?):

cat /etc/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>
UUID=8ed677e7-5c21-4cca-ae93-a9f5e0107a34 / ext4 defaults,noatime 0 1
UUID=12c6d897-925a-4cda-b1c3-f49e6ed1e6eb /var ext4 defaults,noatime 0 2
UUID=810a64fc-d78b-4c6f-a4f7-a9abc68dc123 /home ext4 defaults,noatime 0 3

After doing than I’ll try to resolve the problem of windows that can’t boot…
So I’ll try the EFI solution but (i delete the first partition of windows and via terminal i try to ricreate it), i discover that this note hasn’t UEFI (or if it had i can’t know how to set)…

sudo inxi -Mxa
Machine: Type: Laptop System: Acer product: Aspire 5541 v: V1.03 serial: LXPQN020080092417D1601
Mobo: Acer model: Aspire 5541 v: V1.03 serial: N/A BIOS: Acer v: 1.03 date: 01/26/2010

sudo efibootmgr
EFI variables are not supported on this system.

sudo modprobe efivars
modprobe: FATAL: Module efivars not found in directory /lib/modules/5.8.18-1-MANJARO

mount -t efivarfs efivarfs /sys/firmware/efi/efivars
mount: /sys/firmware/efi/efivars: mount point does not exist.

At moment also at the list of os showed by grub, “windows” isn’t recognized.

sudo update-grub
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-5.8-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-5.8-x86_64.img
Found initrd fallback image: /boot/initramfs-5.8-x86_64-fallback.img
Found memtest86+ image: /boot/memtest86+/memtest.bin
done

How I can solve it?
PS: Sorry for my poor english, i’m not mothertongue!

if you check carefully
on your disk /etc/fstab there is no /boot/efi with UUID
( missing /boot/efi 24C1-20D7 )
==> need to chroot to change this on your partition linux /

with return parted - l ,
sda missing boot & esp flag on /boot/efi ( add with Gparted on USB iso manjaro )

and for check if UEFI is well in your bios

for repair , reboot on recovery ,
create USB windows

1 Like

I try yours solution, but I think this old notebook hasn’t a way to boot in UEFI mode (I can’t find a BIOS entry for change it to UEFI)…
So I restalling all and now all works…

‘sudo parted -l’
‘Modello: ATA Hitachi HTS72505 (scsi)’
‘Disco /dev/sda: 500GB’
‘Dimensione del settore (logica/fisica): 512B/512B’
‘Tabella delle partizioni: msdos’
‘Flag del disco: ’
‘’
‘Numero Inizio Fine Dimensione Tipo File system Flag’
’ 1 1049kB 106MB 105MB primary ntfs avvio’
’ 2 106MB 525MB 419MB primary ext4’
’ 3 525MB 492GB 491GB extended’
’ 5 526MB 245GB 245GB logical ntfs’
’ 6 245GB 246GB 524MB logical ntfs msftres’
’ 7 246GB 267GB 21,5GB logical ext4’
’ 8 267GB 284GB 16,1GB logical ext4’
’ 9 284GB 492GB 208GB logical ext4’
’ 4 492GB 500GB 8590MB primary linux-swap(v1)’

‘sudo lsblk -fs’
‘NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINT’
'sda1 ntfs System 291E194C2A1248A7 ’
'└─sda ’
‘sda2 ext4 1.0 18a17cfa-d206-4492-ab2e-718d686b4560 239,6M 27% /boot’
'└─sda ’
'sda3 ’
'└─sda ’
‘sda4 swap 1 36c09eb1-5636-4ec7-b94d-0f3febccaf7b [SWAP]’
'└─sda ’
'sda5 ntfs Windows10 40BE9EDD2F90C473 ’
'└─sda ’
'sda6 ntfs Recovery 5DFDFF5E4BE5DF9C ’
'└─sda ’
‘sda7 ext4 1.0 54efdedb-d71c-4c96-9914-f90e0fe8b522 9,8G 45% /’
'└─sda ’
‘sda8 ext4 1.0 34011737-0742-4189-b098-b68623630055 12,2G 12% /var’
'└─sda ’
‘sda9 ext4 1.0 e286ce53-5c92-42f3-bae5-11a0bd63faf9 177,9G 1% /home’
'└─sda ’
‘sr0’

‘cat /etc/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).’
‘#’
'# ’
‘UUID=18a17cfa-d206-4492-ab2e-718d686b4560 /boot ext4 defaults,noatime 0 2’
‘UUID=54efdedb-d71c-4c96-9914-f90e0fe8b522 / ext4 defaults,noatime 0 1’
‘UUID=34011737-0742-4189-b098-b68623630055 /var ext4 defaults,noatime 0 2’
‘UUID=e286ce53-5c92-42f3-bae5-11a0bd63faf9 /home ext4 defaults,noatime 0 2’