Grub2 and Windows 7. Endless war


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
4 views
Good day, Habr, I do not know whom to ask and where to go, so I hope for you.
In General fdisk-l:
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x453fcc37

Device Boot Start End Blocks Id System
/dev/sda1 * 1 25496 204796588+ 83 Linux
/dev/sda2 25497 60800 283579349+ f W95 Ext'd (LBA)
/dev/sda5 25497 60800 283579348+ 7 HPFS/NTFS


/dev/sda5 — Windows 7

sudo update-grub2, etc. does not help. Rough just hard not to see Windows.
grub.cfg:
Pastebin.com

Thank you very much.
by | 4 views

1 Answer

0 like 0 dislike
You have to config grub just no entry for Windows
find the uuid of the partition with Windows
\r
ls-al /dev/disk/by-uuid/
the numbers next to /dev/sda2
\r
add
menuentry "Win7" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set tostones
chainloader +1
}
\r
and then
sudo update-grub2
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
4 answers
asked Mar 24, 2019 by Cloud_thaves
0 like 0 dislike
1 answer
asked Apr 12, 2019 by artyvr
0 like 0 dislike
1 answer
asked Apr 5, 2019 by MorozovNsk
110,608 questions
257,186 answers
0 comments
28,076 users