getting error grub2-mkrescue

Issues related to applications and software problems
Post Reply
knzzz
Posts: 157
Joined: 2017/02/25 12:41:42

getting error grub2-mkrescue

Post by knzzz » 2017/05/15 06:45:53

HI Team

When i try to create

grub2-mkrescue -o bootable.iso

getting error message :
grub2-mkrescue: warning: Your xorriso doesn't support ‘--grub2-boot-info’. Some features are disabled. Please use xorriso 1.2.9 or later..


kindly help on this issue.

scdbackup
Posts: 15
Joined: 2016/01/01 07:54:07

Re: getting error grub2-mkrescue

Post by scdbackup » 2017/05/15 16:51:42

Hi,

if the xorriso package of your operating system is too old, consider
to get and compile GNU xorriso:

Code: Select all

mkdir "$HOME"/xorriso
cd "$HOME"/xorriso
wget https://ftp.gnu.org/gnu/xorriso/xorriso-1.4.6.tar.gz

tar xzf xorriso-1.4.6.tar.gz
cd xorriso-1.4.6
./configure --prefix=/usr
make
This will produce a binary named ./xorriso/xorriso which can be run at
the place where you built it. Try:

Code: Select all

"$HOME"/xorriso/xorriso-1.4.6/xorriso/xorriso -version
This binary can then be used by grub-mkrescue:

Code: Select all

grub2-mkrescue -o bootable.iso --xorriso="$HOME"/xorriso/xorriso-1.4.6/xorriso/xorriso
(I know the program under the name "grub-mkrescue" without "2".
But if grub2-mkrescue wants to use xorrisofs option --grub2-boot-info then
it must be very similar to grub-mkrescue of GRUB 2.)

You may move "$HOME"/xorriso/xorriso-1.4.6/xorriso/xorriso to a more
convenient address as you like.

Have a nice day :)

Thomas

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: getting error grub2-mkrescue

Post by TrevorH » 2017/05/15 16:54:45

It's not too old, it's not part of the distro at all.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

scdbackup
Posts: 15
Joined: 2016/01/01 07:54:07

Re: getting error grub2-mkrescue

Post by scdbackup » 2017/05/15 17:12:09

Hi,

then GNU xorriso is the way to go.
It depends only on vanilla stuff like libc and libpthread.

Other not-so-vanilla stuff like development headers and runtime of libz,
libacl, libreadline is optional at configuration time and not needed for
the features used by grub-mkrescue.

(I wonder, though, why grub2-mkrescue complains about a missing option
when it misses the whole xorriso program.)

Have a nice day :)

Thomas

knzzz
Posts: 157
Joined: 2017/02/25 12:41:42

Re: getting error grub2-mkrescue

Post by knzzz » 2017/05/24 01:34:32

Hi

When i followed the above mentioned steps getting error.


[root@dk xorriso-1.4.6]# grub2-mkrescue -o bootable.iso --xorriso="$HOME"/xorriso/xorriso-1.4.6/xorriso/xorriso
grub2-mkrescue: warning: Your xorriso doesn't support ‘--grub2-boot-info’. Some features are disabled. Please use xorriso 1.2.9 or later..


i also tried to updated the xorriso with yum update xorriso its giving me message

No package xorriso available.
No packages marked for update

scdbackup
Posts: 15
Joined: 2016/01/01 07:54:07

Re: getting error grub2-mkrescue

Post by scdbackup » 2017/05/24 06:33:18

Hi,

Does the following xorriso run report its version ?

Code: Select all

"$HOME"/xorriso/xorriso-1.4.6/xorriso/xorriso -version
should put out this line and a few others

Code: Select all

GNU xorriso 1.4.6 : RockRidge filesystem manipulator, libburnia project.
Assuming that grub2-mkrescue stems from
http://git.savannah.gnu.org/cgit/grub.g ... mkrescue.c
let's try what it is supposed to do in function check_xorriso() as called
in line 598.

Code: Select all

          if (check_xorriso ("grub2-boot-info"))
Do you get the output line

Code: Select all

  --grub2-boot-info           Patch boot image at byte 2548
when you run

Code: Select all

"$HOME"/xorriso/xorriso-1.4.6/xorriso/xorriso -as mkisofs -help 2>&1 | fgrep grub2-boot-info
?


> i also tried to updated the xorriso with yum update xorriso its giving
> me message
> No package xorriso available.

Since grub-mkrescue unconditionally depends on xorriso, Centos should
package xorriso from source libisoburn if it packages grub-mkrescue.
Centos already seems to have the other two libraries libburn and libisofs,
albeit in well aged versions.


Have a nice day :)

Thomas

scdbackup
Posts: 15
Joined: 2016/01/01 07:54:07

Re: getting error grub2-mkrescue

Post by scdbackup » 2017/05/24 19:49:13

Hi,

can it be that the $HOME directory of the user who built xorriso
is not the $HOME of the user who runs grub2-mkrescue ?

In this case let the user who built show the full absolute path

Code: Select all

echo "$HOME"/xorriso/xorriso-1.4.6/xorriso/xorriso
and use that address with option --xorriso=

In my case it would be

Code: Select all

 
/home/thomas/xorriso/xorriso-1.4.6/xorriso/xorriso
Have a nice day :)

Thomas

knzzz
Posts: 157
Joined: 2017/02/25 12:41:42

Re: getting error grub2-mkrescue

Post by knzzz » 2017/06/01 02:44:33

Hi Thomas,

I tried with the steps which you have mentioned i doesn't help, can you tell me the difference between grub2-mkrescue command
and what is the need of core kernel we can see at the time of booting

Regards
Kanna

scdbackup
Posts: 15
Joined: 2016/01/01 07:54:07

Re: getting error grub2-mkrescue

Post by scdbackup » 2017/06/01 07:17:16

Hi,

since there is no xorriso provided by CentOS it should cause no
confusion with the package management if you install it systemwide.

As superuser go into the xorriso-1.4.6 directory and do

Code: Select all

make install
Aftwerwards, the normal users should get a few text lines from

Code: Select all

xorriso -version
If this works, then you can run grub2-mkrescue without giving the full
path of the xorriso binary:

Code: Select all

grub2-mkrescue -o bootable.iso

> can you tell me the difference between grub2-mkrescue command
> and what is the need of core kernel we can see at the time of booting

xorriso is not needed at boot time. It rather packs up the ISO 9660
filesystem image and equips it with boot entry points for the various
boot firmwares which may boot up the ISO.
With a bootable ISO for x86 computers the entry points are usually
ready for the following firmwares: BIOS, 32 bit x86 EFI, 64 bit x86 EFI.
The supported boot media are CD-ROM and hard disk (including USB sticks
and some memory card adapters).

xorriso installs an El Torito boot catalog pointing to BIOS boot image
and to the EFI System Partition, an MBR with x86 code for BIOS, and a
GPT partition table which points to the EFI System Partition.

The MBR code, the BIOS boot image, the EFI System Partition, and the
boot related files in the ISO are provided by GRUB.


Have a nice day :)

Thomas

Post Reply