You are not logged in.
In short: Does not work. It's the same error as before, the same message "Using load options..."
Well it was a funny thing to get the script file from the USB stick into the /home folder but I got it.
I cleaned the /efi folder by this:
$ cd /boot/efi
$ rm -r ./*
$ ls
$ (meaning it was indeed empty)
But there was a change this time. In rEFInd, there were 2 options:
boot Windows entry something something
Boot Arch Linux from 30 GB volume
So.. that was that. Hope I didn't make an error... ![]()
(Win 7 still works as usual, selected "Windows Boot Manager" in the main UEFI menu as usual, so all is fine on that front.)
Last edited by jones (2013-04-06 15:54:18)
Offline
In short: Does not work.
Well it was a funny thing to get the script file from the USB stick into the /home folder but I got it.
I cleaned the /efi folder by this:$ cd /boot/efi $ rm -r ./* $ ls $(meaning it was indeed empty)
But there was a change this time. In rEFInd, there were 2 options:
boot Windows entry something something
Boot Arch Linux from 30 GB volume
So.. that was that. Hope I didn't make an error...
(Win 7 still works as usual, selected "Windows Boot Manager" in the main UEFI menu as usual, so all is fine on that front.)
Just for checking! Did you remove refind_linux.conf from /boot???
Post the contents of it, because everything seems to be ok now!!! You are able to select the arch kernel, so refind setup is ok.
When you select windows entry does it boots windows?
When you boot from the arch entry what appends? Exactlly???
Last edited by s1ln7m4s7r (2013-04-06 16:03:06)
Offline
Just for checking! Did you remove refind_linux.conf from /boot???
Um, nope. I looked into the file and there was some generic text in it. I'll delete it, empty the /efi folder again and run your script again.
Post the contents of it, because everything seems to be ok now!!! You are able to select the arch kernel, so refind setup is ok.
The contents are at this moment:
efi initramfs-linux-fallback.img initramfs-linux.img vmlinuz-linuxAfter I ran the script, I'll come back and will edit this post to answer the rest of your questions unless you have some objection and think I should do something differently? ![]()
Last edited by jones (2013-04-06 16:09:37)
Offline
s1ln7m4s7r wrote:Just for checking! Did you remove refind_linux.conf from /boot???
Um, nope. I looked into the file and there was some generic text in it. I'll delete it, empty the /efi folder again and run your script again.
Post the contents of it, because everything seems to be ok now!!! You are able to select the arch kernel, so refind setup is ok.
The contents are at this moment:
efi initramfs-linux-fallback.img initramfs-linux.img vmlinuz-linuxAfter I ran the script, I'll come back and will edit this post to answer the rest of your questions unless you have some objection and think I should do something differently?
???? Is this the contents of refind_linux.conf ????
efi initramfs-linux-fallback.img initramfs-linux.img vmlinuz-linuxYour /boot/refind_linux.conf is completelly messed up, that shouldn't be there! There should be something like this:
## This file should be present in the same directory as the EFISTUB kernel and initramfs files
## More info at http://www.rodsbooks.com/refind/linux.html , http://www.rodsbooks.com/efi-bootloaders/efistub.html
"Boot with defaults" "root=PARTUUID=XXXXXXXX rootfstype=XXXX ro"
"Boot to terminal" "root=PARTUUID=XXXXXXXX rootfstype=XXXX ro systemd.unit=multi-user.target"EDIT:
One of the plus of UEFI is that you can have as many bootloaders as you want. If you want you can also install grub.
To install it you just need to repeat these steps:
Put it on Arch Linux Live USB stick
plug the USB stick into PC
boot the machine
mount partitions (root, home, efi) under /mnt just like in beguinners guide
then go to the mount point of your usb and run it directlyYou don't need to load efivars n'or chroot, because the script will do that for you!!!
grub_efi : https://docs.google.com/file/d/0BzpUlii … sp=sharing
Last edited by s1ln7m4s7r (2013-04-06 16:59:15)
Offline
It just deleted the refind_linux.conf file, your question earlier sounded like I should.
But I copied it there again from /usr/lib/refind/seomthing. So...
cd /boot/
nano refind_linux.conf=> The contents is now exactly like that text you posted.
Can I run the script again?
Last edited by jones (2013-04-06 16:22:23)
Offline
It just deleted the refind_linux.conf file, your question earlier sounded like I should.
But I copied it there again from /usr/lib/refind/seomthing. So...
cd /boot/ nano refind_linux.conf=> The contents is now exactly like that text you posted.
Can I run the script again?
Yes, and if you don't want to delete and install everything you can edit the script and comment with "#" all lines but these:
rootpart=$(df -k /)
uuidcode=$(blkid -s UUID -o value $rootpart)
typecode=$(blkid -s TYPE -o value $rootpart)
sed -i "s/root=PARTUUID=XXXXXXXX rootfstype=XXXX ro/root=UUID=$uuidcode rootfstype=$typecode ro/" "/boot/refind_linux.conf"and run it
Last edited by s1ln7m4s7r (2013-04-06 16:31:21)
Offline
Ok so I ran the rEFInd script again. I did neither delete nor edit anything.
First some general info: It boots into rEFInd just find. There are 2 buttons/icons, it's like before and upon setting the focus on the first one (Windows icon), it says
Boot Microsoft EFI boot from SYSTEM
and the second one is some weird penguin I have never seen before (jk) and it says...
Boot boot\vmlinuz-linux from 30 GiB ext4 volume
When you select windows entry does it boots windows?
Yes. It's like this:
First a black screen with this text appears
Starting Bootmgfw
Using load option ' 'efi
(not really sure about the 2nd line) and then the typical Windows logo with "Windows is starting..." appears.
When you boot from the arch entry what appends? Exactlly???
Something SPECTULAR happened: A blonde bikini model (like in Baywatch) came out of my screen-ok wait I must have trailed off here. Okey okey just kidding. Alright, this is on the screen:
Starting vmlinuz-linux
Using load option 'root=UUID=1f226f11-94ad-4791-8a45-b2c6353dd9ab rootfstype=ext4 ro initrd=boot\initramfs-linux.img'
I just saw you edited your 2nd last post: About the GRUB method, I'll do that tomorrow morning. I wasn't able to go on my live USB stick via /dev/sdb1 (that's what it was) last time... I mean I couldn't mount it. It says it's already mounted or /mnt/usbstick does not exist. The second couldn't be the case, so I found the solution here. => I looked for the USB stick via
mountand found it under /run/something/ and went there. So you practically want me to run the script from wherever I can access the USB stick, did I get this right?
Offline
Ok so I ran the rEFInd script again. I did neither delete nor edit anything.
First some general info: It boots into rEFInd just find. There are 2 buttons/icons, it's like before and upon setting the focus on the first one (Windows icon), it saysBoot Microsoft EFI boot from SYSTEM
and the second one is some weird penguin I have never seen before (jk) and it says...
Boot boot\vmlinuz-linux from 30 GiB ext4 volume
s1ln7m4s7r wrote:When you select windows entry does it boots windows?
Yes. It's like this:
First a black screen with this text appearsStarting Bootmgfw
Using load option ' 'efi(not really sure about the 2nd line) and then the typical Windows logo with "Windows is starting..." appears.
When you boot from the arch entry what appends? Exactlly???
Something SPECTULAR happened: A blonde bikini model (like in Baywatch) came out of my screen-ok wait I must have trailed off here. Okey okey just kidding. Alright, this is on the screen:
Starting vmlinuz-linux
Using load option 'root=UUID=1f226f11-94ad-4791-8a45-b2c6353dd9ab rootfstype=ext4 ro initrd=boot\initramfs-linux.img'I just saw you edited your 2nd last post: About the GRUB method, I'll do that tomorrow morning. I wasn't able to go on my live USB stick via /dev/sdb1 (that's what it was) last time... I mean I couldn't mount it. It says it's already mounted or /mnt/usbstick does not exist. The second couldn't be the case, so I found the solution here. => I looked for the USB stick via
mountand found it under /run/something/ and went there. So you practically want me to run the script from wherever I can access the USB stick, did I get this right?
By what your saying Windows is working from refind menu, linux is booting fine (have you waited for a while to see if it boots into it?) if it does not then the problem may be really related to what srs5694, the maintainer of refind said in his post.
About grub, that's exactly what i meant, you can "cd" into your USB (normally under /run/archiso/something i think) and run the script after mounting your system partitions of course
Last edited by s1ln7m4s7r (2013-04-06 17:17:15)
Offline
Is "a while" sth like 30 secs or sth like 3 minutes? If so, I waited about ... say 20 seconds. Nothing changed. I could check again... tomorrow. ![]()
Before I do any of that new GRUB script thing, should I delete anything related to rEFInd?
Offline
Starting vmlinuz-linux Using load option 'root=UUID=1f226f11-94ad-4791-8a45-b2c6353dd9ab rootfstype=ext4 ro initrd=boot\initramfs-linux.img'
I'll reiterate what I wrote in post #17:
A hang at this point is almost certainly a symptom of this known (but not-yet-resolved) bug, which is discussed extensively in this forum thread. A workaround is known: Use my GNU-EFI-based binary build of rEFInd, available from the rEFInd downloads page (click the "variant package" link). Note those links; they don't always show up clearly on this forum.
Don't bother posting back until you've either tried this workaround or resolved the problem yourself in some other way (such as switching to GRUB 2); based on what I've seen on this forum, using the GNU-EFI build of rEFInd works for 80-90% of people, so trying other approaches without cause is a waste of everybody's time.
Offline
Is "a while" sth like 30 secs or sth like 3 minutes? If so, I waited about ... say 20 seconds. Nothing changed. I could check again... tomorrow.
Before I do any of that new GRUB script thing, should I delete anything related to rEFInd?
You don't have to delete nothing to install grub.
Offline
So, at first I removed the refind packages and folders I had installed/creater earlier and then downloaded the variant package from rodsbooks.com. That too did not work.
Then, with the help of s1ln7... who sent me this via email:
#!/bin/bash
# Arch Linux Installation Script
# Created by s1ln7m4s7r - Portugal
modprobe efivars
pacstrap /mnt grub-efi-x86_64 os-prober
arch-chroot /mnt /bin/bash -c 'sed -i "s/codepage=cp437/codepage=437/" "/etc/fstab"'
arch-chroot /mnt /bin/bash -c 'grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --recheck --debug'
arch-chroot /mnt /bin/bash -c 'mkdir -p /boot/grub/locale'
arch-chroot /mnt /bin/bash -c 'cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo'
arch-chroot /mnt /bin/bash -c 'echo "\EFI\arch_grub\grubx64.efi" > /boot/efi/startup.nsh'
arch-chroot /mnt /bin/bash -c "grub-mkconfig -o /boot/grub/grub.cfg"
rebootI managed to boot into Arch 2 days ago and did some basic things for setting it up but had to shut down quickly (had to leave). Big thanks to him again. ![]()
So I just rebooted using the arch_grub entry 3 minutes ago and now it is stuck at this screen:
/dev/sdb2: clean, 989128/98713kjsdf files, 819273/8723632 blocks
systemd-fsck[169]: dosfsck 3.0.16, 01 March 2013, FAT32, LFN
systemd-fsck[169]: /dev/sdb3: 69 files, 5606/130812 clusters
Welcome to emergency mode! After logging in, type "journalctl -xb" to view system logs, "systemctl reboot" to reboot, "systemctl default" to try agai nto boot into default mode.
Give root password for maintenance
(or type CTRL+D to continue):So upon entering the root password, nothing happened and I couldn't enter anything else. So I rebooted and then pressed CTRL+D and basically the same text appeared, starting at "systemd-fsk[169]" to "continue):". Then I entered my password again and got in as root.
Through googling and some reading (of which I probably did not even understood half) I entered systemctl --failed and got this:
UNIT LOAD ACTIVE SUB DESCRIPTION
boot.mount loaded failed failed /boot
[Then some descritopn of the table header]
1 loaded units listed. [Then some other random text]Also:
$ journalctl -xb
[lots of stuff]
Apr 10 17:40:50 localhost systemd[1]: boot.mount mount process exited, code=exited status=32
Apr 10 17:40:50 localhost systemd[1]: Failed to mount /boot.In this thread, the user remembers to update the files in /boot/efi/... however, I have not adopted to this method since it didn't work on my machine so this wouldn't be useful, right? What should I do?
Last edited by jones (2013-04-10 14:18:06)
Offline
Not that it's the same case for you, but in my case when I see this, it means I updated the Kernel, but didn;t copy it over to the EFI boot area. I can tell this is what it is because I get error messages about "vfat" being an unknown file system type. Do you see that a few lines earlier before the error message you have listed?
The way I fix that is enter the root password, navigate to /var/cache/pacman/pkg and rool back the Kernel (pacman -U <previous version>), reboot, reinstalled the latest kernel, the COPY over the new Kernel images.
YMMV.
Matt
"It is very difficult to educate the educated."
Offline
This is getting extremely confused and confusing.
Although I admire s1ln7m4s7r's willingness to help I do not think that providing scripts to "just run" helps. They are being run blindly with no understanding and, as a result, the user has no idea how to modify a method to try something different, for example. Everything in those scripts is on the wiki. It is just a question of reading it and following the instructions.
When you downloaded the alternative rEFInd binary, for example, you should have seen that it is *just* the .efi binary itself. That is, you need all of the other folders and config files you would use with Arch's official version. You *just* replace the binary. But if you have blindly run a script or typed commands to install Arch's version then you are unlikely to realise this and so unlikely to actually give the suggested work around a realistic possibility of success.
I know that is what that download is because I am bitten by the bug and I tried that work around. (Unfortunately, I am in the unlucky 10-20% for whom it fails, it seems.)
The same issue is probably happening with the script for installing grub. (I don't know what the startup.nsh file is for, by the way - I thought that was for removable media like USB sticks but still.) If you don't understand what the commands do, you won't understand the output and you will not know if something is wrong. Moreover, however trustworthy s1ln7m4s7r may be, once you start blindly running scripts - or blinding executing commands - which people give you on the net, sooner or later bad things are going to happen. Somebody is going to tell you to run sudo rm -rf /asterisk and you are going to do it.
Read the Beginners' Guide again.
Post fstab. Assuming you are using GPT, post gdisk -l. If not, post fdisk -l. Post grub.cfg.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline