Strict Standards: Declaration of RSS::DoAction() should be compatible with CMSModule::DoAction($name, $id, $params, $returnid = '') in /home/xandaorg/public_html/modules/RSS/RSS.module.php on line 114

Strict Standards: Non-static method PageInfoOperations::LoadPageInfoByContentAlias() should not be called statically in /home/xandaorg/public_html/index.php on line 154

Warning: Cannot modify header information - headers already sent by (output started at /home/xandaorg/public_html/modules/RSS/RSS.module.php:114) in /home/xandaorg/public_html/index.php on line 299
Xanda - /dev/project - How to use USB pen/flash stick in Linux

More and more people these days using the USB pen and flash memories instead of floppies and CDs. They come is different sizes from 128MB upto 2 GB. Moreover, may people find it difficult to use devices, the main problem is people don’t understand how it works…

1) It uses SCSI devices for mounting

SCSI devices such as /dev/sda use to represent your first USB pen/stick and equivalent partitions are as follows:
Sample 256 MB USB PEN (E: is 100 MB, F: is rest of the free space)

Linux Partition => Windows XP/NT
/dev/sda1 => E: (assuming that C: is hard-disk; D: is VD/CD/RW)
/dev/sda2 => F: (assuming that C: is hard-disk; D: is DVD/CD/RW; E: is first drive USB pen 100 MB drive)

2) Kernel must have support for:
Linux kernel must compiled with support for
i) SCSI disk
ii) USB Support
iii) USB Mass support

Most of the modern distribution comes with above three support compiled in format. If it is not included then get latest kernel from and make sure you compile it with above features + file system support such as ext2/3, vfat and so on…

3) Commends to mount USB Pen / Flash memory stick under Linux

a) Log in as root user

b) Create mount point

# mkdir –p /mnt/pen
# mkdir –p /mnt/pen

c) To mount the disk (aka to use it) run mount command:

# mount /dev/sda1 /mnt/pen

This command will mount MS-Windows XP E: into /mnt/pen

d) To use it or to see your files:

# cd /mnt/pen
# ls –l

e) To copy files from /home/rdl/*.c to directory called proejct1:

# pwd /mnt/pen
# mkdir project1
# cp –v /home/rdl/*.c /project1

f) You can use rest of the all command such as rm, rmdir, mv etc on this /mnt/pen

g) To format the /dev/sda2 as Linux ext3 partitions use the command:

# mkfs.ext3 /dev/sda2

h) To delete all partition and to create new partition use Linux fdisk program:

# fdisk /dev/sda

Read man page of fdisk for more information on how to delete and create partitions.

g) To list all partition on all devices use the command:

# fdisk –l

h) Use dmesg command to get more info on your USB devices

# dmesg | grep –i “USB”

i) Run scandisk (window like stuff) on /dev/sda1

# umount /dev/sda1
# fsck /dev/sda1

See the detailed guide USB Flash Memory HOWTO