mcnd2
(usa Debian)
Enviado em 11/07/2011 - 21:51h
Deixando o arquivo executável "chmod +x" o menu fica com o Debian numa boa.
Tirando o arquivo sem ser executável "chmod -x" o menu retira o Debian mas deixa o Windows Vista e LinuxMint. Isso que não entendo!
Demostração da linha de comando:
-----------------------------------------------
root@debian:/home/mcnd2# chmod +x /etc/grub.d/10_linux /etc/grub.d/30_os-prober
root@debian:/home/mcnd2# update-grub
Generating grub.cfg ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-2.6.39-3.dmz.2-liquorix-amd64
Found initrd image: /boot/initrd.img-2.6.39-3.dmz.2-liquorix-amd64
Found linux image: /boot/vmlinuz-2.6.39-2.dmz.1-liquorix-amd64
Found initrd image: /boot/initrd.img-2.6.39-2.dmz.1-liquorix-amd64
Found linux image: /boot/vmlinuz-2.6.39-1.dmz.2-liquorix-amd64
Found initrd image: /boot/initrd.img-2.6.39-1.dmz.2-liquorix-amd64
Found linux image: /boot/vmlinuz-2.6.32-5-amd64
Found initrd image: /boot/initrd.img-2.6.32-5-amd64
Adding 40_custom menu entries.
done
root@debian:/home/mcnd2# cat /boot/grub/grub.cfg | grep "menuentry" | cut -d '"' -f 2
menuentry 'Debian GNU/Linux, with Linux 2.6.39-3.dmz.2-liquorix-amd64' --class debian --class gnu-linux --class gnu --class os {
menuentry 'Debian GNU/Linux, with Linux 2.6.39-3.dmz.2-liquorix-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
menuentry 'Debian GNU/Linux, with Linux 2.6.39-2.dmz.1-liquorix-amd64' --class debian --class gnu-linux --class gnu --class os {
menuentry 'Debian GNU/Linux, with Linux 2.6.39-2.dmz.1-liquorix-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
menuentry 'Debian GNU/Linux, with Linux 2.6.39-1.dmz.2-liquorix-amd64' --class debian --class gnu-linux --class gnu --class os {
menuentry 'Debian GNU/Linux, with Linux 2.6.39-1.dmz.2-liquorix-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-amd64' --class debian --class gnu-linux --class gnu --class os {
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
Windows Vista (loader)
LinuxMint GNU/Linux, with Linux 2.6.32-5-amd64 (on /dev/sda5)
LinuxMint GNU/Linux, with Linux 2.6.32-5-amd64 (recovery mode) (on /dev/sda5)
Sabayon GNU/Linux - rolling
Sabayon GNU/Linux - rolling (recovery mode)
Windows Seven
root@debian:/home/mcnd2# chmod -x /etc/grub.d/10_linux /etc/grub.d/30_os-prober
root@debian:/home/mcnd2# update-grub
Generating grub.cfg ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Adding 40_custom menu entries.
done
root@debian:/home/mcnd2# cat /boot/grub/grub.cfg | grep "menuentry" | cut -d '"' -f 2
Windows Vista (loader)
LinuxMint GNU/Linux, with Linux 2.6.32-5-amd64 (on /dev/sda5)
LinuxMint GNU/Linux, with Linux 2.6.32-5-amd64 (recovery mode) (on /dev/sda5)
Sabayon GNU/Linux - rolling
Sabayon GNU/Linux - rolling (recovery mode)
Windows Seven
root@debian:/home/mcnd2#
-----------------------------------------------
Tô ficando maluco, rs!
Lembro das charadas que tinha que matar quando usava o 'Legacy' rsrsrsr!...