Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-24-2005, 08:22 PM   #1
Registered: Jan 2005
Location: Maryland, USA
Distribution: Ubuntu/Debian
Posts: 102

Rep: Reputation: 15
USB Drive Format and Image

I need detailed instructions on how to first format my 256MB USB pen drive in linux then write a linux image to it using 'dd' (I'm open to all alternatives). I have a very limited understanding of mount points so I'll also need some help with that. The image I need to write is bootable so the partition needs to be too. I'm using Fedora Core 3.
Old 06-25-2005, 12:27 AM   #2
Registered: Jul 2004
Location: louisiana
Distribution: fedora 4/kubuntu
Posts: 116

Rep: Reputation: 15
usb drive

There are several ways to do this. One way is to add the following line to your fstab file.

/dev/sda1 /mountDirectory vfat noauto,user,rw 0 0

If you do not know where this file is located, it is in the /etc directory. There are many parametes that you can change, this is just an example. This is also assuming that you usb drive has a fat32 partition type. Most of them do. You will not have to "format" it for linux if you have fat32 support in your kernel. After adding that line, you need to create the mount directory. You also need to make that directory readable and writable.
To mount the drive you then just type in a terminal
mount /dev/sda1
And to unmount
umount /dev/sda1

The drive will then be mounted in the mountDirectory you created.
As far as copying the linux partition with dd, I don't know exactly what you are trying to copy. Are you trying to copy the boot partition for dual booting with windows or something? You might try

dd if=/dev/hda1 of=/mountDirectory/linux.bin bs=512 count=1

I hope this helps.
Old 06-25-2005, 12:39 AM   #3
Registered: Jan 2005
Location: Maryland, USA
Distribution: Ubuntu/Debian
Posts: 102

Original Poster
Rep: Reputation: 15
I'm trying to write an image on the first of the FC4 install disks to my USB drive. The disks wont boot on their own so I want to use a tool Fedora gives me to boot to the USB first and then on to the disks. Trust me this all works out. I just need to get the image "diskboot.img" onto my pen drive.

I understand the basic directional commands of dd but the stuff you have to add to the end confuses me


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Format USB Diskette Drive to FAT? sipples Linux - Hardware 12 10-31-2006 08:09 AM
How to format a USB flash drive? Erik_the_Red Linux - Hardware 4 08-29-2005 12:47 PM
Creating/restoring drive image on USB drive OneSeventeen Linux - Newbie 9 07-06-2005 05:08 AM
USB Drive in 8.3 File Format dkpw Slackware 4 03-21-2005 05:31 PM
trouble format USB hard drive shortname Linux - Hardware 1 02-14-2005 08:02 AM > Forums > Linux Forums > Linux - Newbie

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