You are not logged in.

#1 2015-09-02 06:32:41

outfit
Member
Registered: 2015-09-02
Posts: 18

[SOLVED] installing arch on asus zenbook ux305

Hi,
I am having trouble getting arch installed on my zenbook.
I am a beginer and am sorry for this formating, I am handwriting it on family computer.
I am trying to dual boot with windows and made my partitions with gparted.
after creating arch bootable USB I get it to load up and use parted program

# parted -l (some output)


1               105MB             fat32             EFI system partition boot,               boot, esp
2                16.8MB                                Microsoft reserved partition            msftres
3                 42.9GB            ntfs              Basic Data partition                        msftres
4                 107GB             ntfs              Basic Data partition                        msftdata
6                 21.5GB           ext4
7                 32.2GB           ext4                 
5                 472GB            ntfs                Basic data partition                        diag

I would like my arch install to be on sda6
and my arch /home to be on sda 7
sda 3 is my windows install
sda 4 will be a place to store windows apps that i can get to from my arch install
sda 1 is the EFI partition I believe I am not supposed to touch (this is a bit new to me, I do not remember this when i did this a while back)

I go about the arch install
and when I get to mounting part I do:

# mount /dev/sda6 /mnt
# mkdir -p /mnt/boot
# mount /dev/sda1 /mnt/boot               ????????
                                                             is this correct????

I continue...
# cat /mnt/etc/fstab

     # /dev/sda6
     UUID=........                  /              ext4           rw,relatime,data=ordered           01

     # /dev/sda7
     UUID=.............             /home     ext4            rw,relatime,data=ordered           02

     # /dev/sda1
     UUID=..........                /boot        vfat            rw,relatime,fmask=002,dmask=002,codepage=437,iso8859-1,shortname=mixed,errors=remount-ro         02


HERE IS THE PROBLEM I AM HAVING:

# grub-mkconfig -o /boot/grub/grub.cfg

Generating grub configuration file ...
/run/lvm/lvmetad.socket: connect failed: No such file or directory
WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
[3804.394141] FAT-fs (sda2): bogus number of reserved sectors
[.....] squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on sda2
[...]   EXT4-fs (sda2): VFS: Can't find ext4 filesystem
[...]    EXT4-fs (sda2): VFS: Can't find ext4 filesystem
[...]    ntfs: (device sda2): read_ntfs_boot_sector(): Primary boot sector is invalid
"............................................................................." Mount option errors=recover not used. Aborting without trying to recover
".............................................................................." Not an NTSF volume


When I finish the install and reboot my machine this is what I get:

grub>

One thing I did notice is when I hit F2 and go into BIOS
I get a boot option:
arch_grub (PO: Micron_....)

I can change boot order to USB or windows and I can still get into windows 10
i did not mess up my windows 10 install...

Now when i go back into arch usb install and mount /dev/sda6 to /mnt
I get what looks like an arch install
Any advice would be great, Thanks.

Last edited by outfit (2015-09-06 19:27:11)

Offline

#2 2015-09-02 07:11:52

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,744
Website

Re: [SOLVED] installing arch on asus zenbook ux305

If you run `grub-mkconfig` with no arguments, does it generate a configuration file?

Same errors as this thread: https://bbs.archlinux.org/viewtopic.php?id=201671

EDIT: The Beginner's Guide suggests using gummiboot/systemd-boot and only recommends GRUB if that doesn't work.

Have you tried using gummiboot/systemd-boot?

https://wiki.archlinux.org/index.php/Systemd-boot

EDIT2: Please post the exact command that you used to install GRUB.

Last edited by Head_on_a_Stick (2015-09-02 07:14:09)

Offline

#3 2015-09-02 07:22:50

boban_dj
Member
Registered: 2015-03-17
Posts: 150

Re: [SOLVED] installing arch on asus zenbook ux305

Use code tags,
when you only want sda6 "/" (arch install) and sda7 "home" partitions, why you mount boot? If you want boot on separate partition make a partition and mount it.
Also why you want Arch to boot from the windows bootloader /dev/sda1, this is for windows.

Grub will manage the bootloading not Windows.
When you install Arch you will see and can access all the windows partitions as well.
So correct steps for your situation:

# mount /dev/sda6 /mnt
# mkdir -p /mnt/home
# mount /dev/sda7 /mnt/home

Offline

#4 2015-09-02 07:55:01

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,429

Re: [SOLVED] installing arch on asus zenbook ux305

@boban_dj: he needs to mount boot because grub needs to put its install there!

@outfit: Your mounts were ok, though mounting /home like boban_dj suggests makes sense. The arch genfstab script will then do the fstab config for you.
You can use the efi partition as /boot too, but you need to tell grub during the install. Have a look at: https://wiki.archlinux.org/index.php/GR … all_method
you will notice the different path for grub-mkconfig. Besides be aware that your efi partition may get too small sometime being used as /boot as well because of Linux kernels. If you split /boot to a separate partition, mount the efi partition as /mnt/boot/efi before grub-install.

Offline

#5 2015-09-02 08:11:42

boban_dj
Member
Registered: 2015-03-17
Posts: 150

Re: [SOLVED] installing arch on asus zenbook ux305

Sorry, yes Strike0 is correct

Offline

#6 2015-09-02 09:03:58

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED] installing arch on asus zenbook ux305

That "Alternative install method" is specifically for when the ESP is not mounted at /boot. The --boot-directory=$esp argument doesn't change anything when $esp==/boot.

What the OP needs to do (and maybe already did) is use the (normal) method for UEFI systems. We don't know yet which command was used.

Last edited by Raynman (2015-09-02 09:25:02)

Offline

#7 2015-09-02 13:42:14

outfit
Member
Registered: 2015-09-02
Posts: 18

Re: [SOLVED] installing arch on asus zenbook ux305

I used the following command to install grub:

# grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=arch_grub --recheck

when I boot to the usb I perform these commands:


# wifi-menu
   ... get on no problem
# timedatectl set-ntp true
# mount /dev/sda6 /mnt
# mount /dev/sda7 /mnt/home

# cd /mnt/boot/
# ls
grub(directory)         initramfs-linux-fallback.img         initramfs-linux.img                     vmlinuz-linux

#  cd /mnt/boot/grub
# ls
grub.cfg        grub.cfg            grub.cfg.example

This is where I am not understanding what I am doing.
I just mounted this /dev/sda1 right on the /mnt/boot directory which had other stuff in it before (this could not be right but now it shows)

#mount /dev/sda1 /mnt/boot
#cd /mnt/boot
#ls
EFI   grub

#ls EFI
arch_grub      Boot       Microsoft       \\ all directories

#ls grub
fonts        grub.cfg         grub.cfg.example         grub.cfg.pacsave        grubenv        locale          themes         x86_64-efi

Offline

#8 2015-09-02 14:06:23

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED] installing arch on asus zenbook ux305

So you didn't have the ESP mounted at /boot when the linux package was installed and it seems one of your grub-mkconfig runs ended up writing to the boot directory on your root partition as well, but it seems grub was correctly installed to the ESP.

You have to move the kernel and initramfs images to the ESP (temporarily mount it somewhere other than /boot). You can remove the grub directory (with only .cfg files in it). Then mount ESP at /boot again. I think you'll want to rerun grub-mkconfig so that it can detect the kernel that was hidden before. According to the wiki you have to be chrooted into your Arch installation for this autodetection to work correctly.

And please you code tags when posting commands/output/file contents.

Last edited by Raynman (2015-09-02 14:07:49)

Offline

#9 2015-09-02 15:47:16

outfit
Member
Registered: 2015-09-02
Posts: 18

Re: [SOLVED] installing arch on asus zenbook ux305

I made a temp directory mounted the ESP moved the kernel and initramfs images to it.
unmounted it then remounted it /mnt/boot
I chrooted into my arch install

[root@archiso boot]# ls
EFI     grub     initramfs-linux-fallback.img     initramfs-linux.img     vmlinux
[root@archiso/]#  grub-mkconfig -o /boot/grub/grub.cfg

Gernerating grub configuration file ...
Found llinux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
Found fallback initramfs image: /boot/initramfs-linux-fallback.img
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
[3122.....] FAT-fs (sda2): VFS: Can't find ext4 filesystem
[1322.....] squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on sda2
[1322.....] EXT4-fs (sda2): VFS: Can't find ext4 filesystem
[1322.....] EXT4-fs (sda2): VFS: Can't find ext4 filesystem
[1322.....] EXT4-fs (sda2): VFS: Can't find ext4 filesystem
[1322.....] ntsf: (device sda2): read_ntfs_boot_sector(): Primary boot sector is invalid.
[1322.....] ntsf: (device sda2): read_ntfs_boot_sector(): Mount option errors=recover not used. Aborting without trying to recover.
[1322.....] ntsf: (device sda2): ntfs_fill_super(): Not an NTFS volume.
done

Is it possible to get Grub to work on this laptop or am I going to have to use Systemd-boot ?
If I am going to try Systemd-boot what files can I remove from the ESP drive and not ruin the Windows install?
I prefer Grub if possible.
Advice of things for me to read to further my knowledge of UEFI would be nice.
I am trying to learn about this yet it is a bit hard for me to understand.
Thanks.

Last edited by outfit (2015-09-02 18:39:38)

Offline

#10 2015-09-02 19:55:00

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,744
Website

Re: [SOLVED] installing arch on asus zenbook ux305

outfit wrote:

Advice of things for me to read to further my knowledge of UEFI would be nice.

https://www.happyassassin.net/2014/01/2 … work-then/

Please answer my first question.

You can try systemd-boot without touching any files in the ESP.

Be sure to *read* the ArchWiki page I linked above.

Offline

#11 2015-09-02 20:09:49

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,429

Re: [SOLVED] installing arch on asus zenbook ux305

outfit wrote:

I used the following command to install grub:

# grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=arch_grub --recheck

and that's one parameter missing according to the wiki link I posted above.

Offline

#12 2015-09-02 20:42:41

outfit
Member
Registered: 2015-09-02
Posts: 18

Re: [SOLVED] installing arch on asus zenbook ux305

After work, before I try anything, I will spend a few hours reading all the links posted above.
Thanks again.

Offline

#13 2015-09-03 01:20:17

hotpepperguy
Member
From: Australia
Registered: 2015-05-29
Posts: 20

Re: [SOLVED] installing arch on asus zenbook ux305

Hello,

I would also give rEFInd a try. For UEFI systems, I find rEFInd to be an excellent boot manager, with, in my opinion, clear advantages over GRUB2.

http://www.rodsbooks.com/refind/

The documentation is, at times, a hellish read, but worth it in the end. I had all sorts of troubles with GRUB2 back when I first started with UEFI systems. Someone pointed me towards rEFInd, and I've never looked back. I'm at the point where I dread having to use GRUB2 on BIOS systems.


HPG

Last edited by hotpepperguy (2015-09-03 01:20:36)

Offline

#14 2015-09-03 04:02:27

outfit
Member
Registered: 2015-09-02
Posts: 18

Re: [SOLVED] installing arch on asus zenbook ux305

Strike0 wrote:
outfit wrote:

I used the following command to install grub:

# grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=arch_grub --recheck

and that's one parameter missing according to the wiki link I posted above.


I added the --debug parameter and everything works fine. I am not sure how that will make a difference.
/dev/sda1 is mounted to /mnt/boot
(I did change root into the system before the grub install)

Next I use this command:

[root@archiso /]# grub-mkconfig -o /boot/grub/grub.cfg 

and I get the same output as before

According to the arch Beginner's guide if I have an intel CPU, microcode updates must be configured after installing the boot loader.
So,

[root@archiso /]# pacman -S intel-ucode

I then ran:

[root@archiso /]# grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=arch_grub --recheck --debug

This worked great

Then I run:

[root@archiso /]# grub-mkconfig -o /boot/grub/grub.cfg

Generating grub configuration file ...
Found Intel Microcode image
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
Found fallback initramfs image: /boot/initramfs-linux-fallback.img
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
[4941.....] FAT-fs (sda2): bogus number of reserved sectors
[4941.....] squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on sda2
[4941.....] EXT4-fs (sda2): VFS: Can't find ext4 filesystem
[4941.....] EXT4-fs (sda2): VFS: Can't find ext4 filesystem
[4941.....] EXT4-fs (sda2): VFS: Can't find ext4 filesystem
[4941.....] ntfs: (device sda2): read_ntfs_boot_sector(): Primary boot sector is invalid.
[4941.....] ntfs: (device sda2): read_ntfs_boot_sector(): Mount option errors=recover not used. Aborting without trying to recover
[4941.....] ntfs: (device sda2): ntfs_fill_super(): Not an NTFS volume.
done

I am going to read up more about this and keep trying with Grub.
I am fine trying a different boot loader I am just wanting to know what is going wrong here.

Offline

#15 2015-09-03 04:09:29

outfit
Member
Registered: 2015-09-02
Posts: 18

Re: [SOLVED] installing arch on asus zenbook ux305

The above did it!

The problem was the intel-ucode
Thanks so much for the help

Note: windows is not in the grub boot menu
Yet I am under the assumption that I have to do this manually next.
I have to read a bit before attempting this.
           
So I guess this is more or less solved.
I just hope I get grub to recognize the windows system.
Another day...

Last edited by outfit (2015-09-03 05:42:41)

Offline

#16 2015-09-03 08:36:16

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED] installing arch on asus zenbook ux305

Offline

#17 2015-09-03 18:29:44

outfit
Member
Registered: 2015-09-02
Posts: 18

Re: [SOLVED] installing arch on asus zenbook ux305

Raynman wrote:

Yes I installed os-prober during system install

I ran

[root@host ~]# grub-mkconfig -o /boot/grub/grub.cfg

This time it worked.

It is a little strange. It did not work during install when I rooted into the system.
It did work when I rebooted into my new system.

So, for those installing arch on a zenbook ux305
I left the Windows EFI  partition alone. (just shrunk sda2 with gparted)
I followed the Beginners' guide step by step (Don't forget the intel-ucode)
I had to run

[root@host ~]# grub-mkconfig -o /boot/grub/grub.cfg

One more time after booting into my new arch install
Windows is now an option on the Grub Menu.

Thanks for the help.

Offline

#18 2015-09-04 19:07:00

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,429

Re: [SOLVED] installing arch on asus zenbook ux305

Great! I've never used os-prober; it probably just means it could not enumerate the (non-mounted) ntfs partition in the chroot correctly. Anyhow, sorted .. enjoy your Arch experience.

Offline

Board footer

Powered by FluxBB