LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
Linux - General This 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

Tags used in this thread
Popular LQ Tags , ,

Reply
 
Thread Tools
Old 10-31-2009, 03:29 PM   #1
pablo27
LQ Newbie
 
Registered: Oct 2009
Posts: 6
Thanked: 0
Linuxc and USB


[Log in to get rid of this advertisement]
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.
windows_xp_2003 pablo27 is offline  
Tag This Post , ,
Reply With Quote
Old 10-31-2009, 05:13 PM   #2
MrChilly0
Member
 
Registered: Jan 2007
Distribution: back to gentoo
Posts: 69
Thanked: 3
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.
linux MrChilly0 is offline     Reply With Quote
Thanked by:
Old 10-31-2009, 06:16 PM   #3
pablo27
LQ Newbie
 
Registered: Oct 2009
Posts: 6
Thanked: 0

Original Poster
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" ??
windows_xp_2003 pablo27 is offline     Reply With Quote
Old 10-31-2009, 08:47 PM   #4
aus9
Senior Member
 
Registered: Oct 2003
Location: Australia
Posts: 3,766
Thanked: 43
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
linux aus9 is offline     Reply With Quote
Thanked by:
Old 11-01-2009, 12:16 PM   #5
MrChilly0
Member
 
Registered: Jan 2007
Distribution: back to gentoo
Posts: 69
Thanked: 3
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.
linux MrChilly0 is offline     Reply With Quote
Thanked by:

Reply

Bookmarks


Thread Tools

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
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-04-2008 01:44 AM
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


All times are GMT -5. The time now is 09:23 PM.

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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration