xfs
[Top] [All Lists]

Re: Patch for mkbootdisk and large floppy support

To: Seth Mos <knuffie@xxxxxxxxx>
Subject: Re: Patch for mkbootdisk and large floppy support
From: Simon Matter <simon.matter@xxxxxxxxxxxxxxxx>
Date: Thu, 10 May 2001 08:16:23 +0200
>received: from mobile.sauter-bc.com (unknown [10.1.6.21]) by basel1.sauter-bc.com (Postfix) with ESMTP id 37A5A57306; Thu, 10 May 2001 08:22:04 +0200 (CEST)
Cc: linux-xfs@xxxxxxxxxxx, tduffy@xxxxxxxxxxxx
Organization: Sauter AG, Basel
References: <4.3.2.7.2.20010509132758.02d5fb10@xxxxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
Hi Seth,

Sorry, this was my fault. I did not use the -s parameter on syslinux.
Now I changed /sbin/mkbootdisk as you mentioned and everything works
perfect! I tried it on different machines and they are all booting well.

Greetings
Simon

Seth Mos schrieb:
> 
> Hi,
> 
> This patch alters the behaviuor of the --device option of mkbootdisk.
> If this option is set it will fdformat the floppy using the given device
> and run syslinux with the -s option.
> 
> I tested this with /dev/fd0u1680 and it boots on 3 kinds of dell optiplex
> machines and my Dell inspiron notebook.
> YMMV using larger devices like /dev/fd0u1722 and the like. And make sure
> you use decent floppy's because they are not made for this. At least it
> proves the truth in my .sig
> 
> --- /sbin/mkbootdisk    Thu Feb  8 23:48:15 2001
> +++ mkbootdisk  Wed May  9 11:34:16 2001
> @@ -8,6 +8,7 @@
>   unset kernel
>   device=/dev/fd0
>   unset verbose
> +unset fdformat
>   unset witheth
>   unset mkinitrdargs
>   unset compact
> @@ -32,6 +33,7 @@
>          --device)
>              shift
>              device=$1
> +           fdformat=true
>              ;;
>          --mkinitrdargs)
>              shift
> @@ -141,12 +143,14 @@
>   }
> 
>   [ -n "$verbose" ] && echo -n "Formatting $device... "
> +[ -n "$fdformat" ] && fdformat $device
>   mkdosfs -I $device > /dev/null || {
>       echo "Failed to format $device" >&2
>       exit 1
>   }
> 
> -syslinux $device
> +[ -n "$fdformat" ] && syslinux -s $device
> +[ -z "$fdformat" ] && syslinux $device
>   [ -n "$verbose" ] && echo "done."
> 
>   rm -rf $MOUNTDIR
> 
> Good luck with using it. I know I will.
> 
> Cheers
> --
> Seth
> Every program has two purposes one for which
> it was written and another for which it wasn't
> I use the last kind.

-- 
Simon Matter              Tel:  +41 61 695 57 35
Fr.Sauter AG / CIT        Fax:  +41 61 695 53 30
Im Surinam 55
CH-4016 Basel             [mailto:simon.matter@xxxxxxxxxxxxxxxx]



<Prev in Thread] Current Thread [Next in Thread>