LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-02-2013, 04:40 PM   #1
StefanP
Member
 
Registered: Apr 2007
Distribution: Debian 4
Posts: 147

Rep: Reputation: 15
Installing debian Wheezy from USB stick instructions from the manual not clear


I have read the instructions on how to install from USB stick and downloaded the required files:

boot.img
initrd
vmlinuz

debian-7.1.0-i386-CD-1.iso

I do not really understand what is asked from me to do with these files as the commands they are listed in the pdf file manual are not working and I do not understand them completely.

I inserted my USB stick (which is 4GB) in the computer and it shows in the Dolphin as a media device and I can copy files on it, but what do I copy on it and what is that mount / unmount talking in the instructions I do not understand.

What comands do I have to use exactly after I have the stick inserted to get the files in order so I can make my USB bootable?
 
Old 08-02-2013, 04:44 PM   #2
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,005
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
If you're doing this from a linux box, the easy way is:

Code:
lsblk
to determine what your USB device is, but do not mount it.
Code:
dd if=<image> of=/dev/<your USB drive>
The debian image is hybrid and this is all that's actually required. You can specify a blocksize if you choose, it can speed up the copy, but it's not needed.
 
Old 08-02-2013, 04:50 PM   #3
StefanP
Member
 
Registered: Apr 2007
Distribution: Debian 4
Posts: 147

Original Poster
Rep: Reputation: 15
i typed

lsblk

i got error message:

bash: lsblk: command not found

i typed:

dd if=<image> of=/dev/<your USB drive>

i got error message:

bash: syntax error near unexpected token `newline'

If you don't mind explaining in plain words and clear commands how to make my USB bootable please?
 
Old 08-02-2013, 05:14 PM   #4
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,005
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
I'm not on a linux box at the moment, but I thought lsblk was in /usr/bin...might be in sbin though, in which case you'd need to become root before being able to use the command.

When doing the dd command <image> means the name of the image, and <your usb drive> means the name of your drive.

so if your image was named image.iso and your USB drive was /dev/sdb, you'd type dd if=image.iso of=/dev/sdb.
 
Old 08-02-2013, 05:32 PM   #5
StefanP
Member
 
Registered: Apr 2007
Distribution: Debian 4
Posts: 147

Original Poster
Rep: Reputation: 15
Sorry for repeating myself but I have 4 files downloaded to a linux computer and they are on the desktop. I want to install debian Wheezy on another computer from a USB. What do I do with those 4 files mentioned above? just copy them on the USB stick? I don't think that would be enough... the command you gave me dd... is that what makes the USB bootabe? I just need to know what to do with those 4 files ... what commands I use to make that damn USB bootable?
 
Old 08-02-2013, 05:42 PM   #6
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,005
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
dd writes the iso file directly to the USB drive. The iso file is a hybrid iso, it requires NOTHING ELSE to be done to the usb drive after it is written to the drive. It will overwrite the boot record and will become bootable. The other 3 files are completely unnecessary for modern Debian images.
 
Old 08-02-2013, 05:46 PM   #7
StefanP
Member
 
Registered: Apr 2007
Distribution: Debian 4
Posts: 147

Original Poster
Rep: Reputation: 15
Thank you for your explanation. It clarifies the issue of having 4 files. One more question, I do not know which /dev/sd? my USB stick is. It appears in Dolphin as /media/USB-KEY1 and maybe it is mounted already? I have tried your command like this:


dd if=/home/children/Desktop/Linux/debian-7.1.0-i386-CD-1.iso of=/dev/sdX
dd: writing to `/dev/sdX': No space left on device
1016065+0 records in
1016064+0 records out
520224768 bytes (520 MB) copied, 7.39842 s, 70.3 MB/s

but actually i didn't see anything copied on my USB stick (it remained as before the command was executed)
 
Old 08-02-2013, 05:47 PM   #8
StefanP
Member
 
Registered: Apr 2007
Distribution: Debian 4
Posts: 147

Original Poster
Rep: Reputation: 15
Thank you for your explanation. It clarifies the issue of having 4 files. One more question, I do not know which /dev/sd? my USB stick is. It appears in Dolphin as /media/USB-KEY1 and maybe it is mounted already? I have tried your command like this:


dd if=/home/children/Desktop/Linux/debian-7.1.0-i386-CD-1.iso of=/dev/sdX
dd: writing to `/dev/sdX': No space left on device
1016065+0 records in
1016064+0 records out
520224768 bytes (520 MB) copied, 7.39842 s, 70.3 MB/s

but actually i didn't see anything copied on my USB stick (it remained as before the command was executed)
 
Old 08-02-2013, 06:05 PM   #9
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Be VERY careful with dd.
It WILL overwrite anything you point it at, without questioning you about your choice.

Unmount the USB.

"/sbin/fdisk -l" should list all your disks so you can designate the correct one.
 
  


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
Debian Wheezy - no usable screen after installing RootMason Debian 6 05-23-2013 04:52 PM
USB stick creation for Debian Wheezy installer has changed jlinkels Debian 3 06-22-2011 02:17 PM
LXer: Installing "Sugar on a stick" (Strawberry Release) On A USB Stick LXer Syndicated Linux News 0 08-04-2009 03:50 PM
Need instructions/manual for using wine. Len Tyree Linux - General 1 03-29-2009 06:29 AM
Installing Debian 4.r4 onto USB Stick FROM boot DVD charliebrown_au Linux - Newbie 2 09-17-2008 04:14 AM

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

All times are GMT -5. The time now is 07:47 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