Welcome to the new location of Alien's Wiki, sharing a single dokuwiki install with the SlackDocs Wiki.

Welcome to Eric Hameleers (Alien BOB)'s Wiki pages.

If you want to support my work, please consider a small donation:

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
slackware:usbboot [2009/11/27 12:43] – Fixed a typo in an example command, thanks to 'Hence'. alienslackware:usbboot [2009/11/27 13:20] (current) – Use haX instead of hda to prevent disaster when copying/pasting alien
Line 141: Line 141:
  
 <note warning> <note warning>
-Take care about which device actually is your USB stick !!! The next command will render all present data on ''/dev/sda'' inaccessible by deleting it's partition table!!!+Take care about which device actually is your USB stick !!! The next command will render all present data on ''/dev/sdX'' inaccessible by deleting it's partition table!!!
 </note> </note>
  
   * First, wipe the bootsector of the USB stick: <code>   * First, wipe the bootsector of the USB stick: <code>
-dd if=/dev/zero of=/dev/sda bs=512 count=1+dd if=/dev/zero of=/dev/sdX bs=512 count=1
 </code> </code>
  
   * Then, create a new FAT16 partition (//type '6'// in fdisk terminology) on the stick and write a FAT32 (vfat) filesystem on it: <code>   * Then, create a new FAT16 partition (//type '6'// in fdisk terminology) on the stick and write a FAT32 (vfat) filesystem on it: <code>
-fdisk /dev/sda <<EOF+fdisk /dev/sdX <<EOF
 n n
 p p
Line 159: Line 159:
 w w
 EOF EOF
-mkdosfs -F32 /dev/sda1 +mkdosfs -F32 /dev/sdX1 
-</code> The 10 lines starting with "''fdisk /dev/sda <<EOF''" and ending with the single word "''EOF''" are actually one single command spread over ten lines, //including// the two empty lines. This format is called a [[wp>heredoc|here-document]]. It allows us to use a command which expects interactive input (fdisk) non-interactively, in a shell script for instance. If you're uncomfortable with it you can just run <code>fdisk /dev/sda</code> and create a partition interactively :-)+</code> The 10 lines starting with "''fdisk /dev/sdX <<EOF''" and ending with the single word "''EOF''" are actually one single command spread over ten lines, //including// the two empty lines. This format is called a [[wp>heredoc|here-document]]. It allows us to use a command which expects interactive input (fdisk) non-interactively, in a shell script for instance. If you're uncomfortable with it you can just run <code>fdisk /dev/sdX</code> and create a partition interactively :-)
  
 Install Slackware using a bootable USB stick ()
SlackDocs