chenall / grub4dos

外部命令和工具源码:https://github.com/chenall/grubutils 下载:
http://grub4dos.chenall.net
GNU General Public License v2.0
651 stars 136 forks source link

Processing the preset menu ... is too long time waiting (showing) #126

Open proxy-m opened 8 years ago

proxy-m commented 8 years ago

It takes 20-40 seconds. In very old version of grub4dos it takes 1-2 seconds.

fdisk Устр-во Загр Начало Конец Блоки Id Система /dev/sda1 2048 3670581247 1835289600 83 Linux /dev/sda2 * 3670581248 3805071359 67245056 83 Linux /dev/sda3 3805071360 3809265663 2097152 b W95 FAT32 /dev/sda4 3809265664 3907029167 48881752 83 Linux

grldr and menu.lst are on /dev/sda4 on (ext4).

menu.lst (part of items are boot nothing, because no such files):

timeout 7

title Linux Mint 64 bit (on /dev/sda2) rootnoverify (hd0,1)
chainloader +1

title Ubuntu Linux 64 bit (on /dev/sda4) rootnoverify (hd0,3)
chainloader +1

title Ubuntu Linux 64 bit TMP (on /dev/sda4) rootnoverify (hd0,3)
kernel /vmlinuz root=/dev/sda4 initrd /initrd.img

title Android 5.1 find --set-root --ignore-floppies /android-5.1-rc1/kernel kernel /android-5.1-rc1/kernel root=/dev/ram0 androidboot.hardware=android_x86 acpi_sleeps=s3_bios,s3_mode SRC=/android-5.1-rc1 nomodeset vga=323 initrd /android-5.1-rc1/initrd.img

title Puppy Linux 5.6.1 frugal in sda1 dir puppyprecise5.6.1 find --set-root --ignore-floppies /puppyprecise5.6.1/initrd.gz kernel /puppyprecise5.6.1/vmlinuz pmedia=atahd psubdir=puppyprecise5.6.1 initrd /puppyprecise5.6.1/initrd.gz

title _Ubuntu Linux 32 bit (with 64 kernel) (on /dev/sdb6) rootnoverify (hd1,5)
chainloader +1

title Puppyrus 510_lupu Linux (on /dev/sdb3) rootnoverify (hd1,2) kernel /puppy510/vmlinuz initrd /puppy510/initrd.gz

title XLuPuRus 510 Linux (on /dev/sdb3) rootnoverify (hd1,2) kernel /xlupurus510/vmlinuz initrd /xlupurus510/initrd.gz

title Linux (on /dev/sdb1) rootnoverify (hd1,0) kernel /linux/vmlinuz psubdir=linux pfix=ram initrd /linux/initrd.gz

title Puppyrus 420_opera Linux (on /dev/sdb3) rootnoverify (hd1,2)

kernel /puppy420/vmlinuz psubdir=puppy420 vga=0x31B pfix=nofsck initrd /puppy420/initrd.gz

title Puppyrus 420_opera Linux NOASK(on /dev/sdb3) rootnoverify (hd1,2) kernel /puppy420/vmlinuz psubdir=puppy420 pfix=nofsck initrd /puppy420/initrd.gz

title Puppyrus 520_lupurus Linux (on /dev/sdb3) rootnoverify (hd1,2) kernel /puppy520/vmlinuz wm=xfce initrd /puppy520/initrd.gz

title DOS (on /dev/sdb1) rootnoverify (hd1,0) makeactive chainloader +1

title Load GRUB4DOS (ob /dev/sdb1) rootnoverify (hd1,0) kernel /grub.exe

title Boot MBR of First Hard Disk chainloader (hd0)+1 rootnoverify (hd0)

title Boot MBR of Second Hard Disk chainloader (hd1)+1 rootnoverify (hd1)

title Boot Partition Boot Sector - First Hard Disk, First Partition root (hd0,0) chainloader (hd0,0)+1

title Boot Partition Boot Sector - First Hard Disk, Third Partition root (hd0,2) chainloader (hd0,2)+1

title Boot FreeDOS (/dev/sdb1) root (hd1,0) chainloader /kernel.sys

title Hardware Detection hdt-0.5.2.iso fallback 2 find --set-root --ignore-floppies /hdt-0.5.2.iso map /hdt-0.5.2.iso (0xff) || map --mem /hdt-0.5.2.iso (0xff) map --hook chainloader (0xff) savedefault --wait=2

title Boot MS-DOS (DOS, Win9x/ME) root (hd0,0) chainloader /io.sys

title Boot Windows NT/2K/XP on (hd0,0) root (hd0,0) chainloader /ntldr

title Boot Windows Vista on (hd0,0) root (hd0,0) chainloader /bootmgr

img_20160829_065836

steve6375 commented 8 years ago

Can you try latest grldr version?

proxy-m commented 7 years ago

Nothing changed. cimg8310

steve6375 commented 7 years ago

Can you press INSERT key as soon as grub4dos starts to boot for single-step mode - then see where delay occurs?

proxy-m commented 7 years ago

@steve6375 , [360] GR.mp4.zip

steve6375 commented 7 years ago

What is the exact size (in sectors) of your boot drive? What is the exact last sector of the last partition on the drive? If you have Windows, you can use RMPrepUSB - Drive Info to find out.

steve6375 commented 7 years ago

If you shrink the size of the last partition by 1MB - do you still see the delay?

proxy-m commented 7 years ago

Currently (delay/waiting problem is with it):

$ sudo fdisk /dev/sda

Command (m for help): p Disk /dev/sda: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 33553920 bytes Disklabel type: dos Disk identifier: ***

Device Boot Start End Sectors Size Id Type /dev/sda1 2048 3670581247 3670579200 1.7T 83 Linux /dev/sda2 * 3670581248 3805071359 134490112 64.1G 83 Linux /dev/sda3 3805071360 3809265663 4194304 2G b W95 FAT32 /dev/sda4 3809265664 3907029167 97763504 46.6G 83 Linux

Expert command (m for help): p

Disk /dev/sda: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 33553920 bytes Disklabel type: dos Disk identifier: ***

Device Boot Start End Sectors Id Type Start-C/H/S End-C/H/S Attrs /dev/sda1 2048 3670581247 3670579200 83 Linux 0/33/32 1023/63/254
/dev/sda2 * 3670581248 3805071359 134490112 83 Linux 1023/63/254 1023/63/254 80 /dev/sda3 3805071360 3809265663 4194304 b W95 FAT32 1023/63/254 1023/63/254
/dev/sda4 3809265664 3907029167 97763504 83 Linux 1023/63/254 1023/63/254

steve6375 commented 7 years ago

If you shrink the size of the last partition by 1MB - do you still see the delay?

proxy-m commented 7 years ago

I shrinked size of last partition by 1MB (with gparted), and I still see same long delay.

Команда (m для справки): p Диск /dev/sda: 1,8 TiB, 2000398934016 байтов, 3907029168 секторов Единицы измерения: секторов из 1 * 512 = 512 байтов Размер сектора (логический/физический): 512 байт / 4096 байт I/O size (minimum/optimal): 4096 bytes / 33553920 bytes Тип метки диска: dos Идентификатор диска: 0x5715e31c

Устр-во Загрузочный Start Конец Секторы Size Id Тип /dev/sda1 2048 1953521663 1953519616 931,5G 83 Linux /dev/sda2 * 1953521664 3805071359 1851549696 882,9G 83 Linux /dev/sda3 3805071360 3809265663 4194304 2G b W95 FAT32 /dev/sda4 3809265664 3907026943 97761280 46,6G 83 Linux

Команда (m для справки): x

Команды эксперта (m для справки): p Диск /dev/sda: 1,8 TiB, 2000398934016 байтов, 3907029168 секторов Единицы измерения: секторов из 1 * 512 = 512 байтов Размер сектора (логический/физический): 512 байт / 4096 байт I/O size (minimum/optimal): 4096 bytes / 33553920 bytes Тип метки диска: dos Disk identifier: 0x5715e31c

Устр-во Загрузочный Start Конец Секторы Id Тип Start-C/H/S End-C/H/S Attrs /dev/sda1 2048 1953521663 1953519616 83 Linux 0/33/32 1023/63/254
/dev/sda2 * 1953521664 3805071359 1851549696 83 Linux 1023/63/254 1023/63/254 80 /dev/sda3 3805071360 3809265663 4194304 b W95 FAT 1023/63/254 1023/63/254
/dev/sda4 3809265664 3907026943 97761280 83 Linux 1023/63/254 1023/63/254