Explore

Loading

Wednesday, February 8, 2012

Partition Fields in linux

  • Device: This field displays the partition's device name.
  • Start: This field shows the sector on your hard drive where the partition begins.
  • End: This field shows the sector on your hard drive where the partition ends.
  • Size: This field shows the partition's size (in MB).
  • Type: This field shows the partition's type (for example, ext2, ext3, or vfat).
  • Mount Point: A mount point is the location within the directory hierarchy at which a volume exists; the volume is "mounted" at this location. This field indicates where the partition will be mounted.

Why have multiple partitions?

  • Reduce the risk of system failure in case a partition becomes full. Runaway processes or maniacal users can consume so much disk space that the operating system no longer has room on the hard drive for its bookkeeping operations. This will lead to disaster. By segregating space, you ensure that things other than the operating system die when allocated disk space is exhausted.
     
  • Encapsulate your data. Since file system corruption is local to a partition, you stand to lose only some of your data if an accident occurs.

What is a Partition?


  • Partitioning is a means to divide a single hard drive into many logical drives.
  • A partition is a contiguous set of blocks on a drive that are treated as an independent disk.
  • A partition table is an index that relates sections of the hard drive to partitions.

Tuesday, February 7, 2012

Red Hat Package Manager

  • Enables a user to build and query software packages
  • Allows the system administrator to install, update, erase and build packages
  • Checks for required disk space and dependencies when installing a package
  • RPM package names are of the format package –version-build.architecture.rpm
    Eg: xfm-1.3.2-13.i386.rpm
  • Use rpm –ivh package name to install the packageIf the package is already installed, or if package that depends on are not installed, RPM will show an error message

Linux Today

Linux has been used for many computing platforms
PC, PDA, Supercomputer,…
Current kernel version 2.4.20. 2.5 is coming
Not only character user interface but graphical user interface, thanks to the X-Window technology
Commercial vendors moved in Linux itself to provide freely distributed code. They make their money by compiling up various software and gathering them in a distributable format
Red Hat, Slackware, etc
Chinese distribution of Linux also appeared in Taiwan and China - CLE, Red Flag Linux

A Development of Linux

  • UNIX: 1969 Thompson & Ritchie AT&T Bell Labs
  • BSD: 1978 Berkeley Software Distribution
  • Commercial Vendors: Sun, HP, IBM, SGI, DEC
  • GNU: 1984 Richard Stallman, FSF
  • POSIX: 1986 IEEE Portable Operating System unIX
  • Minix: 1987 Andy Tannenbaum
  • SVR4:  1989 AT&T and Sun
  • Linux: 1991 Linus Torvalds Intel 386 (i386)
  • Open Source: GPL, LGPL, Cathedral and the Bazaar

 GNU project
Established in 1984 by Richard Stallman, who believes that software should be free from restrictions against copying or modification in order to make better and efficient computer programs
GNU is a recursive acronym for “GNU's Not Unix”
Aim at developing a complete Unix-like operating system which is free for copying and modification
Companies make their money by maintaining and distributing the software, e.g. optimally packaging the software with different tools (Redhat, Slackware, Mandrake, SuSE, etc)
Stallman built the first free GNU C Compiler in 1991. But still, an OS was yet to be developed



Features of Modern OS


Provide a user interface
Organize files on disk
Allocating resource to different users with security control
Co-ordinate programs to work with devices and other programs