Dec 13, 2013

how to format FAT 16 in windows 7


C:\Users\mohan>format G:  /FS:FAT /A:16K
Insert new disk for drive G:
and press ENTER when ready...
The type of the file system is FAT.
Verifying 3835M
The specified cluster size is too small for FAT16/12.

How to Unmount an ISO in linux

To see the list of currently mounted file systems,

#mount

To unmount a mounted iso,






# umount /mnt/iso

assuming that your image is mounted at /mnt/iso

How to mount ISO in Linux using command line

Procedure to mount ISO images under Linux

As Root

1)Create some directory to mount the iso so that you can view it as a regular directory.

             # mkdir -p /mnt/disk

2) Use mount command as follows to mount iso file called disk1.iso:

             # mount -o loop disk1.iso /mnt/disk

Now to see the contents of iso file, Change directory to list files stored inside an ISO image:
            # cd /mnt/disk
            # ls -l


More about loop device

A loop device is a pseudo-device that makes a file accessible as a block device. Loop devices are often used for CD ISO images and floppy disc images. Mounting a file containing a filesystem via such a loop mount makes the files within that filesystem accessible. They appear in the mount point directory using above commands.

how to add files under apache server

In Apache server, add your contents under a directory and create symlink to it under /var/www/html/

or

move your directory under /var/www/html/

How to send mail in linux

mail -s "Hello world" mohan@yahoo.com

Use Control+D to move next item

Execution Failed: "/bin/vi" ".\t1636t37.tmp": The system cannot find the path specified.

Problem:
Execution Failed: "/bin/vi" ".\t1636t37.tmp": The system cannot find the path specified.

Cause:
you are trying to do a p4 edit in cgywin, where p4 is pointing to the windows version  c:\program files\p4.exe so its trying to open textfile in vi using windows p4.exe. Change the default p4  pointing to the cygwinversion and try.

How to check whats running in the perforce server or How to monitor perforce server

Like the 'top' command in Linux which helps us to see what process and commands are running in the system, perforce has 'monitor' command to list the operations running in its system.

It lists the users and their commands currently running in the perforce server

Example -

mohan@vmlinux/cygdrive/c/p4_mohan/user_informatio
5.0/output
# p4 monitor show
 7097 R mohan    00:00:00 monitor
 7098 R rama       00:00:00 labels
 7099 R arus    00:00:00 spec
28435 R perforce   00:30:31 verify