First step is to go into your kernelâ€™s source directory. Usually /usr/src/linux
If it is a recent kernel i.e. 2.6+ type:
This will bring up a graphical menu of your kernelâ€™s options, If you have to change anything here you must compile your kernel for the changes to take affect.
You want to enable scsi support and USB support like below if they are not already:
Device Drivers -------->
SCSI Device Support --------->
[*] legacy /proc/scsi/ support
<*> SCSI disk support
<*> SCSI generic support
USB Support -------------->
<*> Support for USB
[*] USB device filesystem
< > EHCI HCD (USB 2.0) support
< > OHCI HCD support
<*> UHCI HCD (most Intel and VIA) support
<*> USB Mass Storage support
If you experience problems with it still not seeing your drive try enabling EHCI or OHCI.
Now if you didnâ€™t have to change anything here you can skip the compiling phase and go to mounting.
Next you need to compile. There are many ways to go about this so I'll just show you how I usually do it (recent kernels 2.6+). Type:
cp arch/i386/boot/bzImage /boot/linux-usb (you can name "linux-usb" what ever you want)
I will explain this next part for lilo if you use grub or something else your on your own here.
Edit your /etc/lilo.conf
image=/boot/linux-usb (where linux-usb is the name of your image) label=name (where name is the name you want to pop up on lilo) read-only root=/dev/hda1 (where hda1 is what ever partition your using)
Now save and exit the lilo.conf file.
Now type "lilo" at the command line. It should say something about adding your image.
Reboot and make sure it all works.
If your kernel is all good and ready you should be able to mount
Go into your /dev directory
look for sdXX where XX is a leter and number ex: sda1.
Some distros will only make a dev for the devices you have and some will not. If there are a lot of sdXX's in there than just start with sda1 and try others if you have no luck.
Make a directory to mount your drive to ex:
Then mount it:
where vfat is the type and sda1 is the dev for your drive.
the -t vfat is not allways nessisary but if it mounts and you have read or write errors then you need the -t vfat.
Well hopefully this helps someone. Oh don't forget to unmount using
Where /mnt/pendrive is the mount point. If you dont unmount you will loose changes and risk messing up your partition.