Showing posts with label filesystem. Show all posts
Showing posts with label filesystem. Show all posts

Thursday, January 23, 2014

easy learn linux command line-part 21

Do you know anythings about SWAP file System in linux? 
in here you can find more information about swap filesystem in Linux, but you have to know that use swap file system decrease in Linux after 2010 because many machines has powerful Ram to prevent for Crashing machine.

know we want to create a swap file system in our Linux distribution and active one or two swap filesystems.

let start:

Filesystem SWAP

Command Description
# mkswap /dev/hda3 create a swap filesystem   
# swapon /dev/hda3 activating a new swap partition   
# swapon /dev/hda2 /dev/hdb3 activate two swap partitions   

Thursday, April 26, 2012

Easy learn linux command line- Part 5

Do you Know, How to Mount your Hard Disk or File system?
If not,so you should read this Post and Practice in linux Terminal.


Mounting a Filesystem

Command Description
# fuser -km /mnt/hda2 force umount when the device is busy   
# mount /dev/hda2 /mnt/hda2 mount disk called hda2 - verify existence of the directory '/ mnt/hda2'   
# mount /dev/fd0 /mnt/floppy mount a floppy disk   
# mount /dev/cdrom /mnt/cdrom mount a cdrom / dvdrom   
# mount /dev/hdc /mnt/cdrecorder mount a cdrw / dvdrom   
# mount /dev/hdb /mnt/cdrecorder mount a cdrw / dvdrom   
# mount -o loop file.iso /mnt/cdrom mount a file or iso image   
# mount -t vfat /dev/hda5 /mnt/hda5 mount a Windows FAT32 file system   
# mount /dev/sda1 /mnt/usbdisk mount a usb pen-drive or flash-drive   
# mount -t smbfs -o username=user,password=pass //WinClient/share /mnt/share mount a windows network share   
# umount /dev/hda2 unmount disk called hda2 - exit from mount point '/ mnt/hda2' first   
# umount -n /mnt/hda2 run umount without writing the file /etc/mtab - useful when the file is read-only or the hard disk is full