LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
LinkBack Search this Thread
Old 10-31-2009, 02:29 PM   #1
pablo27
LQ Newbie
 
Registered: Oct 2009
Posts: 27

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, 04:13 PM   #2
MrChilly0
Member
 
Registered: Jan 2007
Location: midwest USA
Distribution: gentoo w/ funtoo overlay
Posts: 146

Rep: Reputation: 23
well...

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, 05:16 PM   #3
pablo27
LQ Newbie
 
Registered: Oct 2009
Posts: 27

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, 07:47 PM   #4
aus9
Guru
 
Registered: Oct 2003
Posts: 5,055

Rep: Reputation: Disabled
hi

also you might like to visit this site
http://www.pendrivelinux.com/

that is doable from ms or linux users.

quite a few distros now have usb scripts on their live cds
 
Old 11-01-2009, 11:16 AM   #5
MrChilly0
Member
 
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 usb...you'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.
 
  


Reply

Tags
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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 04:56 PM
alternative way to get USB file handle: hotplug? sys/bus/usb/devices/ ? knockout_artist Linux - Kernel 0 12-02-2008 04:08 PM
Get usb.c: ignoring set_interface when pluging in a Belkin USB Direct Connect Cable qwerty102 Linux - Networking 0 02-15-2005 08:49 AM
USB problems: Memorex USB stick 256MB and PSX to USB adapter by Radio Shack Knuckles T15 Linux - Hardware 1 05-19-2004 06: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 03:22 PM


All times are GMT -5. The time now is 02:31 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 Google+: linuxquestions
Open Source Consulting | Domain Registration