tmpfs in Linux

tmpfs

1.0 tmpfs

tmpfs is a filesystem that resides in the main memory of a Linux system. In the case of disk files, a file is first fetched into the kernel pagecache and the delivered to the requesting process. The fetch part is not there in the case of tmpfs as the files are created and updated directly in kernel caches.… Read more

Mounting Windows partitions under Linux

Multi-boot systems with Linux and Windows are quite common. With the following steps, it is easy to access Windows partitions under Linux.

1. Examine the disk partitions. For example,

sudo fdisk -l

gives the output,

Disk /dev/sda: 160.0 GB, 160041885696 bytes  
255 heads, 63 sectors/track, 19457 cylinders  
Units = cylinders of 16065 * 512 = 8225280 bytes  
Disk identifier: 0x093fba08  

Device Boot      Start         End      Blocks   Id  System  
/dev/sda1   *           1        9311    74790576    7  HPFS/NTFS  
/dev/sda2           18456       19457     8048565    7  HPFS/NTFS  
/dev/sda3            9312       11622    18563107+  bf  Solaris  
/dev/sda4           11623       18455    54886072+   5  Extended  
/dev/sda5           11623       11747     1004031   82  Linux swap / Solaris  
/dev/sda6           11748       12356     4891761   83  Linux  
/dev/sda7           12357       16004    29302528+  83  Linux  
/dev/sda8           16005       18455    19687626   83  Linux

/dev/sda1 and /dev/sda2, here, refer to the Windows' C and D drives respectively.… Read more