Page 1 of 1

Unable to create bootable image using grub

Posted: Sun Oct 13, 2013 7:29 am
by Bharath85
Actually i'm a newbie to linux
i got everything right except in creating image file using grub
i wrote the following code

Code: Select all

grub-mkrescue -o myos.iso isodir
but it show me the following error

xorriso : NOTE : Encountered - or stdio:/dev/fd/1 as possible write target.
xorriso : NOTE : Redirecting nearly all text message output to stderr.
xorriso : NOTE : Disabling use of libreadline.
xorriso 0.4.8 : RockRidge filesystem manipulator, libburnia project.

Drive current: -outdev 'stdio:bhrtos.iso'
Media current: stdio file, overwriteable
Media status : is blank
Media summary: 0 sessions, 0 data blocks, 0 data, 5305m free
xorriso : FAILURE : -as mkisofs: Unknown option '--modification-date=2013101313082100'
xorriso : FAILURE : -as mkisofs: Unknown option '--embedded-boot'
Added to ISO image: file '/tmp.G4PjUFumSX'='/tmp/tmp.G4PjUFumSX'
xorriso : UPDATE : 1 files added in 1 seconds
xorriso : FAILURE : -as mkisofs: Unknown option '--protective-msdos-label'
xorriso : NOTE : -as mkisofs: Ignored option '-r'
Added to ISO image: directory '/'='/tmp/tmp.XaQ4YnudaC'
xorriso : FAILURE : -as mkisofs: Unknown option '--sort-weight'
xorriso : FAILURE : Cannot determine attributes of source file '/root/Desktop/0'
xorriso : sys : No such file or directory
xorriso : FAILURE : Cannot determine attributes of source file ''
xorriso : sys : No such file or directory
xorriso : FAILURE : -as mkisofs: Unknown option '--sort-weight'
xorriso : FAILURE : Cannot determine attributes of source file '/root/Desktop/1'
xorriso : sys : No such file or directory
Added to ISO image: directory '/'='/boot'
Added to ISO image: directory '/'='/root/Desktop/isodir'
xorriso : UPDATE : 456 files added in 1 seconds
xorriso : NOTE : Tolerated problem event of severity 'FAILURE'
xorriso : NOTE : Activating alleged isolinux boot image '/boot/grub/i386-pc/eltorito.img'
xorriso : NOTE : Creating El Torito boot catalog file '/boot/grub/i386-pc/boot.cat'
xorriso : NOTE : Tolerated problem event of severity 'FAILURE'

UNIX-SIGNAL: SIGSEGV errno= 0
xorriso : ABORT : Trying to shut down drive and library
xorriso : ABORT : Wait the normal burning time before any kill -9
xorriso : UPDATE : 0.17% done
xorriso : UPDATE : 0.17% done
xorriso : ABORT : Waiting for drive to finish ( 1 s, 4440 max)xorriso : UPDATE : 0.17% done
xorriso : ABORT : Waiting for drive to finish ( 2 s, 4440 max)xorriso : UPDATE : 0.17% done
xorriso : ABORT : Waiting for drive to finish ( 3 s, 4440 max)xorriso : UPDATE : 0.17% done
xorriso : ABORT : Waiting for drive to finish ( 4 s, 4440 max)
xorriso : ABORT : Program done. Even if you do not see a shell prompt.



please get me through this
thanks in advance

Re: Unable to create bootable image using grub

Posted: Sun Oct 13, 2013 2:08 pm
by Combuster
Bharath85 wrote:blue on blue
Start with improving your reading skills and following forum rules and other instructions properly.

Re: Unable to create bootable image using grub

Posted: Sun Oct 13, 2013 2:33 pm
by egos
Bharath85, you can make ISO image with modified Grub and Yoda's boot loader in Windows. Just get suitable core.img something like this:

Code: Select all

grub-mkimage -O i386-pc -o core.img biosdisk part_gpt part_msdos iso9660 fat ntfscomp ntfs ext2
Then convert core.img into SYS format and put SYS file (kernel.sys) in root directory of your image. If there will be a problem, I can make kernel.sys for you. Also put other data (iso9660.bin, boot/grub/grub.cfg, boot/grub/i386-pc) in root directory.

Now you can produce ISO image. For example:

Code: Select all

mkisofs -R -b iso9660.bin -no-emul-boot -o cdrom.iso content
Grub 2 understands Joliet extension so you can use -J instead -R as well. Moreover if you will find such method that turns off file name restrictions you can make ISO image without Joliet/RR extensions. For example:

Code: Select all

cdimage -n -y1 -bcontent\iso9660.bin content cdrom.iso

Re: Unable to create bootable image using grub

Posted: Mon Oct 14, 2013 10:24 am
by scdbackup
Hi,

i am the developer of xorriso.

> xorriso 0.4.8 : RockRidge filesystem manipulator, libburnia project.
> xorriso : FAILURE : -as mkisofs: Unknown option '--modification-date=2013101313082100'
> xorriso : FAILURE : -as mkisofs: Unknown option '--embedded-boot'

This version of xorriso is too old for grub-mkrescue.
Release 0.5.6 was the first one which is suitable.

Be invited to get the current release

http://www.gnu.org/software/xorriso/xor ... 3.2.tar.gz

and do

tar xzf xorriso-1.3.2.tar.gz
cd xorriso-1.3.2
./configure --prefix=/usr
make
./xorriso/xorriso -version

The result may be installed in /usr/bin (make install)
or used where it emerged. According to

http://www.gnu.org/software/grub/manual ... escue.html

the latter case would be

grub-mkrescue --xorriso=/...full.path.../xorriso-1.3.2/xorriso/xorriso -o myos.iso isodir


> UNIX-SIGNAL: SIGSEGV errno= 0

Ouch !

If this happens with xorriso-1.3.2, then please report it
as bug to [email protected] .


Have a nice day :)

Thomas

Re: Unable to create bootable image using grub

Posted: Wed Oct 16, 2013 3:20 am
by scdbackup
For the records:

Bharath85 confirmed in a message of Oct 15 2013, that grub-mkrescue is working with the current release of xorriso.