LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 01-13-2006, 11:59 PM   #1
emalossi
LQ Newbie
 
Registered: Jan 2006
Posts: 20

Rep: Reputation: 0
mkbootdisk script is failing


I'd much appreciate some guidance with this. I'm trying to create a boot disk for Fedora Core4. I'm running mkbootdisk and it is failing with this exit...

+ echo 'Insert a disk in /dev/fd0. Any information on the disk will be lost.'
Insert a disk in /dev/fd0. Any information on the disk will be lost.
+ echo -n 'Press <Enter> to continue or ^C to abort: '
Press <Enter> to continue or ^C to abort: + read aline

+ realdev=/dev/fd0
++ /bin/mktemp /tmp/mkbootdisk.XXXXXX
+ device=/tmp/mkbootdisk.K22258
+ dd if=/dev/zero of=/tmp/mkbootdisk.K22258 bs=1024 count=1440
+ mountopts=loop
+ '[' -n '' ']'
+ mkdosfs -r 16 -I /tmp/mkbootdisk.K22258
/tmp/mkbootdisk.K22258: Permission denied
+ echo 'Failed to format /tmp/mkbootdisk.K22258'
Failed to format /tmp/mkbootdisk.K22258
+ rmdir /tmp/mkbootdisk.O22222
+ '[' -n /dev/fd0 ']'
+ rm -f /tmp/mkbootdisk.K22258
+ exit 1


I am running the script as root, and mktemp does succeed in creating the temp file with +rw for owner. Why would I be getting "permission denied"?

Thanks for the help!
Eric
 
Old 01-14-2006, 12:27 AM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
I don't know about your script but, the 2.6 kernel ( FC4 has this ) is too big for a floppy disk.
You can put it on a cdrom ....
Code:
Create a linux boot image: mkbootdisk --iso --device boot.iso `uname -r`

Then, burn the iso to cdrom.
 
Old 01-14-2006, 12:53 AM   #3
emalossi
LQ Newbie
 
Registered: Jan 2006
Posts: 20

Original Poster
Rep: Reputation: 0
This might help, but I have to ask for some clarification. The purpose of this is to be able to restore my boot sector after I reinstall the dualboot OS.

The instructions I'm reading state that you have to point mkbootdisk to the version, but it doesn't seem that you're doing that here. Is this boot image going to be able to provide recovery of my existing boot sector?

Also after running it I don't seem to be left with much:

+ mkisofs -A 'Red Hat Linux Boot CD' -V 'Red Hat Linux Boot CD' -J -R -T -quiet -o boot.iso -b isolinux/i solinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table /tmp/mkbootdisk.o23733
Unknown file type (unallocated) /tmp/mkbootdisk.o23733/.. - ignoring and continuing.
+ rm -rf /tmp/mkbootdisk.o23733
+ '[' -n '' ']'
+ '[' 0 -eq 1 ']'
+ exit 0

No ISO?

Thanks
 
Old 01-14-2006, 08:31 AM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
The purpose of this command is to use mkbootdisk to create a bootable linux cdrom. This cdrom will boot into the system which you created it on.
This is the entire command.
Code:
mkbootdisk --iso --device boot.iso `uname -r`
Quote:
The instructions I'm reading state that you have to point mkbootdisk to the version
The part with `uname -r` is a quick and ease way of pointing to the kernel version.

Once you run that command, an iso image is created called boot.iso .
Use that iso to create the cdrom. On my system, it would look like this....
Code:
cdrecord -v dev=ATA:1,0,0 -data boot.iso
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Startup script failing at bootup, works when logged on cmowl Linux - Enterprise 1 10-20-2005 10:22 PM
Bash backup script failing using tar and --newer option saldkj Programming 3 03-12-2005 12:03 PM
eth1 failing on boot, IEEE firewire card driver failing, help jackuss_169 Linux - Laptop and Netbook 5 03-05-2005 07:34 AM
LILO install failing, Boot failing, but Installation fine. sramelyk Slackware 9 08-23-2003 02:37 PM
X failing to load; AddScreen/InitScreen failing for driver 0 weblion Linux - Software 1 08-01-2002 06:14 AM

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

All times are GMT -5. The time now is 06:48 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