Changeset 1581 in MondoRescue for branches/stable/mindi


Ignore:
Timestamp:
Jul 27, 2007, 2:11:55 AM (17 years ago)
Author:
Bruno Cornec
Message:

Continue to remove floppy support

Location:
branches/stable/mindi
Files:
1 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mindi/INSTALL

    r30 r1581  
    1919- locate your kernel and modules
    2020- put together a package of all the tools you are likely to need
    21 - generate some floppy disk images
     21- generate some boot images
    2222- offer to write the images to disks for you
    2323
  • branches/stable/mindi/distributions/conf/mindi.conf.dist

    r1573 r1581  
    1717# Size of the boot image
    1818#
    19 mindi_boot_size=8192
     19mindi_boot_size=16384
    2020
    2121#
     
    6565#
    6666mindi_tmp_dir="/tmp"
    67 
    68 #
    69 # Floppy Disk Device
    70 #
    71 mindi_fd_device="/dev/fd0"
    7267
    7368#
  • branches/stable/mindi/mindi

    r1578 r1581  
    8686USE_OWN_KERNEL="$mindi_use_own_kernel"
    8787MINDI_CACHE="$mindi_cache_dir"
    88 FORCE_DUAL_FLOPPIES="$mindi_dual_floppies"
    8988TMPDIR="$mindi_tmp_dir"
    90 FDDEVICE="$mindi_fd_device"
    9189USBDEVICE="$mindi_usb_device"
    9290TAPEDEV="$mindi_tape_device"
     
    31483146fi
    31493147if [ _"$MONDO_SHARE" = _"" ] && [ "$INTERACTIVE" = "yes" ] && [ "$ARCH" != "ia64" ] ; then
    3150     echo -en "Would you like to use LILO (instead of syslinux)\nfor your boot CD/floppies (y/[n]) ?"
     3148    echo -en "Would you like to use LILO (instead of syslinux)\nfor your boot image (y/[n]) ?"
    31513149    read ch
    31523150    if [ "$ch" = "y" ] || [ "$ch" = "Y" ] ; then
  • branches/stable/mindi/rootfs/README

    r998 r1581  
    66which may be found at <http://www.mondorescue.org>.
    77
    8 This CD (or, this set of floppy disks) contains the tools required to do
     8This CD (or image) contains the tools required to do
    99basic system maintenance, e.g. formatting, moving files, mounting partitions.
    1010
    11 If you used Mondo to make this CD (or set of floppies) then oh boy, are you in
     11If you used Mondo to make this CD (or image) then oh boy, are you in
    1212for some fun. To do a basic restore, type:-
    13 # mondo-restore
     13# mondorestore
    1414
    1515To edit the mountlist, type:-
  • branches/stable/mindi/rootfs/sbin/find-and-mount-cdrom

    r1158 r1581  
    7575    exit 0
    7676fi
    77 #mount /dev/fd0u1722 -t ext2 /mnt/floppy
    78 [ "$1" = "--second-try" ] && exit 1; # don't try to mount floppy drive
     77[ "$1" = "--second-try" ] && exit 1;
    7978if [ "`grep "using-cdstream=yes" /tmp/mondo-restore.cfg`" ] ; then
    8079    LogIt "Because you are using cdstream, I won't try to mount CD."
    8180    exit 0
    8281fi
    83 mount /dev/fd0 -t ext2 -o ro /mnt/floppy 2> /dev/null
    84 if [ "$?" -eq "0" ] ; then
    85     umount /mnt/floppy 2> /dev/null
    86     exit 1
    87 else
    88     LogIt "Please go to another PC, mount this CD and copy the data disk images" 1
    89     LogIt "from the CD's /images directory to blank 1.44MB floppy disks. You should" 1
    90     LogIt "use something like 'dd if=/mnt/cdrom/images/mindi-data-1.img of=/dev/fd0'" 1
    91     LogIt "for the first data disk, mindi-data-2.img for the second, and so on." 1
    92     LogIt "(If you are already booting from a floppy, please ignore this message.)" 1
    93     exit 2
    94 fi
    95 
    96 
    97 
    98 
  • branches/stable/mindi/rootfs/sbin/init

    r1478 r1581  
    123123        LogIt "$tapedev failed to act as extended data disk for booting." 1
    124124        LogIt "Please specify an alternate tape device," 1
    125         LogIt "or hit <Enter> to boot from CD/floppies." 1
     125        LogIt "or hit <Enter> to boot from CD." 1
    126126        echo -en "---> "
    127127        read tapedev
     
    138138
    139139    if [ "$res" -ne "0" ] ; then
    140     cd /
    141     LogIt "Failed to use tape as extended datadisk. Reverting to floppies." 1
    142     HandleCDROMorFloppies
    143     res=$?
     140        cd /
     141        LogIt "Failed to use tape as extended datadisk. Reverting to cd." 1
     142        HandleCDROM
     143        res=$?
    144144    else
    145 #   clear
    146     LogIt "Using tape as extended datadisk. Good." 3
    147     echo "Using tape as extd ddisk." > /tmp/TAPEDEV-HAS-DATA-DISKS
    148     res=0
     145    #   clear
     146        LogIt "Using tape as extended datadisk. Good." 3
     147        echo "Using tape as extd ddisk." > /tmp/TAPEDEV-HAS-DATA-DISKS
     148        res=0
    149149        CD_MOUNTED_OK=yes
    150150    fi
     
    154154
    155155
    156 HandleCDROMorFloppies() {
     156HHandleCDROM() {
    157157    find-and-mount-cdrom
    158158    res=$?
     
    167167        LogIt "OK, I am running on a CD-ROM. Good." 3
    168168        CD_MOUNTED_OK=yes
    169     elif [ "$res" -eq "1" ] ; then
    170         LogIt "OK, I am running on floppies. Good." 3
    171         CD_MOUNTED_OK=""
    172169    else
    173         LogIt "OK, I am falling back to floppy mode." 3
    174         LogIt "That means you'll have to copy the data disk images from" 3
    175         LogIt "the CD/hard disk/whatever to physical 1.44MB disks and" 3
    176         LogIt "insert them, one after the other. Please see the manual." 3
    177         LogIt "The images are in /images on the CD, or /var/cache/mindi" 3
    178         LogIt "on your hard disk. Your archives are probably fine but" 3
     170        LogIt "OK, I am unable to go on. You seem to be missing a driver" 3
     171        LogIt "Your archives are probably fine but" 3
    179172        LogIt "your tape streamer and/or CD-ROM drive are eccentric. :-)" 3
    180173        CD_MOUNTED_OK=""
     
    479472    ExtractDataDisksAndLoadModules
    480473else
    481     HandleCDROMorFloppies
     474    HandleCDROM
    482475    ExtractDataDisksAndLoadModules
    483476    # We need to get here exported variables from start-nfs
     
    563556else
    564557    LogIt "backup-media-type is not specified in config file."
    565     LogIt "I think this CD/floppy has no archives on it."
     558    LogIt "I think this media has no archives on it."
    566559fi
    567560echo -en "Type 'exit' to reboot the PC\n"
  • branches/stable/mindi/rootfs/sbin/untar-and-softlink

    r866 r1581  
    1414# ---------------------- main ----------------------
    1515
    16 mountpoint=/mnt/floppy
     16mountpoint=""
    1717[ -e "/tmp/CDROM-LIVES-HERE" ] && mountpoint=/mnt/cdrom/images
    1818[ "$#" -eq "3" ] || Die "untar-and-softlink <tarball> <untar_to> <softlink_to>"
     
    2323if [ -e "/tmp/CDROM-LIVES-HERE" ] ; then
    2424    [ -e "$tarball" ] || LogIt "Can't find CD's $tarball" 1
    25 else
    26     while [ ! -f "$tarball" ] ; do
    27         echo -e -n "Please insert data (floppy) disk #$diskno and press ENTER."
    28         read line
    29         mount /dev/fd0 -t ext2 -o ro $mountpoint
    30         [ -f "$tarball" ] || umount $mountpoint ; # unmount if tarball not on disk
    31         echo -en "Working..."
    32     done
    3325fi
    3426
Note: See TracChangeset for help on using the changeset viewer.