Help answer threads with 0 replies.
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 10-31-2009, 03:29 PM   #1
Registered: Oct 2009
Posts: 38

Rep: Reputation: 0
Linuxc and USB

I have been reading threads for about two hours and haven't found my exact problem. I'm trying to make a bootable USB with Knoppix 5.1.1----I have followed the directions three times and no success. My question isn't about knoppix at all, it is a general question about syntax and commands, so I'm trying this forum. I have done the following in order:


8. # Type umount /dev/sdx1 to ensure the partition is unmounted
9. # Type mkfs.vfat -F 16 -n usb /dev/sdx1 to format the first partition
10. # Type umount /dev/sdx2 to ensure the partition is unmounted.
11. # Type mkfs.ext2 -b 4096 -L casper-rw /dev/sdx2 to format the second partition
12. # Remove and reinsert your USB flash drive
13. # Type mkdir /tmp/usb
14 # Type mount /dev/sdx1 /tmp/usb
15. # Type cd /cdrom
These are mid-instruction steps actually, I have done everything before this point. Now I have a Usb drive with two partitions one Fat16 and one ext2, good so far.My question is after doing # 13 the directory is created in the ramdisk NOT on USB... so step 14 won't work. Am I missing something here???? Isn't the intent to create the dir on the USB not in the Ramdrive?? Please explain to me why this won't work and how to do it correctly. Thank you, your student.
Old 10-31-2009, 05:13 PM   #2
Registered: Jan 2007
Location: midwest USA
Distribution: gentoo w/ funtoo overlay
Posts: 146

Rep: Reputation: 23

you are creating a directory to which you are going to mount. The mounted partition will show up in /tmp/usb and this is where you will end up dumping the files. Basically, your usb drive is now accessible in the /tmp/usb file.
Old 10-31-2009, 06:16 PM   #3
Registered: Oct 2009
Posts: 38

Original Poster
Rep: Reputation: 0
Thank you for the reply I understand that part, however, it does not create the directory in the USB/tmp/ directory, it creates the directory in the /knoppix/ramdrive directory and I get a message saying cannot crete directory directory already exists. I ge the error msg "mount: can't find /dev/sdc1/tmp/usb in /etc/fstab or /etc/mtab" ??
Old 10-31-2009, 08:47 PM   #4
LQ Addict
Registered: Oct 2003
Location: Australia
Distribution: MX 16
Posts: 5,296

Rep: Reputation: Disabled

also you might like to visit this site

that is doable from ms or linux users.

quite a few distros now have usb scripts on their live cds
Old 11-01-2009, 12:16 PM   #5
Registered: Jan 2007
Location: midwest USA
Distribution: gentoo w/ funtoo overlay
Posts: 146

Rep: Reputation: 23
you aren't looking to make that dir on the're just wanting to mount to it so that you can copy the files over to the usb. You're not wanting to make a tmp directory on the usb, you're wanting to make /tmp/usb the mountpoint for the usb stick. So the command would be " mount /dev/sbc1 /tmp/usb " then when you copy over the initrd and the rest of the files, you'll just toss them into /tmp/usb.


comands, mkdir, usb

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
may install from cdrom to USB FLASH DRIVE(to get it a USB stick bootable) the ubuntu lse123 Linux - Newbie 5 01-02-2009 05:56 PM
alternative way to get USB file handle: hotplug? sys/bus/usb/devices/ ? knockout_artist Linux - Kernel 0 12-02-2008 05:08 PM
Get usb.c: ignoring set_interface when pluging in a Belkin USB Direct Connect Cable qwerty102 Linux - Networking 0 02-15-2005 09:49 AM
USB problems: Memorex USB stick 256MB and PSX to USB adapter by Radio Shack Knuckles T15 Linux - Hardware 1 05-19-2004 07:58 PM
HP Deskjet (USB) & CUPS & Slackware 9.1: Unable to open USB device "usb:/dev/usb/lp0&qu arnostienen Slackware 2 01-29-2004 04:22 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:02 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration