Grub-install: "cannot find EFI directory" (CSM mode)
Hi,
I'm trying to install grub on the mbr with 'grub-install /dev/sdb', but I get "cannot find EFI directory'. I have an Asus laptop with secure boot disabled and CSM enabled (I *need* CSM because otherwise - I don't know the reason - I can't boot from USB/disk). I have Windows 7 installed (/dev/sdb2) and I know there's a small partition (/dev/sdb1) which was created during Windows 7 installation which contains a 'Boot' directory, a 'bootmgr' file and other stuff. Now, my purpose is to dual boot Windows 7 and Arch while the BIOS is in CSM mode. The problem is that a simple grub-install /dev/sdX does not work as expected (under Gentoo, it simply worked out-of-the-box). By now, I can chroot into my fresh Arch installation (/dev/sdb3). Another thing: possible targets for grub-install are 'i686-pc' and 'x86_64-efi'; when running grub-install the program automatically selects 'x86_64.efi' as target. I don't know if it's correct (I do have an AMD64 laptop, just to clarify). Thanks in advance.
tant0c1b0 wrote:Hi,
I'm trying to install grub on the mbr with 'grub-install /dev/sdb', but I get "cannot find EFI directory'. I have an Asus laptop with secure boot disabled and CSM enabled (I *need* CSM because otherwise - I don't know the reason - I can't boot from USB/disk). I have Windows 7 installed (/dev/sdb2) and I know there's a small partition (/dev/sdb1) which was created during Windows 7 installation which contains a 'Boot' directory, a 'bootmgr' file and other stuff. Now, my purpose is to dual boot Windows 7 and Arch while the BIOS is in CSM mode. The problem is that a simple grub-install /dev/sdX does not work as expected (under Gentoo, it simply worked out-of-the-box). By now, I can chroot into my fresh Arch installation (/dev/sdb3). Another thing: possible targets for grub-install are 'i686-pc' and 'x86_64-efi'; when running grub-install the program automatically selects 'x86_64.efi' as target. I don't know if it's correct (I do have an AMD64 laptop, just to clarify). Thanks in advance.
You are telling the system to act like it is a BIOS system as far as the boot process goes but I don't think you are using a disk with a MBR, master boot record partition table. Is your disk actually GPT? This is a common gotcha when trying to use CSM mode on a UEFI based system since UEFI systems come with GPT disks. I believe this describes Grub installation in your configuration.
https://wiki.archlinux.org/index.php/GR … structions
To be clear though, I don't think this is a good direction to go. This isn't keeping things simple though that may have been why you chose to do it. I don't have enough information to know but it sounds like your disk expected to be in a UEFI system and was created with a GPT partition scheme. I would use it that way for Arch and for Windows if you choose to have that installed. I think it creates unneeded complexity to create a hybrid UEFI/BIOS configuration. I would always have all disks using the same partition scheme (the reason you can't boot "USB/disk" may be that you need GPT) and all OS's booting UEFI on a UEFI system.
Similar Messages
-
Grub-config cannot find my win8 os...
Hi all,
I install 6.1 ios, after install and config grub.
when I run following command, the generate cfg file did not include my win8 os.
# modprobe dm-mod
# grub-install --recheck /dev/sda
# grub-mkconfig -o /boot/grub/grub.cfg
any comments.
Last edited by kenan (2013-06-06 01:42:15)WonderWoofy wrote:
I'm not a big fan of grub and its autogenerated config because of things like this. Are you dead set on using grub? Or would you be open to trying something else? Are you only booting windows 8 and Arch Linux? If so, then I would highly recommend syslinux, as its configuration makes a whole hell of a lot more sense to me than grub's insanely long and overly-verbose config file.
If not, I am afraid that my help stops here. Not because I don't want to help, but because I don't know enough to get you any further other than telling you to manually make a config in the 40-custom.conf or whatever it is.
any way, thanks a lot for you help.
per the grub, I do not know why it stop using the menu.list and change to cfg file which is hard to read and use.
Per the archios, I also think it is need too many things to read to install. I will try syslinux.
thanks -
Photoshop CC installed, cannot find on computer
I recently purchased Photoshop CC and Lightroom 5 to use with the Creative Cloud. I installed Bridge CC, Lightroom 5 and Photoshop CC onto my computer; however, I can only find Lightroom and Bridge and open them. I cannot find Photoshop anywhere, even though it says it is installed in Creative Cloud. Any help?
I'm running a Mac 10.8.4 software
Thanks!
RyanThe following links can be helpful, please check them:
Error "Application components are missing" | Starting Photoshop, Photoshop Elements | Mac OS
Applications missing from Creative Cloud Desktop application
Hope these help you.
Regards
Rajshree -
Virt-install cannot mount nfs directory
Hi all,
I'm trying to use ovms but I cannot create any virtual machine.
I successfully installed OVMS; I disabled iptables to avoid network problems.
I created a dvd from Oracle Unbreakable EL 5.0 cds on a different machine.
The dvd image is shared by a linux CentOS box. The ISO image is inside /opt/tmp_os_isos/50 so I did
service nfs start
mkdir /mnt/dvd50
chmod a+rwx /mnt/dvd50
mount -o ro,loop /opt/tmp_os_isos/50/Enterprise-R5-GA-Server-i386-dvd.iso /mnt/dvd50/
exportfs *:/mnt/dvd50
and on the ovms server I did:
[root@ovms ~]# virt-install
What is the name of your virtual machine? giallo2
How much RAM should be allocated (in megabytes)? 512
What would you like to use as the disk (path)? /virtpcs/dischi/giallo
How large would you like the disk (/virtpcs/dischi/giallo2) to be (in gigabytes)? 30
Would you like to enable graphics support? (yes or no) no
What is the install location? nfs:10.10.10.242:/mnt/dvd50
And I always end up with the error
That directory could not be mounted from the server.
If I try to run
[root@ovms ~]# mount.nfs 10.10.10.242:/mnt/dvd50 /mnt/50
it works!
I also tried to build adifferent dvd iso, or to uso a OEL 4.4 dvd iso (taken from an original working oracle dvd) but I always end up with the same error
Where am I wrong?
thanks, andreaI realized this problem was somehow related with the ovms installation: the pc I installed ovms on has two network card; when I installed ovms I configured eth0 via DHCP (eth0 is linked to the office network and to internet) and I configured eth1 with a static IP (eth 1 is connected to a "private" network made by 2 more pc).
I also choosed to manage ovnms via eth1 (the network card witch has a statis ip), and everything regardind ovms has always been done via eth1.
Now I reinstalled ovms and I choosed to manage it via eth0 (si I put a static ip address on eth0) and everything seems working: I'm just installing OEL5.0 via nfs without any problem (I hope... :-) )
andrea -
Yosemite 10.10.2 failed to install, cannot find it anymore
Hi all,
I should pay more attention next time..
I received an App Store notification that an update to Yosemite was ready. I was tired enough that I did not focus on which version it was, but I assume it was 10.10.2 and that I was on 10.10.1. I just checked the system logs earlier today
Jan 29 02:30:25 Sams-MBA.local ReportCrash[23463]: Date/Time: 2015-01-29 01:30:15.978 +1300
Jan 29 02:30:25 Sams-MBA.local ReportCrash[23463]: OS Version: Mac OS X 10.10.1 (14B25)
So I guess that confirms I am/was on 10.10.1, and received a notification for 10.10.2.
Unfortunately after the reboot I got a notification saying the install failed -- not all of the installation was completed successfully.
It asked if I want to retry or try later. I clicked on later. It asked if I wish to submit the crash logs to Apple, and I accepted.
Now, the problem is I go to the App Store, and it no longer shows me that I have an update to install.
I go to About Mac, and it shows I have Version "10.10.1 (14B25)" installed ?!?!
So I'm stuck in limbo with a half 10.10.1/2 install ?!
What's going on here? Is there any way I can download the official 10.10.2 update .dmg so that I can perform a manual reinstall? I tried the following URL
http://support.apple.com/kb/DL1786
However when clicking on Download button, it gives me an error "We're Sorry, we can't find the article you're looking for".
I wouldn't mind pasting the upgrade logs for reference but can't find them - or don't know where they'd be..
Thanks.Thank you very much for your support.
And thank you all! This is my first post in Apple's forums and I'm very impressed
Just a quick update, I got it to work with the Combo Installer. I dug around and found out they changed the name of the file to OSXUpdCombo10.10.2.dmg
I just replaced the .dmg i was getting a 404 with OSXUpdCombo10.10.2.dmg and got a copy - though checking now, it seems they fixed the link.
I gave that an install and it fixed the issue; no errors. My About page now shows 10.10.2, and allis well! -
Cp and rsync cannot find system directory
Hello,
I am working on a script to copy a custom user profile over to the default. Part of the script uses rsync to copy the contents of the customized profile, named "profile" to the default profile located in: /System/Library/User Template/English.lproj. Each time I run the command interactively, it fails indicating "No such file or directory." I can browse to the directory in the Finder. I can navigate to the directory via the terminal. Why can't rsync find it? Here is the command:
rsync -av /Users/profile/* /System/Library/User\ Template/English.lproj
I tried a similar approach using "cp -R" instead of rsync and got a whole bunch of file not found error messages. Using the "cd" command to that same path also fails. I can step through each individual directory and arrive at English.lproj but I can't do it in one command. Any ideas where I am going wrong with my command?
Thanks
JasonHello and welcome to the forums!
I took a look in our knowledge base for this error and found this article. Did you happen to update your BlackBerry Desktop Manager recently ("did the upgrade trick")?
I think you'll find that article helpful
-tg
Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
Be sure to click Kudos! for those who have helped you.
Click Solution? for posts that have solved your issue(s)! -
Thunderbird re-install cannot find mail accounts from previous C:\ drive
QUESTION; Where do I go from here?
NARRATIVE:
My C:\ drive (!Tb) started to balk when after I had a little more than 800Gb stored on it. My tech told me the machine case would hold two internal HDs. We bought an additional 1Tb HD and he installed Windows basics, all drivers, and my regular backup utility so we could make an immediate mirror image of the drive on an external HD.
Both internals carry Windows 7 64-bit, and by editing Boot Config, I can boot from either -- with no errors or red flags.
I downloaded TB 31.0, installed it to the new drive; then copied out App Data and Application Data including all TB files from the old HD (2 Windows User accounts) to discreet folders on an external drive. From there, I copied them to the appropriate folders for the two Users on the new HD. Thunderbird will not access them, even though I have used every workaround and trick I have learned with TB over a dozen years. I've worked on this many days, checked several similar items on the forum, and don't see a solution. (And my tech has never wanted to learn anything about Tbird; nor has he needed to in times past.
I have just uninstalled Thunderbird 31.0 and deleted the content under TB folders in App Data (2) and Application Data (2) on the new C:\ drive. I first confirmed that all previous data is available on the old HD and that the copy on the external drive is complete and accurate -- and without any Windows security locks. Local Settings folders on both old-drive/Users were locked and could never access them, but some TB-related files were in there in times past.
What should I do? 1) Install an older version of Thunderbird and hope that I can marry the old files in? or, 2) What can you suggest?
Many thanks in advance. edj.I resolved the problem with a 3rd drawer solution (not the best). I put all previous TB Profiles (with all mail folders) aside; then set up new TB accounts accessing Gmail and Yahoo mail.
Once I have drained the servers of all the accumulated mail, I will go through the old folders (under the old Profiles) and carefully, one at a time, move the folders I need to keep into the Local Folders account. That method appeared in another related post; practical, easy enough, and it got me off dead-center. -
we had to reset our mac - lost the apps for creative cloud - need to re-install how do we do it
Edman27 please see Install and update apps - https://helpx.adobe.com/creative-cloud/help/install-apps.html for information on how to reinstall the Adobe Creative applications included with your membership.
-
[SOLVED] EFI grub Install problems
I know this topic has been beat to death but I cannot for the life of me figure this out.
My Config:
1 Hard Drive -- /dev/sda
/dev/sda2 is EFI Partition.
/dev/sda5 is /mnt/boot during the install
/dev/sda6 is /mnt/ during the install
PC has windows 8.1 installed and booting fine with rEFInd installed. I run through the basic arch installation and mount my /dev/sda2 to /boot/ like in the beginners guide.
I chroot and do the commands below: (from the wiki)
# mount -t efivarfs efivarfs /sys/firmware/efi/efivars # ignore if already mounted
# pacman -S grub efibootmgr
# grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=arch_grub --recheck
It installs fine, and then I run:
# grub-mkconfig -o /boot/grub/grub.cfg
It completes as well, and im left with a EFI/arch_grub/something.efi and then a /grub folder with the config in it on my EFI partition.
When I reboot, grub completly takes over and doesnt boot anything. Just stuck at grub2>...
I have to boot off live CD and remove the EFI/arch_grub folder and the other grub folder to be able to boot windows again.
What am I doing wrong here?
Any help is appreciated....
Last edited by skwid (2013-11-19 17:38:01)teateawhy wrote:You mounted the boot partition on sda5 to /boot, instead of mounting the ESP on sda2 to /boot. The beginner's guide expects you to mount the ESP to /boot.
Ok, I went back and re-done the entire thing and made sure I mounted /dev/sda5 to /boot. That left me with a /boot/EFI folder which my refind and microsoft folders are in.
Ran through the installs and everything went fine. I have a /boot/EFI/arch_grub/grubx64.efi file and a /boot/efi/grub/ folder with the grub.cfg file. No errors.
Rebooted, and same thing. reFINd no longer runs first, grub does. grub is broken because there are no kernel lines or anything.
When I reboot the PC and select the boot menu in the BIOS, I get a UEFI entry for "arch_grub" and I can select it and it boots to the broken grub.
I can select rEFInd and it will run, but not automatically like it used to.
If I remove all the arch_grub and grub folder from my EFI partition, then everything works, but of course, no arch. -
Grub doesn't find OSs (UEFI installation)
I'm trying to install Arch Linux for the second time. Apparently Universe doesn't want me to do it easily not even once...
So I've done everything that the wiki says, and when it comes to installing grub, I install grub, os-prober and efibootmgr
then I do:
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub_uefi --recheck --debug
This step finishes without errors.
Then I try to detect the OSs and create a grub.cfg file that contains them with no success....
grub-mkconfig -o /boot/grub/grub.cfg
I haven't saved the output of the command but something between the lines is this...
It tries to run something that has to do with lvm (I think it said it's a module) and it can't find that module? Or something like that <---< I have no clue what that is, but by reading on the internet it's something that I've never messed with so... it's unlikely to have it
Then I get errors/warnings about sda3 partition which is the Microsoft Windows 8.1 Reserved partition... and something about not naming right my ufs partition? Or something like that
If I uninstall os-prober then the script runs without warnings but it still doesn't find the OS not even arch linux, cfg file contains zero entries.
When I boot from grub_uefi boot entry, I get the grub minimal console (Which I don't know how to operate or what to do with it)
And last but not least... A fix to that "grub bug" was to disable submenus (Read that In this forum). I did it, I disabled submenus and ran grub-mkconfig again but nothing changed.
I know the info is very vague but I hope that someone with knowledge can figure out what those errors are and why it can't find the oses....
Ty in advance@TheSaint Yes, I chrooted into the installation...
@ Head_on_a_Stick, I'm not home right now but if you tell me what you want to see from that command, Maybe I can tell you by memory, I've run fdisk -l (Which I suspect shows a similar output) too many times so I've memorized my partitions.
I did solve the problem by using gummiboot instead of grub, but I'd still like to know why grub couldn't find the OSes... I'm VERY sure that I did all the steps of the installation right, I've memorized the steps AND I made sure to read them again before doing the installation. -
(10.6.8 Intel core duo 2009)
Hi,
I have a grey screen and grey rotating wheel startup probs. I have tried repairing with the disk utility, resetting PRAM, booting in safe mode (which gave a subset of the errors that 'disk repair' did- namely- 'invalid sibling link,invalid record count, invalid node structure, invalid key length) and finally trying to get to archive&install the o/s, but it cannot find the destination volume. Is an erase the only option? PS I have backed up most files individually, but my daughter did not back up any from her user account. Any help would be appreciated. JGray, Blue or White screen at boot, w/spinner/progress bar
Why is my computer slow?
..Step by Step to fix your Mac
https://discussions.apple.com/community/notebooks/macbook_pro?view=documents -
Hi Experts,
I got the error "cannot find real path for '/var/install/Client/DATA_UNITS/HDB_CLIENT_LINUX_X86_64/../install/sdbrun': No such file or directory" and "Error during execution of HdbCmdClazz section!" during SAP NW 740 HANA installation. I specified the right path for HDB client (see in attachment).
Any ideas, please?
Thanks & best regards,
SreenuThe service file is in $srcdir, not $_svnmod/builders/cmake.
You're using an outdated PKGBUILD template too. The svn source should be included in the source array and not checked out manually during the build process.
EDIT: since this repository requires authentication, perhaps the correct format won't work.
Last edited by WorMzy (2015-02-08 23:07:59) -
BIOS-GPT grub cannot find the root device in LVM setup
Greetings Arch Linux Community,
Recently I started my journey of installing Arch Linux on my VMware Workstation.
I successfully installed the non-LVM instance not long before I noticed the advantages of LVM, then I just started a new Arch Linux setup with LVM.
However, after following the Beginners' Guide and LVM Guide carefully, I ran into a problem on boot that I cannot solve by myself due to my poor knowledge on boot/grub.
Here is the error message:
ERROR: device '4b28d500-8ed3-4fe5-ad26-97fbb01f979b' not found. Skipping fsck
ERROR: Unable to find root device '4b28d500-8ed3-4fe5-ad26-97fbb01f979b'
The error message itself is pretty clear; saying that the root device specified by my grub.cfg cannot be found and thus cannot be loaded.
However, I'm 100% sure that the device is actually there and just for some reason grub cannot see it.
Below please see the info from lsblk, pvdisplay, vgdisplay, lvdisplay, and some related info from fstab, grub.cfg and mkinitcpio.conf:
root@archiso / # lsblk -f
NAME FSTYPE LABEL UUID MOUNTPOINT
fd0
sda
├─sda1
├─sda2 swap a576bed1-929a-4ea5-b771-6b2e3b2e3808
├─sda3 ext4 659e5bcf-b34b-4083-b8e5-e336fdd20c3d /mnt/boot
└─sda4 LVM2_member GNznA5-fwUh-Gw6D-JvY4-rZKJ-d6fP-TIyoRZ
├─VolGroup00-lvroot ext4 4b28d500-8ed3-4fe5-ad26-97fbb01f979b /mnt
└─VolGroup00-lvhome ext4 dc1f1322-8d8e-4456-b61d-95966ae4e25d /mnt/home
sr0 iso9660 ARCH_201405 2014-05-01-05-20-54-00 /run/archiso/bootmnt
loop0 squashfs /run/archiso/sfs/root-image
loop1 ext4 f07bfb26-3377-487a-a022-efd840614a0d
└─arch_root-image ext4 f07bfb26-3377-487a-a022-efd840614a0d /
loop2 ext4 f07bfb26-3377-487a-a022-efd840614a0d
└─arch_root-image ext4 f07bfb26-3377-487a-a022-efd840614a0d /
root@archiso / # pvdisplay
--- Physical volume ---
PV Name /dev/sda4
VG Name VolGroup00
PV Size 8.50 GiB / not usable 2.98 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 2175
Free PE 0
Allocated PE 2175
PV UUID GNznA5-fwUh-Gw6D-JvY4-rZKJ-d6fP-TIyoRZ
root@archiso / # vgdisplay
--- Volume group ---
VG Name VolGroup00
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 8.50 GiB
PE Size 4.00 MiB
Total PE 2175
Alloc PE / Size 2175 / 8.50 GiB
Free PE / Size 0 / 0
VG UUID x8VegQ-OKr6-kNNk-HwHe-xxi1-Ecdt-W9Ydj2
root@archiso / # lvdisplay
--- Logical volume ---
LV Path /dev/VolGroup00/lvroot
LV Name lvroot
VG Name VolGroup00
LV UUID q8LxrZ-PXmf-K2Sl-7SNl-DlsF-IZ3s-2m2eHw
LV Write Access read/write
LV Creation host, time archiso, 2014-05-17 16:24:23 +0000
LV Status available
# open 1
LV Size 5.00 GiB
Current LE 1280
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:1
--- Logical volume ---
LV Path /dev/VolGroup00/lvhome
LV Name lvhome
VG Name VolGroup00
LV UUID 3q32Nf-CRZz-iYpB-5317-075y-ulj3-uurdwE
LV Write Access read/write
LV Creation host, time archiso, 2014-05-17 16:24:49 +0000
LV Status available
# open 1
LV Size 3.50 GiB
Current LE 895
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:2
root@archiso / # cat /mnt/etc/fstab
# /etc/fstab: static file system information
# <file system> <dir> <type> <options> <dump> <pass>
# /dev/mapper/VolGroup00-lvroot
UUID=4b28d500-8ed3-4fe5-ad26-97fbb01f979b / ext4 rw,relatime,data=ordered 0 1
# /dev/mapper/VolGroup00-lvhome
UUID=dc1f1322-8d8e-4456-b61d-95966ae4e25d /home ext4 rw,relatime,data=ordered 0 2
# /dev/sda3
UUID=659e5bcf-b34b-4083-b8e5-e336fdd20c3d /boot ext4 rw,relatime,data=ordered 0 2
# /dev/sda2
UUID=a576bed1-929a-4ea5-b771-6b2e3b2e3808 none swap defaults 0 0
root@archiso / # cat /mnt/boot/grub/grub.cfg | grep "root"
set root='lvmid/x8VegQ-OKr6-kNNk-HwHe-xxi1-Ecdt-W9Ydj2/q8LxrZ-PXmf-K2Sl-7SNl-DlsF-IZ3s-2m2eHw'
search --no-floppy --fs-uuid --set=root --hint='lvmid/x8VegQ-OKr6-kNNk-HwHe-xxi1-Ecdt-W9Ydj2/q8LxrZ-PXmf-K2Sl-7SNl-DlsF-IZ3s-2m2eHw' 4b28d500-8ed3-4fe5-ad26-97fbb01f979b
search --no-floppy --fs-uuid --set=root 4b28d500-8ed3-4fe5-ad26-97fbb01f979b
set root='hd0,gpt3'
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 659e5bcf-b34b-4083-b8e5-e336fdd20c3d
search --no-floppy --fs-uuid --set=root 659e5bcf-b34b-4083-b8e5-e336fdd20c3d
linux /vmlinuz-linux root=UUID=4b28d500-8ed3-4fe5-ad26-97fbb01f979b rw quiet
set root='hd0,gpt3'
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 659e5bcf-b34b-4083-b8e5-e336fdd20c3d
search --no-floppy --fs-uuid --set=root 659e5bcf-b34b-4083-b8e5-e336fdd20c3d
linux /vmlinuz-linux root=UUID=4b28d500-8ed3-4fe5-ad26-97fbb01f979b rw quiet
set root='hd0,gpt3'
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 659e5bcf-b34b-4083-b8e5-e336fdd20c3d
search --no-floppy --fs-uuid --set=root 659e5bcf-b34b-4083-b8e5-e336fdd20c3d
linux /vmlinuz-linux root=UUID=4b28d500-8ed3-4fe5-ad26-97fbb01f979b rw quiet
root@archiso / # cat /mnt/etc/mkinitcpio.conf| grep "HOOKS"
# HOOKS
# This is the most important setting in this file. The HOOKS control the
# order in which HOOKS are added. Run 'mkinitcpio -H <hook name>' for
# HOOKS="base"
# HOOKS="base udev autodetect block filesystems"
# HOOKS="base udev block filesystems"
# HOOKS="base udev block mdadm encrypt filesystems"
# HOOKS="base udev block lvm2 filesystems"
HOOKS="base udev autodetect modconf block lvm2 filesystems keyboard fsck"
Last edited by garrio (2014-05-18 00:42:36)Efka wrote:when i was installing Arch, i installed grub on /dev/sda and my sda (gpt )was - sda1 (ext4)for / and sda2(ext4) for /home so when grub is installed it is installed into SDA ( or im wrong? ) but not into sda1 or sda2, but when i was doing my install i didnt made /boot ext4 partition (sda3 ext4 659e5bcf-b34b-4083-b8e5-e336fdd20c3d /mnt/boot) . i think u trying to mount grub into ext4 partition. is this right ? if yes... is it how it suposed to be ?
Sorry, im newbie ( dont take my advice seriously ), but im very curious about his, because once i couldnt install grub as well so i went for syslinux instead , and i know i will have one more fresh install of arch to do, so im curious
Hi Efka, I used grub-install and specified "/dev/sda" for argument. What I understand is that the sda is the identifier for the hard disk where all the sdaX reside. And if you look into the output of my lsblk, you will see that there is one partition sda1 that has no filetype, label and UUID on display; that is actually the bios boot partition where, as I understand, the grub code embeds itself.
We can have different partition scheme to deploy and having a separate partition for /boot is just my personal preference ans it should work as well. -
I am currently trying to dual boot Windows 8 and Arch Linux. I have Windows 8 installed on my first boot device and Arch installed as per the Beginner's Wiki to my second boot device (both SSD's, sdb and sdc, respectively).
lsblk:
sda [RAID controlled by dedicated card]
sda1 128M
sda2 3.7T
sdb
sdb1 300M
sdb2 100M
sdb3 128M
sdb4 232.4G
sdc
sdc1 500M
sdc2 20G /
sdc3 10G /var
sdc4 200G /home
sdc5 235.3G (spare)
Everything appears to be installed and configured correctly, and I have installed GRUB and gummiboot after GRUB did not work. This was partly do to me having to change some bios settings so that secure boot was disabled, or at least set to "Other OS". At an earlier point I actually wiped my /boot and re-installed Arch (which I believe only replaced missing files) and re-installed grub and re-generated the configuration file.
Now, the GRUB menu shows properly on boot with my Arch and Windows entries and I am able to boot into Arch fine. However, now when I select MS Windows, Grub tells me that it cannot find the chainload command. Is it supposed to be just 'chain', perhaps?
In my /etc/grub.d/40_custom file I added two menu entries, one for Arch Linux and one for MS Windows.
menuentry "Arch Linux" {
set root=(hd2,2)
linux /boot/vmlinuz-linux
initrd /boot/initrd.img
# This was added as per the advice at: http://unix.stackexchange.com/questions … gpt-system
menuentry "MS Windows" {
insmod part_gpt
insmod search_fs_uuid
insmod ntfs
insmod chain
search --fs-uuid 3A781C97781C544B --set=root --hint-bios=hd1,gpt4 --hint-efi=hd1,gpt4 --hint-baremetal=ahci1,gpt4
chainload (${root})/Windows/Boot/EFI/bootmgfw.efi
What could this be?
Thank you for any and all suggestions!!I'm not opposed to gummiboot, like I said it was my first choice, but as I encountered problems I took the guide advice and tried GRUB. If I can get GRUB to work and it increases my understanding, I would be all for it. I'm definitely familiar with Linux, but I don't have extensive experience with GRUB and EFI.
What is the best way to use gummiboot? Uninstall GRUB or install them side-by-side?
Here is the output of parted -l:
parted -l]http://www.hrtmn.net/Images/parted.png
And here is the output of lsblk:
parted -l]http://www.hrtmn.net/Images/lsblk.png
bootmgfw.efi:
parted -l]http://www.hrtmn.net/Images/bootmgfw.png
Moderator edit: Redacted huge images
Last edited by ewaller (2015-04-16 04:41:27) -
[SOLVED]Grub-Install can't Find Kernel and/or initrd, mkinitcpio Fails
Hi all,
I have recently installed Arch on my new build (with UEFI firmware). I successfully set up xorg, alsa/pulseaudio, xfce, etc... things were looking pretty good. Then, I tried to blacklist the pcspkr in order to silence the annoying beep every time I selected "Log Out" inside xfce. I executed
mkinitcpio -p linux
and was presented with the following errors:
==> Building image from preset: 'default'
-> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> ERROR: specified kernel image does not exist: `/boot/vmlinuz-linux'
==> Building image from preset: 'fallback'
-> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> ERROR: specified kernel image does not exist: `/boot/vmlinuz-linux`
There were no such files anywhere on /boot. I tried doing
find / -name vmlinuz-linux
and nothing was found. I wasn't quite sure why that was happening, but I tried uninstalling/reinstall grub (grub-common and grub2-efi-x86_64). I installed grub to /boot using
grub-install --directory=/usr/lib/grub/x86_64-efi --target=x86_64-efi --efi-directory=/boot --bootloader-id="Arch Linux" --boot-directory=/boot --recheck --debug
and then generated /boot/grub/grub.cfg. I tried rebuilding the initramfs again but got the same error. I was tired and frustrated so I removed the old grub efi entry with
efibootmgr -b 0 -B
and then went to sleep.
I didn't have the chance to turn the computer back on until tonight... I was then presented with a grub2 shell. Since I didn't know where the kernel/initrd were located I tried
set root=(hd1,gpt1)
chainloader +1
but grub told me
error: invalid EFI file path
So that's about it. It appears that grub-mkconfig is having trouble locating the kernel/initrd so it doesn't make any entries, dropping me right into a shell. I've tried booting up with my installation USB and chrooting in and reinstalling grub again but nothing seems to work. So what I'd like to try to do is just boot up into my system and then modify add the grub boot entries entries I want... but I just can't figure out what's causing all these issues.
Sorry if I mess up any terminology... still learning the ropes here. Thanks for any input.
Last edited by cogeary (2012-09-17 05:35:51)DSpider wrote:
==> ERROR: specified kernel image does not exist: `/boot/vmlinuz-linux'
Probably because you have a separate boot partition (not just the 512 MB "UEFISYS" FAT32 partition), which you forgot to mount (in fstab).
Post your /etc/fstab.
Thank you for your reply!
However, I do not have a separate boot partition apart from the "UEFISYS" partition. Here is my fstab:
# UUID=3ec307aa-0ead-4d33-b292-42bbe783d6ee
/dev/sda2 / ext4 rw,relatime,data=ordered 0 1
# UUID=B192-6C57
/dev/sda1 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 2
When I first looked at the fstab I saw that both of the entries repeated themselves. This was because I had even tried reformatting /boot so I had to generate a new fstab, but for some reason I used ">> /mnt/etc/fstab" rather than "> ..."
So I executed
genfstab /mnt > /mnt/etc/fstab
and reinstalled grub, but still no difference... mkinitcpio fails and I reboot to a grub shell.
Last edited by cogeary (2012-09-16 18:15:51)
Maybe you are looking for
-
After just 3 hour of my first activation of iPad mini 16 GB wifi the screen gradualy go black and then completly turns black and the backlit still on I see just a part of the status bar I try to take a screen shoot while the issue happening (the atta
-
Incoming mail error in window XP
Hi, I have an issue in outlook 2007 or 2010 in windows XP machines. Receiving' reported error (0x800CCC1A) : 'Your server does not support the connection encryption type you have specified. Try changing the encryption method. Contact your mail server
-
Weird change in appearance of all tools in CS3
Suddenly, I am getting a dark square overlaying all my tools in CS3. The longer I hold the tool over the image, the darker and more opaque it gets, especially if there are large black areas in the image. I reset all my tools, dumped my preferences, w
-
How to remove all the users personalization at once?
Hello, I would like to remove all the personalization the users have made in their portal display (for example, theme). How do I do it? Roy
-
Can I use RoboHelp to support localization and generate help files in multiple languages?
Hi, Can I use RoboHelp to support localization and generate help files in multiple languages? Can I define a layout or template for RoboHelp to insert localized strings into the template and generate a localized help file? Thanks!