Linux Interview Questions:Disk management

Disk managamenent linux Click here for other interview questions 1) How to creat swap if you don’t have free partation?this is some what tricky question if you are new to Linux Administrationhere is the command to create swap if you don’t have free partationbefore doing this you have switchoff the swapswapoff -add if=/dev/zero of=/root/swapfile bs=1k count=1024swapon filename 2)How to see swap details?   cat /proc/swap   free 3)How to see/get info about RAM in ur system   free   cat /proc/meminfo 4)What is the difference between ext2 and ext3  I)ext3=ext2+journaling “journaling” is an add-on to a filesystem that records changes as they are made.II)ext2 files system is fastIII)less disk writesIV)ext2 file system in less stable/secureV)ext2 file system required to run fsck command if the system get crashed 5)How to convert ext2 file system to ext3?   tune2fs -j /dev/hda1 6)How convert ext3 file system to ext2   tune2fs -O^has-journal /dev/hda1 7)What is default block/chunk size for PV   4MB 8)what is the command to update the diskquota on file system   mount -o remount,rw /home 9)What is the partation type number for swap,RAID,LVM?   82(swap),fd(RAID),8e(LVM) 10)What is the default block site for ext2,ext3,LVM,RAID? 11)What is the difference between LVM1 and LVM2? 12)What is difference between RAID0,1,5? Please visit http://www.linuxnix.com for more linux admin...

Read More