Linux - GeneralThis 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.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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.
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.
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" ??
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.