Changeset 1885 in MondoRescue for branches/2.2.5/mindi/rootfs
- Timestamp:
- Mar 2, 2008, 12:38:35 AM (16 years ago)
- Location:
- branches/2.2.5/mindi/rootfs
- Files:
-
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.5/mindi/rootfs/README
r1611 r1885 6 6 which may be found at <http://www.mondorescue.org>. 7 7 8 This CD (or, this set of floppy disks)contains the tools required to do8 This media image contains the tools required to do 9 9 basic system maintenance, e.g. formatting, moving files, mounting partitions. 10 10 -
branches/2.2.5/mindi/rootfs/sbin/find-and-mount-cdrom
r1826 r1885 75 75 exit 0 76 76 fi 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; 79 78 if [ "`grep "using-cdstream yes" /tmp/mondo-restore.cfg`" ] ; then 80 79 LogIt "Because you are using cdstream, I won't try to mount CD." 81 80 exit 0 82 81 fi 83 mount /dev/fd0 -t ext2 -o ro /mnt/floppy 2> /dev/null84 if [ "$?" -eq "0" ] ; then85 umount /mnt/floppy 2> /dev/null86 exit 187 else88 LogIt "Please go to another PC, mount this CD and copy the data disk images" 189 LogIt "from the CD's /images directory to blank 1.44MB floppy disks. You should" 190 LogIt "use something like 'dd if=/mnt/cdrom/images/mindi-data-1.img of=/dev/fd0'" 191 LogIt "for the first data disk, mindi-data-2.img for the second, and so on." 192 LogIt "(If you are already booting from a floppy, please ignore this message.)" 193 exit 294 fi95 82 96 97 98 83 LogIt "Unable to find and mount your CD-ROM" 1 84 LogIt "You probably miss the correct driver to support your CD-ROM drive" 1 85 exit 2 -
branches/2.2.5/mindi/rootfs/sbin/init
r1863 r1885 124 124 LogIt "$tapedev failed to act as extended data disk for booting." 1 125 125 LogIt "Please specify an alternate tape device," 1 126 LogIt "or hit <Enter> to boot from CD/floppies." 1126 LogIt "or hit <Enter> to boot from another media." 1 127 127 echo -en "---> " 128 128 read tapedev … … 140 140 if [ "$res" -ne "0" ] ; then 141 141 cd / 142 LogIt "Failed to use tape as extended datadisk. Reverting to floppies." 1143 HandleCDROM orFloppies142 LogIt "Failed to use tape as extended datadisk. Reverting to another media." 1 143 HandleCDROM 144 144 res=$? 145 145 else … … 155 155 156 156 157 HandleCDROM orFloppies() {157 HandleCDROM() { 158 158 # Just in case we have an iLO ensure we will map it correctly 159 159 echo "$DENY_MODS" | grep -q "usb-storage " … … 186 186 LogIt "OK, I am running on a CD-ROM. Good." 3 187 187 CD_MOUNTED_OK=yes 188 elif [ "$res" -eq "1" ] ; then 189 LogIt "OK, I am running on floppies. Good." 3 190 CD_MOUNTED_OK="" 191 else 192 LogIt "OK, I am falling back to floppy mode." 3 193 LogIt "(You lay not have the right drivers" 3 194 LogIt "to support the hardware on which we are running)" 3 195 LogIt "That means you'll have to copy the data disk images from" 3 196 LogIt "the CD/hard disk/whatever to physical 1.44MB disks and" 3 197 LogIt "insert them, one after the other. Please see the manual." 3 198 LogIt "The images are in /images on the CD, or /root/images/mindi" 3 199 LogIt "on your hard disk. Your archives are probably fine but" 3 200 LogIt "your tape streamer and/or CD-ROM drive are eccentric. :-)" 3 188 else 189 LogIt "You probably not have the right drivers" 3 190 LogIt "to support the hardware on which we are running" 3 191 LogIt "Your archives are probably fine but" 3 192 LogIt "your tape streamer and/or CD-ROM drive are unsupported at that point." 3 201 193 CD_MOUNTED_OK="" 202 194 fi … … 619 611 mount -o remount rw / 620 612 [ ! "$GROOVY" ] && Die "I'm not groovy!" 621 for i in $GROOVY /mnt/ floppy /mnt/cdrom /mnt/isodir /var/local/petris /tmp/isodir; do613 for i in $GROOVY /mnt/cdrom /mnt/isodir /var/local/petris /tmp/isodir; do 622 614 mkdir -p $i 623 615 done … … 698 690 ExtractDataDisksAndLoadModules 699 691 else 700 HandleCDROM orFloppies692 HandleCDROM 701 693 ExtractDataDisksAndLoadModules 702 694 # We need to get here exported variables from start-nfs … … 781 773 else 782 774 LogIt "backup-media-type is not specified in config file." 783 LogIt "I think this CD/floppyhas no archives on it."775 LogIt "I think this media has no archives on it." 784 776 fi 785 777 if grep "RESTORE" /proc/cmdline > /dev/null 2> /dev/null ; then -
branches/2.2.5/mindi/rootfs/sbin/untar
r1734 r1885 14 14 # ---------------------- main ---------------------- 15 15 16 mountpoint=/ mnt/floppy16 mountpoint=/dev/null 17 17 [ -e "/tmp/CDROM-LIVES-HERE" ] && mountpoint=/mnt/cdrom/images 18 18 [ "$#" -eq "2" ] || Die "untar <tarball> <untar_to>" … … 22 22 if [ -e "/tmp/CDROM-LIVES-HERE" ] ; then 23 23 [ -e "$tarball" ] || LogIt "Can't find CD's $tarball" 1 24 else25 while [ ! -f "$tarball" ] ; do26 echo -e -n "Please insert data (floppy) disk #$diskno and press ENTER."27 read line28 mount /dev/fd0 -t ext2 -o ro $mountpoint29 [ -f "$tarball" ] || umount $mountpoint ; # unmount if tarball not on disk30 echo -en "Working..."31 done32 24 fi 33 25
Note:
See TracChangeset
for help on using the changeset viewer.