You are not logged in.

#1 2016-12-22 18:10:03

Disco Dave
Member
Registered: 2014-12-31
Posts: 91

Trouble understanding where intel-ucode.img needs to be placed

I was trying to load my intel-ucode as explained here https://wiki.archlinux.org/index.php/microcode#rEFInd.  I use refind-install script to auto detect my operating systems.

Device         Start       End   Sectors   Size Type
/dev/sda1       2048    923647    921600   450M Windows recovery environment
/dev/sda2     923648   1128447    204800   100M EFI System
/dev/sda3    1128448   1161215     32768    16M Microsoft reserved
/dev/sda4    1161216 204802047 203640832  97.1G Microsoft basic data
/dev/sda5  204802048 205850623   1048576   512M EFI System  /boot
/dev/sda6  205850624 488397134 282546511 134.7G Linux filesystem /


Device          Start        End    Sectors   Size Type
/dev/sdb1        2048   67110911   67108864    32G Linux swap
/dev/sdb2    67110912  109053951   41943040    20G Linux filesystem /var
/dev/sdb3   109053952  318769151  209715200   100G Linux filesystem /backup
/dev/sdb4   318769152 1441525759 1122756608 535.4G Microsoft basic data /data
/dev/sdb5  1441525760 1953523711  511997952 244.1G Linux filesystem /home

disco:~/ $ cat /etc/fstab                                                                [13:05:29]
# 
# /etc/fstab: static file system information
#
# <file system>	<dir>	<type>	<options>	<dump>	<pass>
# /dev/sda6
UUID=5ca3bd25-5882-449a-a4d8-c52fe2f178cf	/         	ext4      	rw,relatime,data=ordered,discard	0 1

# /dev/sda5
UUID=B02E-C7D3      	/boot     	vfat      	rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro,discard	0 2

# /dev/sdb2
UUID=cf46ed3d-766b-443a-9560-7070193a0111	/var      	ext4      	rw,relatime,data=ordered	0 2

# /dev/sdb3
UUID=a82d0a00-86a8-4711-b4d0-b7503a03b02e	/backup   	ext4      	rw,relatime,data=ordered	0 2

# /dev/sdb4
UUID=25DABA823BCF9408	/data     	ntfs      	rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096	0 0

# /dev/sdb5
UUID=ac90e66b-c84d-480b-87ea-f6d527c2870f	/home     	ext4      	rw,relatime,data=ordered	0 2

# /dev/sdb1
UUID=f3528579-6cec-4000-b56f-4dc0065f1981	none      	swap      	defaults  	0 0

I tried using /boot/refind_linux.conf as the following

"Boot with standard options"  "rw root=UUID=5ca3bd25-5882-449a-a4d8-c52fe2f178cf quiet initrd=/boot/intel-ucode.img initrd=/boot/initramfs-linux.img"
"Boot to single-user mode"    "root=/dev/sda6 rw single"
"Boot with minimal options"   "ro root=UUID=5ca3bd25-5882-449a-a4d8-c52fe2f178cf"

However when I try booting with standard options, refined says that it can't find "boot\intel-ucode.imng" or "boot\initramfs-linux.img", but both of them are in the /boot. Where do these files have to be? Or am I just setting them wrong in the refind_linux.conf.

Thanks to anyone that can help

Offline

#2 2016-12-22 18:16:31

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,560

Re: Trouble understanding where intel-ucode.img needs to be placed

Remember, refind is loaded before the operation system; it's looking at the ESP, not at the root filesystem (which is where /boot/ is).

Offline

#3 2016-12-22 18:20:53

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,793

Re: Trouble understanding where intel-ucode.img needs to be placed

If, within your Arch system, the initfs is at /boot/initramfs-linux.img.  In which case the path in the command line should be /initramfs-linux.img  .  This is how my system is configured.
If, within your Arch system, the initfs is at /boot/boot/initramfs-linux.img.  In which case the path in the command line should be /boot/initramfs-linux.img (this implies there is a directory called /boot on your boot partition)
If, within your Arch system, the uCode image is at /boot/intel-ucode.img.  In which case the path in the command line should be /intel-ucode.img  .  This is how my system is configured.
If, within your Arch system, the uCode is at /boot/boot/intel-ucode.img.  In which case the path in the command line should be /boot/intel-ucode.img (this implies there is a directory called /boot on your boot partition)

My system has reFind installed, but it is not my primary method of booting.  I use EFI stubs.  My system does not have a /boot directory on the boot partition.  This leads me to think that your use of /boot/boot/ is probably wrong.

Edit: Scimmia said what I said with much fewer words.

Last edited by ewaller (2016-12-22 18:22:19)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB