LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 07-20-2011, 07:43 AM   #16
moonwalker
LQ Newbie
 
Registered: Jul 2011
Distribution: Debian Sid x64 UEFI
Posts: 10

Rep: Reputation: 0

BTW, dualhead with Nouveau does work if Optimus is disabled, however right now it appears to be highly unstable. In my case it often hangs on boot or after some time during work, longest it worked for me was about couple hours.
 
Old 07-20-2011, 12:18 PM   #17
chenxiaolong
LQ Newbie
 
Registered: Jun 2009
Location: /home/chenxiaolong and /root and /Users/chenxiaolong and C:\Users\chenxiaolong
Distribution: Fedora 12, Debian 5, Ubuntu 10.04
Posts: 17

Rep: Reputation: 0
Thanks for the info! I'll try it on my W520.
 
Old 07-20-2011, 12:34 PM   #18
moonwalker
LQ Newbie
 
Registered: Jul 2011
Distribution: Debian Sid x64 UEFI
Posts: 10

Rep: Reputation: 0
Quote:
Originally Posted by liucougar View Post
it has more crashes in the windows 7 installation I reinstalled...
BTW, constant BSODs in Windows 7 can be cured by installing Lenovo System Update utility and installing all drivers and windows updates through it before proceeding with standard MS Update. At least that worked for me with Windows 7 Professional x64 in UEFI mode.
 
Old 07-24-2011, 11:21 PM   #19
chenxiaolong
LQ Newbie
 
Registered: Jun 2009
Location: /home/chenxiaolong and /root and /Users/chenxiaolong and C:\Users\chenxiaolong
Distribution: Fedora 12, Debian 5, Ubuntu 10.04
Posts: 17

Rep: Reputation: 0
moonwalker: I just tested Ubuntu 11.04 x64 in UEFI mode since I had the alternate CD laying around. Grub 2 is a mess in Ubuntu under UEFI mode, so I just wanted to make sure I know how Grub 2 works in Debian.

1. Does installing the grub-efi-amd64 package automatically create the /boot/efi/EFI/debian folder (assuming I already mounted the EFI partition)?

2. Are the Grub 2 configuration files stored in /boot/grub or /boot/efi/EFI/debian?

3. If the configuration files are stored in /boot/efi/EFI/debian, does update-grub create the grub.cfg file in the correct directory?

Thanks in advance.
 
Old 07-25-2011, 03:47 AM   #20
moonwalker
LQ Newbie
 
Registered: Jul 2011
Distribution: Debian Sid x64 UEFI
Posts: 10

Rep: Reputation: 0
Quote:
Originally Posted by chenxiaolong View Post
moonwalker: I just tested Ubuntu 11.04 x64 in UEFI mode since I had the alternate CD laying around. Grub 2 is a mess in Ubuntu under UEFI mode, so I just wanted to make sure I know how Grub 2 works in Debian.

1. Does installing the grub-efi-amd64 package automatically create the /boot/efi/EFI/debian folder (assuming I already mounted the EFI partition)?

2. Are the Grub 2 configuration files stored in /boot/grub or /boot/efi/EFI/debian?

3. If the configuration files are stored in /boot/efi/EFI/debian, does update-grub create the grub.cfg file in the correct directory?

Thanks in advance.
I'm not sure what exactly you're referring to with "Grub 2 is a mess in Ubuntu under UEFI mode" as the only issue I've encountered with Ubuntu 11.04 UEFI boot is that I had to use noefi kernel option as with any linux <3.0.0rc2, otherwise it either hangs or reboots immediately after bootloader. As to your questions...:
1. No, you need to use the grub-install command to do that.
2. Standard location, "/boot/grub/". "/boot/efi/" is used strictly for efi files. Or at least should.
3. update-grub does a proper good job of updating grub configuration based on "/etc/default/grub" data. Add in that file 'GRUB_PRELOAD_MODULES="efi_gop"' if you have problems with no visible output after bootloader, it may be unnecessary though if you use KMS+Plymouth but is an absolute must if you have encrypted drives that ask for password before kernel sets the graphical mode. And add "reboot=a,w" in kernel options if it panics on reboot, there is 3.0.0-1 in Debian Unstable repositories already that may have that issue fixed but I haven't tested it yet.

EDIT: Looks like in latest 3.0.0-1 kernel "reboot=a,w" option is not needed anymore, but not because it warm-reboots using a windows-like workaround of the UEFI implementation bug. It rather forces a cold reboot each time, at least in UEFI mode.

Last edited by moonwalker; 07-25-2011 at 04:12 AM.
 
Old 07-25-2011, 09:19 AM   #21
chenxiaolong
LQ Newbie
 
Registered: Jun 2009
Location: /home/chenxiaolong and /root and /Users/chenxiaolong and C:\Users\chenxiaolong
Distribution: Fedora 12, Debian 5, Ubuntu 10.04
Posts: 17

Rep: Reputation: 0
What I meant was that Ubuntu's Grub tries to load "/boot/efi/EFI/grub/grub.cfg" while update-grub only creates "/boot/grub/grub.cfg". So every time I install a new kernel or edit "/etc/default/grub" I have to run:

Code:
cp /boot/grub/grub.cfg /boot/efi/EFI/grub/grub.cfg
Does Debian do the same thing?

Thank you for your time!
 
Old 07-25-2011, 09:31 AM   #22
moonwalker
LQ Newbie
 
Registered: Jul 2011
Distribution: Debian Sid x64 UEFI
Posts: 10

Rep: Reputation: 0
Quote:
Originally Posted by chenxiaolong View Post
What I meant was that Ubuntu's Grub tries to load "/boot/efi/EFI/grub/grub.cfg" while update-grub only creates "/boot/grub/grub.cfg". So every time I install a new kernel or edit "/etc/default/grub" I have to run:

Code:
cp /boot/grub/grub.cfg /boot/efi/EFI/grub/grub.cfg
Does Debian do the same thing?

Thank you for your time!
Hm, check "--boot-directory=/boot" parameter for grub-install. I might be wrong as I don't remember ever having a need to use anything besides --no-floppy --recheck --force and the boot device itself (/dev/sda usually ), but that should force it to install all it's files including grub.cfg into /boot/grub. Except for the grubx64.efi which should go into /boot/efi/EFI/<distibution_or_vendor_name>/grubx64.efi by default, in case of ubuntu that should be something like /boot/efi/EFI/ubuntu/grubx64.efi.
 
Old 07-25-2011, 11:33 AM   #23
chenxiaolong
LQ Newbie
 
Registered: Jun 2009
Location: /home/chenxiaolong and /root and /Users/chenxiaolong and C:\Users\chenxiaolong
Distribution: Fedora 12, Debian 5, Ubuntu 10.04
Posts: 17

Rep: Reputation: 0
Thank you!! That fixed Ubuntu's UEFI problems (the --boot-directory=/boot) and I also have Debian installed now with your instructions
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Fedora's Lovelock Linux is beta ready LXer Syndicated Linux News 0 04-20-2011 06:30 AM
LXer: Ubuntu 9.04 Beta vs. Fedora 11 Beta Performance LXer Syndicated Linux News 0 03-31-2009 01:00 PM
FC6 thinkpad R30 install hangs / crawls wrstock Linux - Laptop and Netbook 0 07-15-2007 04:59 PM
No DVI output with Linux (Fedora) on Thinkpad T43p kroser Linux - Laptop and Netbook 0 12-21-2005 12:33 AM
Thinkpad 600E/Redhat7.2 X Server Hangs marknye Linux - Newbie 0 03-09-2002 05:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 11:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration