LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices

Reply
 
LinkBack Search this Thread
Old 03-24-2009, 06:40 PM   #1
inetic
LQ Newbie
 
Registered: Mar 2009
Posts: 3

Rep: Reputation: 1
[SOLVED] USB stick doesn't get recognized as a boot device


I had problems installing slackware on linutop HW (www.linutop.com)
from a USB stick. The BIOS (or whatever is controlling this stuff)
didn't recognize the stick as a bootable device and continued to boot
from HDD (yap, I had USB-HDD as my primary boot device and yap, I have
checked the md5 sum of usbboot.img that I had downloaded). My suspision
is that it was eather the raw filesystem or lilo that was problematic
(I'm realy not an expert though).

So rather then switching to PXE boot, which is a pain in the neck, I've
tried to create my own USB image, while reusing the kernel
and the other files from inside the usbboot.img.

The size of the USB stick Im using is 1GB, on the web page I'm mentioning at the bootom of
this text they say that one should use fat32 when using a stick
bigger than 2GB. But I don't know how relevant it is.

On my system the usb stick shows up as /dev/sdb.

Here are some (vague I must admit) notes on how I did
this.

--- partition the usb stick ------------------------------------------

cfdisk /dev/sdb
make one partition
make it bootable
set type fat16 (or fat32?)
write and exit

--- install grub -----------------------------------------------------

cd /tmp
mkdir slackware
mount /dev/sdb1 /tmp/slackware
mkdir -p /tmp/slackware/boot/grub
# This might be in /lib/grub/i386-pc on some systems.
cp /usr/lib/grub/i386-pc/* /tmp/slackware/boot/grub/
# Not sure about the next step (is it needed? what it does exactly?)
echo '(hd0) /dev/sdb' > /tmp/slackware/boot/grub/device.map
grub-install --root-directory=/tmp/slackware /dev/sdb

(don't unmount /tmp/slackware just yet)

--- copy kernel and stuff --------------------------------------------

get the usbboot.img from www.slackware.com
modprobe loop
mkdir -p /tmp/usbboot
mount -o loop,ro usbboot.img /tmp/usbboot
cp /tmp/usbboot/* /tmp/slackware/

umount /tmp/slackware
umount /tmp/usbboot

You should now have a bootable usb stick. After you boot into the grub
shell you'll need to set up some stuff. I don't remember all of it I think
but let me try:

##################################
root (hd0,0)/
kernel /huge.s
initrd /initrd.img
boot
##################################

Your slack setup should now boot, from now on you can continue as
described in the README_USB.TXT, create some partitions, run setup,
mount slackware CD or DVD,...

--- for reference ----------------------------------------------------

This site has helped me the most with making USB bootable:
http://www.mayrhofer.eu.org/Default.aspx?pageid=45

-----------------------------------------

Hope this will be usefull.

Last edited by inetic; 03-25-2009 at 02:08 PM.
 
Old 04-13-2009, 04:01 AM   #2
TheSoftRock
LQ Newbie
 
Registered: Apr 2008
Posts: 5

Rep: Reputation: 0
Must not use hub

You must use your usb boot device direct, do not put into hub. Your computer will not recognize the hub fast enough to utilize the usb boot device.
 
  


Reply


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pinnacle PCTV HD Pro Stick (usb) not being recognized in Fedora 10 AskSave Linux - Hardware 7 02-13-2009 11:26 AM
USB Flash stick not recognized in Suse 10.3 donquixote1 Linux - Hardware 17 05-01-2008 05:14 AM
USB memory stick not recognized Filip Viorel Linux - Hardware 1 03-29-2006 01:50 AM
USB device not recognized Greek Acrobat Slackware 5 07-25-2005 11:30 AM
why is usb device recognized? kangaman Linux - Hardware 1 10-27-2004 11:05 AM


All times are GMT -5. The time now is 06:44 AM.

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