Unable to create bootable image using grub

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Bharath85
Posts: 4
Joined: Sun Oct 13, 2013 7:14 am

Unable to create bootable image using grub

Post 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
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Unable to create bootable image using grub

Post by Combuster »

Bharath85 wrote:blue on blue
Start with improving your reading skills and following forum rules and other instructions properly.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
egos
Member
Member
Posts: 612
Joined: Fri Nov 16, 2007 1:59 pm

Re: Unable to create bootable image using grub

Post 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
If you have seen bad English in my words, tell me what's wrong, please.
scdbackup
Posts: 20
Joined: Mon Oct 14, 2013 10:01 am
Location: Germany
Contact:

Re: Unable to create bootable image using grub

Post 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
scdbackup
Posts: 20
Joined: Mon Oct 14, 2013 10:01 am
Location: Germany
Contact:

Re: Unable to create bootable image using grub

Post 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.
Post Reply