Use grub to loop mount iso

From ArchBang

Jump to: navigation, search
(Created page with "You will need a usb key/drive at least 1gb partitioned and formatted to ext4 and boot flag is set (vfat does not work with recent versions of archbang newer releases will!) The ...")
Line 9: Line 9:
   sudo blkid
   sudo blkid
-
This is the output I get with my usb drive plugged in
+
This is the output I get with my usb drive plugged in:
-
   /dev/sdb1: LABEL="Transcend" UUID="218243c2-e515-406a-a467-3e2e48954779" TYPE="ext4"  
+
   /dev/sdb1: LABEL="Transcend" UUID="218243c2-e515-406a-a467-3e2e48954779" TYPE="ext4"
 +
 
 +
Can of course use uuid:
 +
 
 +
  /dev/sdb1: UUID="7287-250B" TYPE="vfat" 
 +
 
 +
You must of course change by-label with by-uuid (see grub.cfg below)
Make a note of drive device name and label (you add/change it using e2label ext2/3/4 or mlabel for vfat)
Make a note of drive device name and label (you add/change it using e2label ext2/3/4 or mlabel for vfat)
Line 33: Line 39:
     # change <device_label> to suit your device and archisolabel if using arch media
     # change <device_label> to suit your device and archisolabel if using arch media
     linux (loop)/arch/boot/x86_64/vmlinuz img_loop=$FILE img_dev=/dev/disk/by-label/<device label> archisolabel=ARCHBANG archisobasedir=arch
     linux (loop)/arch/boot/x86_64/vmlinuz img_loop=$FILE img_dev=/dev/disk/by-label/<device label> archisolabel=ARCHBANG archisobasedir=arch
-
     # for Vesa mode... add: xorg=visa nomodeset
+
     # for Vesa use xorg=vesa nomodeset for uuid replace by-label /dev/disk/by-uuid/<uuid>
     initrd (loop)/arch/boot/x86_64/archiso.img
     initrd (loop)/arch/boot/x86_64/archiso.img
   }
   }

Revision as of 13:38, 2 May 2014

Personal tools