خرید بک لینک

I use grub2's loopmount to directly boot the ISO. But have had issues with unmounting /device/ISO which even when installing from sdb to sda is mounted on sda.

But saved this as Dell seems to do something similar as a recovery on its Linux installed systems.
Dell with Ubuntu pre-installed loopmount ISO for recovery (see pastebin)
http://askubuntu.com/questions/73976...from-grub-menu

This will boot an ISO from a hard drive or any second drive or flash drive
ISO Booting with Grub 2 from Hard drive - drs305
https://help.ubuntu.com/community/Grub2/ISOBoot
Examples - you may copy & edit for your path & ISO version
https://help.ubuntu.com/community/Gr...OBoot/Examples
http://ubuntuforums.org/showthread.php?t=1549847
UEFI grub install and example grub boot stanzas, Also Windows
https://wiki.archlinux.org/index.php...boot_USB_drive

Pastebins seem to have a limited life. So posting Dell ISO recovery boot stanza.

Code:

### BEGIN /etc/grub.d/99_dell_recovery ###
menuentry "Restore Ubuntu 14.04 to factory state" {
        search --no-floppy --hint '(hd0,msdos3)' --set --fs-uuid 30E1-4FA3
        set uuid_options="uuid=30E1-4FA3"
        if [ -s /factory/common.cfg ]; then
            source /factory/common.cfg
        else
            set options="boot=casper automatic-ubiquity noprompt quiet splash"
        fi
        #Support starting from a loopback mount (Only support ubuntu.iso for filename)
        if [ -f /ubuntu.iso ]; then
            loopback loop /ubuntu.iso
            set root=(loop)
            set options="$options iso-scan/filename=/ubuntu.iso"
        fi
        if [ -n "${lang}" ]; then
            set options="$options locale=$lang"
        fi

        linux   /casper/vmlinuz.efi dell-recovery/recovery_type=hdd $uuid_options $options 
        initrd  /casper/initrd.lz
}
### END /etc/grub.d/99_dell_recovery ###

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 12 فروردين 1395 ساعت: 4:15

صفحه بندی