Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Vizio laptop UEFI, odd boot partition [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
RayDude
Veteran
Veteran


Joined: 29 May 2004
Posts: 1507
Location: San Jose, CA

PostPosted: Sun Jul 14, 2013 4:13 pm    Post subject: Vizio laptop UEFI, odd boot partition [Solved] Reply with quote

This is the Windows 8 1TB drive (I got the 32gb intel rapid start drive disable but it wasn't easy)

Code:
kubuntu default # parted /dev/sda
GNU Parted 3.1
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p                                                               
Model: ATA ST1000LM024 HN-M (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system  Name                          Flags
 1      1049kB  316MB   315MB   ntfs         Basic data partition          hidden, diag
 2      316MB   588MB   273MB   fat32        EFI system partition          boot
 3      588MB   722MB   134MB                Microsoft reserved partition  msftres
 4      722MB   992GB   991GB   ntfs         Basic data partition
 5      992GB   1000GB  8389MB  ntfs         Basic data partition          hidden, diag


I removed the 32GB rapid start SSD and put in a Cruial 256 GB SSD.

Its partitions are:

Code:

kubuntu default # parted /dev/sdb
GNU Parted 3.1
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p                                                               
Model: ATA M4-CT256M4SSD3 (scsi)
Disk /dev/sdb: 256GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system     Name    Flags
 1      1049kB  2097kB  1049kB  linux-swap(v1)  swap
 2      2097kB  224GB   224GB   ext4            Gentoo  boot

(parted)                                                       


I have mounted /dev/sda2 to /boot/efi.

I have attempted to install grub2 onto /dev/sda2 /dev/sdb2 and /dev/sda, but no matter what I do, it doesn't change its boot menu.

Code:

kubuntu default # efibootmgr -v
BootCurrent: 0002
Timeout: 1 seconds
BootOrder: 0002,0001
Boot0001* Windows Boot Manager  HD(2,96800,82000,304c6048-5662-4157-8ed7-241cffa18d67)File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...}................
Boot0002* UEFI:  0.00   ACPI(a0341d0,0)PCI(1d,0)USB(1,0)USB(2,0)HD(1,3f,1e267c,04dd5721)AMBO


Here are the commands I used. I've also stuck a grub config file in every place it might be needed.

Code:
grub2-install --target=x86_64-efi --modules="part_gpt part_msdos linux normal boot all_video chain efi_gop video video_fb gzio ls lvm" --efi-directory=/boot/efi /dev/sda2

grub2-install --target=x86_64-efi --modules="part_gpt part_msdos linux normal boot all_video chain efi_gop video video_fb gzio ls lvm" --efi-directory=/boot/efi /dev/sda2

grub2-install --target=x86_64-efi --modules="part_gpt part_msdos linux normal boot all_video chain efi_gop video video_fb gzio ls lvm" --efi-directory=/boot/efi /dev/sda

grub2-mkconfig -o /boot/grub2/grub.cfg
grub2-mkconfig -o /boot/efi/EFI/gentoo/grub.cfg
grub2-mkconfig -o /boot/grub2/grub.cfg
grub2-mkconfig -o /boot/efi/EFI/gentoo/
grub2-mkconfig -o /boot/efi/EFI/gentoo/grub.cfg
grub2-mkconfig -o /boot/efi/EFI/gentoo/gentoo.cfg
grub2-mkconfig -o /boot/grub2/grub.cfg


Can anyone familiar with this grub2 give me a hand? I want to boot my gentoo (without removing windows 8).

Thanks in advance.
_________________
Some day there will only be free software.


Last edited by RayDude on Mon Jul 15, 2013 4:59 am; edited 1 time in total
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Sun Jul 14, 2013 5:01 pm    Post subject: Reply with quote

grub legacy works well with gpt disks.
grub legacy sets up on partition boot records without complaints
if using grub I would use legacy grub
if dual booting windows 8.1 and gentoo i would (and do) use efi stub kernel as my linux bootloader and rEFInd as my bootmanager, https://wiki.gentoo.org/wiki/UEFI_Dual_boot_with_Windows_7/8 tells how. No grubs no lilos.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
RayDude
Veteran
Veteran


Joined: 29 May 2004
Posts: 1507
Location: San Jose, CA

PostPosted: Sun Jul 14, 2013 5:12 pm    Post subject: Reply with quote

Thanks, I'll give it a shot.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
RayDude
Veteran
Veteran


Joined: 29 May 2004
Posts: 1507
Location: San Jose, CA

PostPosted: Sun Jul 14, 2013 7:32 pm    Post subject: Reply with quote

It doesn't work...

When I try installing refind in windows this command (and others I've been able to work around) doesn't work:

Code:
PS S:\EFI\refind>  bcdedit /set {bootmgr} path \EFI\refind\refind_x64.efi
The set command specified is not valid.
Run "bcdedit /?" for command line assistance.
The parameter is incorrect.


Ideas?
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Sun Jul 14, 2013 8:35 pm    Post subject: Reply with quote

Just ran through it and of course it all worked fine here again.
It appears you may be in power shell; that may be a problem.
recommend use command prompt instead, move mouse to upper right corner, click search, type command in the window, look below for command prompt, right click on command prompt, select run as administrator, then repeat steps in rod's guide. give a yell as soon as one fails or has to be worked around.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
RayDude
Veteran
Veteran


Joined: 29 May 2004
Posts: 1507
Location: San Jose, CA

PostPosted: Sun Jul 14, 2013 9:10 pm    Post subject: Reply with quote

Amazing. Thanks I am in powershell. I had no idea there was a difference.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Sun Jul 14, 2013 9:25 pm    Post subject: Reply with quote

may not matter. I have seen power shell bad mouthed though. your efi implementation may be even worse than mine which i am convinced is world's worst.

Screenshots: http://www.flickr.com/photos/96868680@N04/
_________________
Defund the FCC.
Back to top
View user's profile Send private message
RayDude
Veteran
Veteran


Joined: 29 May 2004
Posts: 1507
Location: San Jose, CA

PostPosted: Sun Jul 14, 2013 11:10 pm    Post subject: Reply with quote

Thanks. It worked from cmd. Go figure.

I have to boot kubuntu to find the uid for the linux partition.

Wish me luck.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
RayDude
Veteran
Veteran


Joined: 29 May 2004
Posts: 1507
Location: San Jose, CA

PostPosted: Mon Jul 15, 2013 4:58 am    Post subject: Reply with quote

Final update:

Thanks much for all your help DONAHUE, it totally works now.

rEFInd is a great efi boot manager.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Mon Jul 15, 2013 5:31 am    Post subject: Reply with quote

Enjoy. Rod did great work writing and documenting rEFInd.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
srs5694
Guru
Guru


Joined: 08 Mar 2004
Posts: 434
Location: Woonsocket, RI

PostPosted: Mon Jul 15, 2013 4:45 pm    Post subject: Re: Vizio laptop UEFI, odd boot partition [Solved] Reply with quote

Thanks for the kind words about rEFInd, Donahue. (I'm Rod Smith, the maintainer of rEFInd.)

RayDude wrote:
Code:

kubuntu default # parted /dev/sdb
GNU Parted 3.1
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p                                                               
Model: ATA M4-CT256M4SSD3 (scsi)
Disk /dev/sdb: 256GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system     Name    Flags
 1      1049kB  2097kB  1049kB  linux-swap(v1)  swap
 2      2097kB  224GB   224GB   ext4            Gentoo  boot


I'm glad you got this working. I just want to point out that you should not have the "boot flag" set on the Gentoo partition. This "flag" is really a partition type code, and it should be used exclusively by the EFI System Partition (ESP), which in your case is /dev/sda2. Linux doesn't care about this, but Windows does. If you ever need to re-install Windows, the installer could become confused by this and fail. It's even conceivable that it would trash your Gentoo installation, although I don't know this for a fact. It's conceivable that this duplication is what caused your bcdedit command to fail, although I'm far from certain of this.

I recommend that you use gdisk (Gentoo package name gptfdisk, IIRC) to change the type code on this partition from EF00 (gdisk's equivalent of the "boot flag" on a GPT disk) to 8300. Unfortunately, the stock parted 3.1 doesn't yet support the Linux-specific partition type code, so you can't (yet) do this in parted. (I submitted a patch to the parted developers two years ago, and it is in their git version of parted, but it hasn't yet made it into a regular parted release.) You can of course remove the "boot flag" in parted, but that will then mark the partition as holding a Microsoft filesystem. Linux won't care about this, but the result in Windows will be that it will see the partition as an unformatted disk, making it too easy for you to accidentally trash Linux from Windows.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Mon Jul 15, 2013 5:17 pm    Post subject: Reply with quote

The bcdedit failure: Power Shell found guilty of lack of backward compatibility

Command Prompt requires: bcdedit /set {bootmgr} path \EFI\refind\refind_x64.efi

Power Shell requires: bcdedit /set "{bootmgr}" path \EFI\refind\refind_x64.efi

As reported by some googling inspired by RayDude's report.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum