You are not logged in.
Pages: 1
Hello,
I entered data in /etc/grub.d/40_custom.
Then I executed:
grub-mkconfig -o /boot/grub/grub.cfg
It pulled the Win7 entry from os-prober, but not my custom entries from 40_config.
What did I do wrong?
Last edited by alocacoc (2013-07-02 22:08:37)
Offline
Please post the contents of your 40_custom file (use code tags!).
Offline
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
GRUB_TIMEOUT=15
menuentry "TinyCore Linux" {
set root='(hd0,5)'
linux /ebo/tce/boot/vmlinuz root=UUID=dd8efde3-938f-4bd5-9de4-b9ee5fd23323 noicons noautologin user=tc quiet waitusb=5 blacklist=pcspkr nozswap nodhcp tce=sdb6/tce
initrd /ebo/tce/boot/core.gz
}
menuentry "Puppy Linux" {
set root='(hd0,5)'
linux /ebo/puppy_linux/boot/vmlinuz root=UUID=dd8efde3-938f-4bd5-9de4-b9ee5fd23323
}Offline
This works for me (although I think the GRUB_TIMEOUT line belongs in /etc/default/grub, not in 40_custom). Are you sure you are generating grub.cfg on the distro that has control of grub? (more than one disto in a multiboot can have grub installed, but only one actually controls grub in the MBR). What happens if you "cat /boot/grub/grub.cfg" after you regenerate grub.cfg and before you reboot? Do you see your 40_custom entries there?
Someone else may come along soon and point out something obvious that both you and I are missing...
Last edited by 2ManyDogs (2013-07-01 22:19:57)
Offline
#!/bin/sh exec tail -n +3 $0 # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above. GRUB_TIMEOUT=15 menuentry "TinyCore Linux" { set root='(hd0,5)' linux /ebo/tce/boot/vmlinuz root=UUID=dd8efde3-938f-4bd5-9de4-b9ee5fd23323 noicons noautologin user=tc quiet waitusb=5 blacklist=pcspkr nozswap nodhcp tce=sdb6/tce initrd /ebo/tce/boot/core.gz } menuentry "Puppy Linux" { set root='(hd0,5)' linux /ebo/puppy_linux/boot/vmlinuz root=UUID=dd8efde3-938f-4bd5-9de4-b9ee5fd23323 }
Your /etc/grub.d/40_custom file looks fine. Check whether the file is marked as executable. If not grub-mkconfig will not run that file.
Offline
"cat /boot/grub/grub.cfg" shows the correct entries of 40_custom.
"40_custom" is marked as executable.
The other distribution files for tinycore and puppy actually doesn't exist yet, they existed before on my older distro, now they are still in my backup,
Last edited by alocacoc (2013-07-02 18:01:00)
Offline
So are you multibooting on this machine? Is there any other Linux distro on it now, or just Windows and Arch? Please post the output of the "lsblk" command.
Last edited by 2ManyDogs (2013-07-02 18:07:28)
Offline
Only Win7 and Arch.
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
fd0 2:0 1 4K 0 disk
sda 8:0 0 152.7G 0 disk
├─sda1 8:1 0 68.4G 0 part /mnt/hdd0
├─sda2 8:2 0 4.9G 0 part [SWAP]
├─sda3 8:3 0 500M 0 part /boot
├─sda4 8:4 0 1K 0 part
├─sda5 8:5 0 39.5G 0 part /home
└─sda6 8:6 0 39.5G 0 part /
sdb 8:16 0 298.1G 0 disk
└─sdb1 8:17 0 298.1G 0 part /mnt/hdd3
sdc 8:32 0 931.5G 0 disk
└─sdc1 8:33 0 931.5G 0 part /mnt/hdd2
sdd 8:48 0 931.5G 0 disk
└─sdd1 8:49 0 931.5G 0 part /mnt/hdd1
sr0 11:0 1 1024M 0 rom Offline
I'm a little confused. First you said:
Hello,
I entered data in /etc/grub.d/40_custom.Then I executed:
grub-mkconfig -o /boot/grub/grub.cfg
It pulled the Win7 entry from os-prober, but not my custom entries from 40_config.
What did I do wrong?
I took this to mean that /boot/grub/grub.cfg did not include the entries from 40_config. But then you said:
"cat /boot/grub/grub.cfg" shows the correct entries of 40_custom.
"40_custom" is marked as executable.
The other distribution files for tinycore and puppy actually doesn't exist yet, they existed before on my older distro, now they are still in my backup,
So now I'm not clear what the problem is.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
This is correct, the /boot/grub/grub.cfg seems to look good, but I won't see my choice Puppy and Tinycore when Grub is started at boot and it also don't prechoose Win7. It seems it doesn't use the grub.cfg.
Offline
Is there any chance that you installed grub to the Arch partition, and not to /dev/sda when you installed Arch? Try re-installing grub, using the instructions in the wiki: https://wiki.archlinux.org/index.php/Grub#Installation
(I don't know if you are using GPT, MBR, or UEFI, so follow the correct instructions, and tell us what you did and what results you get)
Last edited by 2ManyDogs (2013-07-02 21:30:51)
Offline
Did you format your boot partition before installing Arch?
or Did you just use the Puppy's linux boot partition?
Backup your grub file and delete it and create this one manually:
Not sure in which partition your windows is, so you may want to edit the windoze part with your win partition
set timeout=5
set default=0
#(0) Arch default
menuentry "Archy " {
# boot partition
set root=(hd0,3)
linux /vmlinuz-linux root=/dev/sda6 rootfstype=ext4
initrd /initramfs-linux.img
}
## (2) Windoze 7
menuentry "Windoze 7" {
#windoze partition below
set root=(hd0,3)
chainloader +1
}Last edited by Gryaniy (2013-07-02 21:54:02)
Offline
So the problem is not, then, grub-mkconfig. The problem is that grub seems not to be using the correct grub.cfg?
Are you booting in legacy bios or uefi mode?
What command did you use to install grub to disk? Did the output include any errors?
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Problem is solved now, I did not realize that before I post #6 I did a change in the permission, it was set to execute by owner and I set it additionally execute by others. It seemed this did the trick. I did not reboot after the change to test, so my post #6 was already wrong.
Sorry for the confusion, works fine now.
Post #5 was the solution.
Thanks.
Offline
Pages: 1