How To: Make an USB-boot-stick

Write tutorials here
There are more tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Please don't add support questions to tutorials,start your own thread in the appropriate sub-forum instead. Before you post please read this
Post Reply
User avatar
oobetimer
Level 7
Level 7
Posts: 1879
Joined: Tue Jun 01, 2010 12:53 pm
Location: Finland / above the Arctic Circle
Contact:

How To: Make an USB-boot-stick

Post by oobetimer » Mon Aug 09, 2010 12:21 pm

1. Umount USB

2. Check the media -->
sudo fdisk -l

3. Make a filesystem to the USB partition. An example /dev/sdb1 -->
mkfs.ext2 /dev/sdb1 . You can use GParted also.

4. Mount USB partition -->
sudo mount /dev/sdb1 /mnt

5. Install grub to USB -->
sudo grub-install --root-directory=/mnt/ /dev/sdb

Edit: The new grub2´s command is sudo grub-install --boot-directory=/mnt/boot /dev/sdb

6. Copy /boot -folder to the USB partition -->
sudo cp -R /boot* /mnt/

7. Umount USB
sudo umount /mnt

Works with grub and grub2 .. :D

http://forum.ubuntu-fi.org/index.php?to ... #msg273148

http://translate.google.fi/translate?js ... =en&swap=1
Last edited by oobetimer on Wed Jun 27, 2012 10:54 am, edited 2 times in total.

User avatar
oobetimer
Level 7
Level 7
Posts: 1879
Joined: Tue Jun 01, 2010 12:53 pm
Location: Finland / above the Arctic Circle
Contact:

Re: How to make an USB-boot-stick

Post by oobetimer » Fri Jan 21, 2011 1:10 am

Click the picture and watch a video .. :D

Image

User avatar
administrollaattori
Level 15
Level 15
Posts: 5793
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

Re: How To: Make an USB-boot-stick

Post by administrollaattori » Fri May 13, 2016 4:53 am

With newer grub2, the commands should be

Code: Select all

sudo mount /dev/sdb1 /mnt
sudo grub-install --boot-directory=/mnt/boot /dev/sdb
sudo cp -R /boot* /mnt/
sudo umount /mnt

User avatar
austin.texas
Level 20
Level 20
Posts: 12055
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: How To: Make an USB-boot-stick

Post by austin.texas » Fri Nov 11, 2016 1:44 am

I don't really see the point of this procedure.
To begin with, my /boot directory is 2.9GB. Why would I copy all that to my 8GB USB drive? All you really need is one file - grub.cfg
So changing the third command to sudo cp /boot/grub/grub.cfg /mnt/boot/grub/ would make better sense. Then the /boot directory on the USB would be about 4.5MB, instead of 2.9GB

Next, the only reason to do all that, is if you wanted to edit the grub.cfg on the USB to accomplish something special.
Otherwise, you could skip this entire procedure and just do

Code: Select all

sudo grub-install /dev/sdb
That will install grub to the MBR of the USB, and point to the grub.cfg on the hard drive. You don't even need to have an ext partition on the USB for that to work. You can have a FAT32 partition full of music files (as I do on my bootable flash drive).
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018

Post Reply

Return to “Tutorials”