LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-24-2011, 09:43 PM   #1
mike11
Member
 
Registered: Apr 2009
Posts: 222

Rep: Reputation: 17
problems creating a usb stick to install debian


Hi All,

I'm trying to create a usb stick from which I could install debian.
I have an 8GB usb stick. after formatting it to fat32, I follow the instructions on
http://linux.koolsolutions.com/2009/...rom-usb-drive/

but after the
zcat boot.img.gz > /dev/sdX

thing, df shows the drive has a total capacity of only 239MB.

So, what's wrong & how do I create such a usb installer?

TIA,
Mike.
 
Old 10-24-2011, 10:12 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,129

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Yeah, I'd wondered if you'd "blatted" the drive from your other thread.
Looks like you've overwritten the drive geometry by doing that. Bad idea. I've tried to help recover these things, but don't know a good way. Go get a new USB key and use something more current - see pendrivelinux.com for a good option.
 
Old 10-24-2011, 10:14 PM   #3
mike11
Member
 
Registered: Apr 2009
Posts: 222

Original Poster
Rep: Reputation: 17
thanks for replying.

when I format the drive with fdisk, I get the full 8GB.
only after doing the zcat, when the drive is umounted, it shows 239MB. so I don't think I've damaged the drive.
 
Old 10-24-2011, 11:07 PM   #4
mike11
Member
 
Registered: Apr 2009
Posts: 222

Original Poster
Rep: Reputation: 17
the problems seems to be that only 239mb can be accssed, but the current debian testing netinstall is 256mb + the boot.img.gz is 30mb, so it's too big.

this, as far as I can tell, is a "bug" on debian side, since this setup won't fit into a usb memory stick. the older setups (netinstall + boot.img.gz) were less than 240mb so there was no issue.

http://www.debian.org/releases/stabl...h04s03.html.en
 
Old 10-24-2011, 11:28 PM   #5
timetraveler
Member
 
Registered: Apr 2010
Posts: 243
Blog Entries: 2

Rep: Reputation: 31
If you do this:
dd if=/dev/sd of=/tmp/mbr bs=512 count=1

then do

file /tmp/mbr

It should say something about /tmp/mbr being a boot sector if not you need to go back and read the "install to USB" again. Also do a cksum on the boot.img.gz, etc.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Creating a minimalist boot USB stick macman31 Linux - General 10 09-28-2010 10:06 AM
LXer: Install Debian Linux from USB boot memory stick LXer Syndicated Linux News 0 04-09-2010 06:10 AM
GRUB: Booting from USB; Creating the Ultimate Bootable USB Stick Jinouchi Linux - Software 2 04-07-2010 04:17 PM
creating a bootable WinXP USB stick in Fedora 10 manuleka Linux - Software 1 05-17-2009 10:47 PM
I'd Like To Install Debian on a USB Flash Stick Vegetarian Smoker Debian 4 12-23-2006 09:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:57 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration