DON'T PANIC

How to install a Debian from Usb device

Posted on: October 7, 2010


1. After inserting an empty usb device you should run “dmesg” command:

$ dmesg


[1922747.172561] sd 29:0:0:0: Attached scsi generic sg4 type 0
[1922747.179137] sd 29:0:0:0: [sdb] 1959807 512-byte logical blocks:
(1.00 GB/956 MiB)
[1922747.179629] sd 29:0:0:0: [sdb] Write Protect is off
[1922747.179637] sd 29:0:0:0: [sdb] Mode Sense: 0b 00 00 08
[1922747.179643] sd 29:0:0:0: [sdb] Assuming drive cache: write through
[1922747.182521] sd 29:0:0:0: [sdb] Assuming drive cache: write through
[1922747.182532] sdb: sdb1
[1922747.205897] sd 29:0:0:0: [sdb] Assuming drive cache: write through
[1922747.205908] sd 29:0:0:0: [sdb] Attached SCSI removable disk

2. If you have configured automatic mounted, you will have to unmount your usb device and check this:

# umount /dev/sdb && mount

3. You need to download the last boot.img.gz from Debian repository. In my case I will download the stable distribution for 64 bits.

$ wget ftp://ftp.debian.org/debian/dists/stable/main/installer-amd64/current/images/hd-media/boot.img.gz

4. Now you have to uncompress and put this image on the usb device:

# zcat boot.img.gz > /dev/sdb

At this moment your booteable Debian usb is ready, but you don’t forget that is a good practice compare if the md5sum’s iso file downloaded matches with md5sum’s iso from Debian repository.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Advertisements

  • None
  • analialorenzatto: Buzz is just a host name for this example, it doesn't have any relation to the topic. Instead of being "Buzz", could be whatever name.
  • fridelain: >buzz What's the story behind this host name? Actully running buzz, once running buzz and upgraded many times since, or unrelated to debian naming
  • Pratik: Nice, but I would change it to include more directories. Like my .mozilla and .kde4 by using .{config,mozilla,kde4} instead of just .config .

Categories

%d bloggers like this: