LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > AryaLinux
User Name
Password
AryaLinux This forum is for the discussion of AryaLinux.

Notices


Reply
  Search this Thread
Old 06-01-2016, 11:16 AM   #1
RAS-OS
Member
 
Registered: Jun 2016
Posts: 63

Rep: Reputation: Disabled
Problem with ./4.sh Grub install


I tired to install this and everything work fine until the end of 4sh when I got message can not install grub I386 something."failed to get canonical path of `none'".
The same goes when I type:

root [ /home/aryalinux ]# grub-mkconfig -o /boot/grub/grub.cfg
/sbin/grub-probe: error: failed to get canonical path of `none

There has been no question for passwords.
I restarted and remove USB but there has been no new OS. I was installing on same sda3 (sda4,5,6,7,8) device where elementary OS sda6 is but new OS is at two different dev7 and dev8 as swap. What should I do now go over again?
It 86-64 disk installation.

Last edited by RAS-OS; 06-01-2016 at 11:41 AM.
 
Old 06-02-2016, 06:14 AM   #2
chandrakant
AryaLinux Maintainer
 
Registered: Aug 2014
Posts: 195

Rep: Reputation: Disabled
###FOR MBR###

This is not expected actually. Usually this error happens when the virtual filesystems are not mounted and grub-install or grub-mkconfig is used. Anyways please try the following:

Boot into the Live Disk and run the following in a terminal:

sudo su
cd /root
cd scripts
./enteral.sh

You would be prompted to enter the root partition and swap partition names, go ahead and enter /dev/sda7 as root part and /dev/sda8 as swap partition(assuming you specified /dev/sda7 as root and /dev/sda8 as swap initially). Now you would be chrooted into the newly built OS. Now run:

cd /sources
./4.sh

That should start the 4.sh script from where it left. In case it takes you through till the end, you would have grub installed and all OS names shown. In case that does not work out, you can go ahead and do:

grub-install /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg

passwd
passwd <username> # username is the username you gave in the beginning.

This would put the bootloader in place and once you boot into the new system and log in, you can do:

cd /sources
./4.sh

And then complete the 4.sh script

Last edited by chandrakant; 06-02-2016 at 06:36 AM.
 
Old 06-02-2016, 06:24 AM   #3
chandrakant
AryaLinux Maintainer
 
Registered: Aug 2014
Posts: 195

Rep: Reputation: Disabled
###FOR GPT###

Oh I forgot to ask. Is your device partitioned as MBR or GPT. Follow the above instructions in case its MBR.
In case its GPT, enter chroot as mentioned above and then you need to first add few lines to /etc/fstab:

cat >> /etc/fstab <<EOF
$EFIPART /boot/efi vfat defaults 0 1
efivarfs /sys/firmware/efi/efivars efivarfs defaults 0 1
EOF

In the above snippet, replace $EFIPART with the EFI partition name. You can see the EFI partition name by doing an fdisk:

fdisk /dev/sda

Now go ahead and do:

grub-install --target=x86_64-efi --efi-directory=/boot/efi \
--bootloader-id="$OS_NAME $OS_VERSION $OS_CODENAME" --recheck --debug

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

In the snippet above replace $OS_NAME $OS_VERSION $OS_CODENAME with the OS Name, OS version and Codename(anything you like).

passwd
passwd <username> # username is the username you gave in the beginning.

This would put the bootloader in place and once you boot into the new system and log in, you can do:

cd /sources
./4.sh

Last edited by chandrakant; 06-02-2016 at 06:36 AM.
 
Old 06-02-2016, 07:15 AM   #4
RAS-OS
Member
 
Registered: Jun 2016
Posts: 63

Original Poster
Rep: Reputation: Disabled
I have tried to install it again but the same problem I get this:
007-efibootmgr.sh
Installing for i386-pc platform.
grub-install: warning: File system `ext2' doesn't support embedding.
grub-install: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
grub-install: error: will not proceed with blocklists.

I will try your advice although I have no idea is it MBR or GPT although default splash is in GRUB from elementary OS and I also have windows 8 as well.
Everything is on one dev/sda physical disk.
 
Old 06-02-2016, 07:30 AM   #5
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,535

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
I would suggest you read through the link below on dual/multi-booting with newer windows. If you have windows 8 and it was pre-installed it is almost certainly installed UEFI and that would mean your other operating systems need to be as well. How to determine that as well as some other basics on UEFI are explained at the link below.

https://help.ubuntu.com/community/UEFI

If your default splash on boot is from your Elementary install, why not boot it and run: sudo update-grub
 
Old 06-02-2016, 07:35 AM   #6
chandrakant
AryaLinux Maintainer
 
Registered: Aug 2014
Posts: 195

Rep: Reputation: Disabled
Did you change partition table and start the build without rebooting? Try rebooting. The warning you're talking about shows up when you try doing install-grub on a hard disk where rebooting had not been done after changing the Partition table
 
Old 06-02-2016, 07:37 AM   #7
chandrakant
AryaLinux Maintainer
 
Registered: Aug 2014
Posts: 195

Rep: Reputation: Disabled
Reboot into the builder disk and then follow the steps I posted above
 
Old 06-02-2016, 07:44 AM   #8
RAS-OS
Member
 
Registered: Jun 2016
Posts: 63

Original Poster
Rep: Reputation: Disabled
I was able to install grub based on

grub-install /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg

passwd
passwd <username> # username

and now I can go to login into new OS but when I try it says (some numbers) Timeout waiting hardware interupt.

What now?

And bytheway I can not see Elementary OS any more.

Last edited by RAS-OS; 06-02-2016 at 07:48 AM.
 
Old 06-02-2016, 08:31 AM   #9
chandrakant
AryaLinux Maintainer
 
Registered: Aug 2014
Posts: 195

Rep: Reputation: Disabled
One thing is not clear to me. Are you able to log into the new OS? I mean can you enter root and password or the username and password and you get to the shell prompt?

And when you say you cannot see elementary any more do you mean in the grub menu?

Either ways, please do this:

1. Boot into the builder disk
2. Open up a terminal and enter the following commands:

sudo su
cd /root/scripts
./enteral.sh

When you are asked the root partition name, specify your Elementary OS's root partition name. For home and swap just press enter. This would chroot you into elementary and show the bash prompt. In case your elementary OS's /boot is in a different partition, mount it using:

mount <boot partition> /boot

Now enter:

grub-install /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg

If that would work fine, then you would get Elementary's grub back with elementary and other grub entries in place. Then you can log into the new OS and can try running 4.sh from /sources.
 
Old 06-02-2016, 08:38 AM   #10
chandrakant
AryaLinux Maintainer
 
Registered: Aug 2014
Posts: 195

Rep: Reputation: Disabled
I'm also online in aryalinux11@gmail.com in case you want to chat and resolve this quickly.
 
Old 06-02-2016, 09:44 AM   #11
RAS-OS
Member
 
Registered: Jun 2016
Posts: 63

Original Poster
Rep: Reputation: Disabled
I'm installing it for the third time now.

I was not able to login . It was just pop up username and than sometimes even before I finished typing username he would come up with Timeout waiting hardware interrupt. in the middle of typing it.

I will try your advice with elementary.

Will see what will happen.
 
Old 06-02-2016, 09:48 AM   #12
chandrakant
AryaLinux Maintainer
 
Registered: Aug 2014
Posts: 195

Rep: Reputation: Disabled
Oh. I guess the message comes up when you are at the console and possible when you are typing either the username or password. Those are some kernel messages which may come up. You can ignore them and continue typing. I know they make it difficult to type but they would not have any effect on your typing. Or better still, when these messages come up, you can do a Ctrl+Alt+f2 or Ctrl+Alt+f3 to get to another VT and try logging in from there.
 
Old 06-02-2016, 02:01 PM   #13
RAS-OS
Member
 
Registered: Jun 2016
Posts: 63

Original Poster
Rep: Reputation: Disabled
After 3 install the same story. I was able to login into new OS but not with the username but with the root and new password. Any way i was able to run ./4.sh but it came up with completely the same argument as USB install which
aryalinux [ ~ ]$ sudo su
root [ /home/aryalinux ]# cd /root
root [ ~ ]# cd scripts
root [ ~/scripts ]# ./enteral.sh
Enter the root partition where AryaLinux was built : /dev/sda7
Enter the home partition used while building AryaLinux : /dev/sda7
Enter the swap partition used while building AryaLinux : /dev/sda8
mount: /dev/sda7 mounted on /mnt/lfs.
mkdir: cannot create directory ‘/mnt/lfs/home’: File exists
mount: /dev/sda7 mounted on /mnt/lfs/home.
mkswap: /dev/sda8: warning: wiping old swap signature.
Setting up swapspace version 1, size = 7.9 GiB (8488218624 bytes)
no label, UUID=a905e956-f3fd-4135-870e-00ccc8b136da
swapon /dev/sda8
swapon: /dev/sda8: found swap signature: version 1d, page-size 4, same byte order
swapon: /dev/sda8: pagesize=4096, swapsize=8488222720, devsize=8488222720
mount: /dev bound on /mnt/lfs/dev.
mount: devpts mounted on /mnt/lfs/dev/pts.
mount: proc mounted on /mnt/lfs/proc.
mount: sysfs mounted on /mnt/lfs/sys.
mount: tmpfs mounted on /mnt/lfs/run.
root:/# cd /sources
root:/sources# ./4.sh
Installing for i386-pc platform.
grub-install: warning: File system `ext2' doesn't support embedding.
grub-install: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
grub-install: error: will not proceed with blocklists.

root:/sources#
 
Old 06-02-2016, 09:14 PM   #14
chandrakant
AryaLinux Maintainer
 
Registered: Aug 2014
Posts: 195

Rep: Reputation: Disabled
I believe there is something wrong in the partition names that you might have specified in the beginning. In fact in the snippet you have pasted above, I can see you are entering the same name for the home and root partition. Ideally that should not be done. You need to enter something for the home partition only if its a different partition. In /dev/sda7 inside /sources you would have a file build-properties. This contains all the arguments you specified when the first script starts. So you need to log into the new OS either by booting into it or by booting into the Builder DVD and chrooting into into and specify right values therein:

Boot into Builder Disk

sudo su
cd /root
cd /scripts
./enteral.sh

Now enter the following(Please note that you need not specify the home partition as it is not a separate partition and simply press enter):

Enter the root partition where AryaLinux was built : /dev/sda7
Enter the home partition used while building AryaLinux :
Enter the swap partition used while building AryaLinux : /dev/sda8

cd /sources
vi build-properties

These are the properties that are important:

DEV_NAME="<something>"
ROOT_PART="<something>"
SWAP_PART="<something>"
HOME_PART="<something>"

Please check that DEV_NAME is not a partition. Its should be a device. i.e. Its should not be like /dev/sda7. It should be /dev/sda. From what I understand, your values should be:

DEV_NAME="/dev/sda"
ROOT_PART="/dev/sda7"
SWAP_PART="/dev/sda8"
HOME_PART=""

You need to modify it to these values and then run:

./4.sh

In case the values seem right to you, please post the details of this file.
 
1 members found this post helpful.
Old 06-04-2016, 12:21 PM   #15
RAS-OS
Member
 
Registered: Jun 2016
Posts: 63

Original Poster
Rep: Reputation: Disabled
I manage to do this but now I have this problem with xorg server

The following packages would be installed:

mesa xbitmaps x7app xcursor-themes x7font sgml-common unzip docbook docbook-xsl libxslt xkeyboard-config libgpg-error libgcrypt pixman libepoxy nspr zip js polkit systemd xorg-server libevdev mtdev x7driver twm xterm xclock xinit libva-drivers xserver-meta

Are you sure? (y/N) y
Executing /var/cache/alps/scripts/mesa.sh
File 'mesa-11.1.1.tar.xz' already there; not retrieving.
--2016-06-04 19:18:10-- http://www.linuxfromscratch.org/patc...xdemos-1.patch
Resolving www.linuxfromscratch.org... 192.155.86.174, 2600:3c01::f03c:91ff:fe70:25e8
Connecting to www.linuxfromscratch.org|192.155.86.174|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2016-06-04 19:18:10 ERROR 404: Not Found.

Error occured in execution of /var/cache/alps/scripts/mesa.sh
Aborting
Internet is working
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
12.4 new install grub 2 boot problem with grub put on it's own partition not on MBR james2b Ubuntu 14 12-07-2012 09:34 AM
grub install problem cluelessme Linux From Scratch 10 03-16-2009 11:46 PM
Problem with GRUB (does not install) winterhunter Linux - General 5 03-20-2007 01:09 AM
installing GRUB 2, grub-install problem r00tb33r Linux - Software 1 02-26-2007 09:42 PM
grub-install problem arunshivanandan Linux - General 2 09-01-2003 12:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > AryaLinux

All times are GMT -5. The time now is 10:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration