You are not logged in.
Pages: 1
I know that adding a
> resume /dev/disk/by-uuid/somecrazyuuid
to the boot line of the grub/menu.lst, but GRUB2 doesn't have this and relies on fancy scripts and a "/etc/default/grub" file for easy option editing (which is better IMHO).
How should I do this for GRUB2?
And another thing (maybe just a small nuicance). Why is there no update-grub for GRUB2 in Arch? I thought it was "part of the package", if you know what I mean.
Thanks!
Last edited by rubenvb (2011-01-22 09:27:48)
Offline
I have never used resume grub. All custom modifications can be made in /etc/grub.d/40_custom There is a slight syntax difference that can be found on the grub2 archwiki. As far, as update-grub goes, the 'update-grub' command is an ubuntu command but what is part of the package is 'grub-mkconfig'. To create a grub.cfg file run this:
sudo grub-mkconfig -o /boot/grub/grub.cfg
This will use the files in /etc/grub.d to create a grub.cfg file.
--empthollow
Check out my Arch based live distro http://fluxcapacity.99k.org
Offline
As far, as update-grub goes, the 'update-grub' command is an ubuntu command but what is part of the package is 'grub-mkconfig'. To create a grub.cfg file run this:
sudo grub-mkconfig -o /boot/grub/grub.cfg
This will use the files in /etc/grub.d to create a grub.cfg file.
Yup; I use BURG (for now; should just switch to grub2, since it's progressing further) so I just use a 'burgup' alias.
I'm afraid I can't say for sure how grub2 handles suspend to disk. Have you tried it yet? I might be wrong, but a test-run of suspend-to-disk shouldn't hurt once.
Offline
The command for "update-grub" comes from Ubuntu, and is just an alias. If you'd like functionality like that in Arch, just add this to your ~/.bashrc file:
alias update-grub='sudo update-grub='sudo grub-mkconfig -o /boot/grub/grub.cfg'
Offline
Beelzebud, I just found this through a search. Very helpful. Thank you.
Offline
The command for "update-grub" comes from Ubuntu, and is just an alias. If you'd like functionality like that in Arch, just add this to your ~/.bashrc file:
alias update-grub='sudo update-grub='sudo grub-mkconfig -o /boot/grub/grub.cfg'
Its not solving the problem! "update-grub" it used to detect all the OS in all your partitions!
just found in wiki
I guess we need "os-prober" https://www.archlinux.org/packages/?name=os-prober
Last edited by rhoit (2012-08-25 08:53:29)
Offline
Alias should probably be:
alias update-grub='grub-mkconfig -o /boot/grub/grub.cfg'
Stick it at the end of /etc/bash.bashrc, for system-wide availability, or, create a script in /bin:
# nano /bin/update-grub
#!/bin/sh
grub-mkconfig -o /boot/grub/grub.cfg
Set the executable bit:
# chmod +x /bin/update-grub
There. Problem solved. You are now using Ubuntu.
I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline
I know that adding a
> resume /dev/disk/by-uuid/somecrazyuuid
to the boot line of the grub/menu.lst, but GRUB2 doesn't have this and relies on fancy scripts and a "/etc/default/grub" file for easy option editing (which is better IMHO).
How should I do this for GRUB2?
By adding that "resume=/dev/disk..." to GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub
and don't forget to regenerate your grub.cfg, of course...
Laptop: Arch Linux (x86_64) and Win10 (x86_64); Intel Core i7-3630QM @ 2.40GHz, 8 GiB RAM, NViDiA GeForce GT 650M w/ 2 GiB
Desktop: Arch Linux (x86_64) and Win10 (x86_64); Intel Core i7-4771 @ 3.50GHz, 32 GiB RAM, AMD Radeon RX 480 w/ 8 GiB
Offline
If resume is still not working after adding the resume= stuff to the GRUB_CMDLINE_LINUX_DEFAULT, you may also need to add resume to the hooks in mkinicpio. This was necessary for my Macbook, Thinkpad, and a ghetto HP desktop (all of the computers currently available to me).
Offline
Pages: 1