Re: [SLUG] making boot floppy 'no space left'
Effectively the mkbootdisk command builds the image in temp disk space then uses 'dd' (or cp?) to write to the floppy device. If either there's not enough space in /tmp or the floppy isn't formatted ok you're going to have problems. If /tmp is full firstly try deleting stuff then try creating /home/tmp with same permissions then mv /tmp /tmp.old; ln -s /home/tmp /tmp You're probably going to need at least half a meg of temp space before it does the compression. It looks more like the target system didn't have enough space. This usually means the floppy needs reformatting. man fdformat eg: fdformat /dev/fd0H1440 - frequently I find failures because a) the floppy drive is old/dirty/disused and secondly the media has been laying around gathering dust. Before you start, flip the drive door open and blow air into it to dislodge dust. Manually inspect the media for crap inside the jacket - it can damage the drive too. Did I mention I hate floppy drives? On Thu, 21 Dec 2006, Voytek Eymont wrote: I'm tryying to make a boot floppy on 1.44 media, I get: 'no space' is that space on floppy ? where am I going wrong ? # mkbootdisk --device /dev/fd0 2.6.9-42.0.3.EL Insert a disk in /dev/fd0. Any information on the disk will be lost. Press Enter to continue or ^C to abort: cp: writing `/tmp/mkbootdisk.sR3853/vmlinuz': No space left on device cp: writing `/tmp/mkbootdisk.sR3853/initrd.img': No space left on device cat: write error: No space left on device cat: write error: No space left on device 20+0 records in 20+0 records out # df | grep /tmp 1064312 37060973188 4% /tmp # ls -al /tmp total 2968 drwxrwxrwt 7 root root4096 Dec 21 12:48 . drwxr-xr-x 24 root root4096 Dec 21 12:13 .. drwxrwxrwt 2 root root4096 Dec 21 12:14 .font-unix drwxrwxrwt 2 root root4096 Dec 21 12:13 .ICE-unix drwx-- 2 root root 16384 Dec 19 23:36 lost+found drwx-- 2 root root4096 Dec 21 12:40 mc-root -rw--- 1 root root 1474560 Dec 21 12:48 mkbootdisk.di3864 drwx-- 2 root root4096 Dec 21 12:38 mkbootdisk.JY3692 -rw--- 1 root root 1474560 Dec 21 12:42 mkbootdisk.tO3735 -rw--- 1 root root1024 Dec 19 23:52 .rnd -- ---GRiP--- Grant Parnell - SLUG President LPIC-1 certified engineer EverythingLinux services - the consultant's backup tech support. Web: http://www.elx.com.au/support.php We're also busybits.com.au and linuxhelp.com.au and everythinglinux.com.au. Phone 02 8756 3522 to book service or discuss your needs or email us at paidsupport at elx.com.au ELX or its employees participate in the following:- OSIA (Open Source Industry Australia) - http://www.osia.net.au AUUG (Australian Unix Users Group) - http://www.auug.org.au SLUG (Sydney Linux Users Group) - http://www.slug.org.au LA (Linux Australia) - http://www.linux.org.au -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] making boot floppy 'no space left'
I think you will find that mkbootdisk is trying to write to a file which is basically a loop-mounted filesystem the size of the target floppy. Unfortunately I think your kernel is far too big to write to a floppy. You will need to create a minilmal kernel first to write to a floppy. (Unfortunately making boot floppies is pretty much old magic that I have forgotten - if I need a boot floppy this days I look for the one's supplied standard by most distros). Googling for mkbootdisk no space comes up with a number of links that have faced the same issue as yourself. Regards, Martin On 12/21/06, Voytek Eymont [EMAIL PROTECTED] wrote: I'm tryying to make a boot floppy on 1.44 media, I get: 'no space' is that space on floppy ? where am I going wrong ? # mkbootdisk --device /dev/fd0 2.6.9-42.0.3.EL Insert a disk in /dev/fd0. Any information on the disk will be lost. Press Enter to continue or ^C to abort: cp: writing `/tmp/mkbootdisk.sR3853/vmlinuz': No space left on device cp: writing `/tmp/mkbootdisk.sR3853/initrd.img': No space left on device cat: write error: No space left on device cat: write error: No space left on device 20+0 records in 20+0 records out # df | grep /tmp 1064312 37060973188 4% /tmp # ls -al /tmp total 2968 drwxrwxrwt 7 root root4096 Dec 21 12:48 . drwxr-xr-x 24 root root4096 Dec 21 12:13 .. drwxrwxrwt 2 root root4096 Dec 21 12:14 .font-unix drwxrwxrwt 2 root root4096 Dec 21 12:13 .ICE-unix drwx-- 2 root root 16384 Dec 19 23:36 lost+found drwx-- 2 root root4096 Dec 21 12:40 mc-root -rw--- 1 root root 1474560 Dec 21 12:48 mkbootdisk.di3864 drwx-- 2 root root4096 Dec 21 12:38 mkbootdisk.JY3692 -rw--- 1 root root 1474560 Dec 21 12:42 mkbootdisk.tO3735 -rw--- 1 root root1024 Dec 19 23:52 .rnd -- Voytek -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html -- Regards, Martin Martin Visser -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] making boot floppy 'no space left'
On Thu, December 21, 2006 11:11 pm, Martin Visser wrote: I think you will find that mkbootdisk is trying to write to a file which is basically a loop-mounted filesystem the size of the target floppy. Unfortunately I think your kernel is far too big to write to a floppy. thanks, Martin, yes, I eventually figured that out, the floppy was already full with whatever was written to it from start of mkbootdisk. I guess I don't really need a boot floppy disk, I probably should make a boot CD, though, the machine has no cd writer -- Voytek -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] making boot floppy 'no space left'
On Thursday 21 December 2006 21:54, [EMAIL PROTECTED] wrote: I think you will find that mkbootdisk is trying to write to a file which is basically a loop-mounted filesystem the size of the target floppy. Unfortunately I think your kernel is far too big to write to a floppy. thanks, Martin, yes, I eventually figured that out, the floppy was already full with whatever was written to it from start of mkbootdisk. I guess I don't really need a boot floppy disk, I probably should make a boot CD, though, the machine has no cd writer Actually, mustering all the grace of a mighty diplomat, this is a really dumb way to go smile When you (ordinarly) format a file system, bad blocks are mapped out, but when you make a bootable floppy EVERY SECTOR has to be correct. Your error message does not say disk full although that may come to pass, it does say after 20 sectors there was an error. Maybe 50% of 'reputable brand' floppies in a good drive will work. These days use a CD rom, usb flash, anything but a floppy. James -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] making boot floppy 'no space left'
I'm tryying to make a boot floppy on 1.44 media, I get: 'no space' is that space on floppy ? where am I going wrong ? # mkbootdisk --device /dev/fd0 2.6.9-42.0.3.EL Insert a disk in /dev/fd0. Any information on the disk will be lost. Press Enter to continue or ^C to abort: cp: writing `/tmp/mkbootdisk.sR3853/vmlinuz': No space left on device cp: writing `/tmp/mkbootdisk.sR3853/initrd.img': No space left on device cat: write error: No space left on device cat: write error: No space left on device 20+0 records in 20+0 records out # df | grep /tmp 1064312 37060973188 4% /tmp # ls -al /tmp total 2968 drwxrwxrwt 7 root root4096 Dec 21 12:48 . drwxr-xr-x 24 root root4096 Dec 21 12:13 .. drwxrwxrwt 2 root root4096 Dec 21 12:14 .font-unix drwxrwxrwt 2 root root4096 Dec 21 12:13 .ICE-unix drwx-- 2 root root 16384 Dec 19 23:36 lost+found drwx-- 2 root root4096 Dec 21 12:40 mc-root -rw--- 1 root root 1474560 Dec 21 12:48 mkbootdisk.di3864 drwx-- 2 root root4096 Dec 21 12:38 mkbootdisk.JY3692 -rw--- 1 root root 1474560 Dec 21 12:42 mkbootdisk.tO3735 -rw--- 1 root root1024 Dec 19 23:52 .rnd -- Voytek -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html