On Mon, Jul 24, 2006 at 11:02:32AM +0530, Mr Karan Singh wrote: > I want to know, how a pen drive can be accessed in Linux? > thanks in advance.
The way I do it is, plug it into the USB drive. After a few seconds, check the output of dmesg at the end. My output is something like this if I plug in my drive: SCSI device sda: 250879 512-byte hdwr sectors (128 MB) sda: Write Protect is off sda: Mode Sense: 03 00 00 00 sda: assuming drive cache: write through SCSI device sda: 250879 512-byte hdwr sectors (128 MB) sda: Write Protect is off sda: Mode Sense: 03 00 00 00 sda: assuming drive cache: write through sda: sda1 sd 0:0:0:0: Attached scsi removable disk sda Clearly, sda1 is the drive I want. So, I just create a directory under /mnt called "usb", and say "mount /dev/sda1 /mnt/usb". That's it. Then, once you are done with the work, umount /mnt/usb and take the pen drive out. You can set other options while mounting, though I generally add the following to my /etc/fstab (note that mine is a desktop machine): /dev/sda1 /media/usb0 vfat rw,user,noauto 0 0 HTH. Kumar -- Kumar Appaiah, 462, Jamuna Hostel, Indian Institute of Technology Madras, Chennai - 600036 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ linux-india-help mailing list linux-india-help@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-india-help