Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]grub2: Could not prepare Boot variable ???
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
skorefish
Apprentice
Apprentice


Joined: 21 Jun 2015
Posts: 281

PostPosted: Sun Jul 30, 2017 9:29 pm    Post subject: [solved]grub2: Could not prepare Boot variable ??? Reply with quote

hi,
i'm starting with systemrescuecd, booting existing os on drive
I also tryed the chroot method
What can i do more ???
the error:
Code:
grub-install --target=x86_64-efi --efi-directory=/mnt/EFI/
Installing for x86_64-efi platform.
Could not prepare Boot variable: Inappropriate ioctl for device
Installation finished. No error reported.

my /etc/fstab
Code:
/dev/sda1   /mnt/EFI     vfat       noatime          0 0
 /dev/sda2 /boot          ext2       defaults,noatime,nofail   0 2
 /dev/sda3   none         swap       sw                        0 0
 /dev/sda4   /            ext4       noatime,nofail            0 1

parted -l
Code:
Model: ATA TOSHIBA MK2565GS (scsi)
Disk /dev/sda: 250GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system     Name  Flags
 1      1049kB  211MB   210MB   fat32                 boot, esp
 2      211MB   345MB   134MB   ext2
 3      345MB   5346MB  5001MB  linux-swap(v1)
 4      5346MB  88.1GB  82.7GB  ext4

Model: USB Flash Disk (scsi)
Disk /dev/sdb: 520MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   End    Size   Type     File system  Flags
 1      1049kB  520MB  519MB  primary  fat32        boot, lba


dmesg https://paste.pound-python.org/show/1AZVRtYoTZW6Yb728ZJP/
lspci : https://paste.pound-python.org/show/yH8s7LQwBst7WcfRqeiN/

when chrooting
dmesg https://paste.pound-python.org/show/tPdGPxXNoEUsK9PeQsy1/

[Moderator edit: changed [quote] tags to [code] tags to preserve output layout. -Hu]


Last edited by skorefish on Mon Jul 31, 2017 6:10 am; edited 1 time in total
Back to top
View user's profile Send private message
skorefish
Apprentice
Apprentice


Joined: 21 Jun 2015
Posts: 281

PostPosted: Sun Jul 30, 2017 10:57 pm    Post subject: Reply with quote

efibootmgr -c /mnt/EFI/
Could not prepare Boot variable: Inappropriate ioctl for device

what does ioctl mean

hdparm -I /dev/sda https://paste.pound-python.org/show/0kQPARO8rzQM1ogCLj66/
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7127
Location: almost Mile High in the USA

PostPosted: Mon Jul 31, 2017 12:08 am    Post subject: Reply with quote

Invalid ioctl for device usually means that you're somehow sending it an out of band control instruction it doesn't support.

Possibilities:

1 - Your kernel and your efibootmgr do not match up - what version of each do you have?
2 - Your kernel is missing some config options - Do you have your .config somewhere that someone could look at?
3 - Your EFI system is broken? What hardware do you have? and the above .config could be helpful.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
skorefish
Apprentice
Apprentice


Joined: 21 Jun 2015
Posts: 281

PostPosted: Mon Jul 31, 2017 4:57 am    Post subject: Reply with quote

lspci https://paste.pound-python.org/show/F27cwBlTPBhlAKOEjotF/
.config https://paste.pound-python.org/show/f6vUkrOEFVxfuSOstlra/
Back to top
View user's profile Send private message
skorefish
Apprentice
Apprentice


Joined: 21 Jun 2015
Posts: 281

PostPosted: Mon Jul 31, 2017 6:09 am    Post subject: Reply with quote

It works! I don't know what exactly did the trick but...
i did

rm /sys/firmware/efi/efivars/dump-*"
emerge -ave grub efibootmgr (after 70 packages it worked so i interrupted the rest)
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