Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 09-12-2009, 08:48 AM   #1
Registered: Jun 2009
Posts: 33

Rep: Reputation: 12
Create bootable Flash Drive, Install Debian, Acer Aspire One

In particular this post is about getting a Debian installer to boot from a USB drive. However, I am posting in General because I think the question is general enough and need not pertain only to a specific distribution.

For about a year I've had one of the 8.9in Acer Aspire One (AAO) netbooks that came with a linux distribution called linpus. For many reasons, I have found that I cannot maintain a linpus system and generally don't like how that computer came pre-setup and would like to start over. To do this I have chosen to install Debian.

The difficulty is that the machine has no CD drive. Thus, I was looking into booting the installer off of a USB flash drive. I found two references on how to set this up:

I ultimately ended up following directions from both articles. The methods in (1) failed for me, but (2) doesn't specifically mention the files I have.

I have a 8GB USB thumb drive I am hoping to use for the install. Method (1) failed in formatting the drive on the following command:
#mkdiskimage -F -4 /dev/sdg 0 255 63

Running that command produced the following error:
/usr/bin/mkdiskimage: 4: don't know how to determine the size of this device

I was unable to find much help doing a search for that error.

So, I turned to method (2) and my steps were as follows:
Partition the drive:
# mkdosfs /dev/sdg1

Run syslinux (to create a bootloader?)
# syslinux /dev/sdg1

Unzip the boot.img.gz file and copy it over to the USB drive:
$ gunzip <...>/boot.img.gz
# mkdir /mnt/usb; mkdir /mnt/loopback
# mount /dev/sdg1 /mnt/usb; mount -o loop <...>/boot.img /mnt/loopback
# cp /mnt/loopback/* /mnt/usb

After these command, my USB drive had the following files on it:
adgtk.cfg f1.txt f6.txt g2ldr.mbr linux stdmenu.cfg
adtxt.cfg f2.txt f7.txt gtk.cfg menu.cfg syslinux.cfg
disk.lbl f3.txt f8.txt initrdg.gz prompt.cfg txt.cfg
exithelp.cfg f4.txt f9.txt initrd.gz setup.exe vesamenu.c32
f10.txt f5.txt g2ldr ldlinux.sys splash.png win32-loader.ini

I added one more file, the net-installer image:
# cp <...>/debian-503-i386-netinst.iso /mnt/usb/

I then unmounted /mnt/usb and /mnt/lookback and tried to boot up the AAO off my flash drive. When the machine starts up, I press F12 to access the boot menu and select the USB drive as the boot device. The AAO tells me there is no table entry to boot from. (I don't have the exact error because of the next step I performed)

Article (2) at the bottom of the page mentions another step that may be necessary to get the device to boot, installing a MBR. So I performed this step:
# install-mbr /dev/sdg

Again tried to boot the AAO off the drive, this time I was presented with the message:

where the _ was a blinking cursor, but it didn't seem as though I could type anything there.

Any thoughts as to where I could be going wrong? I have never tried to setup a USB drive to boot off of, so I could be making a simple, silly mistake somewhere. Let me know if there is anymore useful information that I could provide.

Old 09-12-2009, 01:37 PM   #2
Registered: Jun 2009
Posts: 33

Original Poster
Rep: Reputation: 12
I was able to get my USB drive to boot. I should have thought of the solution sooner. I ran trusty old cfdisk on it. The single partition did not have the boot flag present, so I added it.

I guess I was just too new to syslinux and the mkdosfs scripts to think straight. I still don't know how others are able to succeed with the directions below. Could it be that some USB drive come with a bootable partition? I would have though more people would have encountered the same error as me.


usb boot

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian Etch Install Acer Aspire CD-ROM not mounted jrastas2 Linux - Laptop and Netbook 3 01-29-2009 10:18 AM
Limpus lite -Acer Aspire - no longer recognises flash drive! Tigerjilly Linux - Newbie 2 01-15-2009 02:55 PM
Trying to create a bootable USB flash drive to install RHEL (4 or 5) on servers scholldr Linux - General 2 05-05-2008 07:39 AM
Acer Aspire 1353XC usb bootable? Clydos Linux - Hardware 0 10-21-2005 10:08 AM
How to create bootable USB flash drive EStester Linux - Enterprise 7 05-19-2005 06:35 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:51 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration