Linux

FAQ What's New

Table of Contents [show]

Copyright Information

Linux open-source operating system
Linux open-source operating system
[T]

1 Linux boot process

Before going thru the linux boot process, it's fairly important to understand the IBM pc "real mode" memory model[MM]. When a PC boots, it runs in real mode with a 20-bit address space, or 20 address lines from/to the CPU. The maximum address from a 20-bit address space is 1M (2^20). When PC was first designed, IBM only allocates the first 640K (0x00000-0x9FFFF) to read-and-write memory (RAM). Anything beyond that is assigned to ROMs such as BIOS ROM. BIOS ROM takes the last 64k from 0xF0000 to 0xFFFFF. In this BIOS ROM space, the last command at 0xFFFF0 always points to the starting point of the BIOS instructions.

Following are more details about what happens when linux boots[IBM]:

  1. BIOS-start:when the system boots, 0xFFFF0 automatically get control and starts execution. This is the end of the 1M maximum real mode memory space, and it is a JMP command to the actual bios location [CMU][[FPO]
  2. BIOS-POST: power-on self test, make sure basic IO devices are working ok
  3. BIOS-loadmbr: look thru devices in order defined by CMOS, get the first active bootable disk, and load MBR from that device. MBR is a 512byte sector on the device (sector 1 of cylinder0 head0)
  4. MBR-load boot loader: look thru partition table in MBR, find the only active partition and load its boot record (kernel loader) to RAM, and hand control over to it
  5. Kernel loader: display a list of kernels for user to select, and load zipped kernel into RAM, give control over to kernel
  6. Kernel: some hardware init
  7. Kernel: extract zipped kernel to higher RAM space, give control to the unzipped image
  8. Kernel: start() in arch/i386/boot/head.S
  9. Kernel: start_32() in arch/i386/boot/compressed/head.S
  10. Kernel: decompress_kernel() in arch/i386/boot/compressed/misc.c
  11. Kernel: start_32() in arch/i386/kernel/head.S
  12. Kernel: start_kernel() in init/main.c
  13. Kernel: cpu_idle() in init/main.c

2 Setting Up Printers on Fedora Core 4

use command printconf-gui

3 How to install chinese font on Fedora Core?

yum install fonts-chinese

4 nohup

nohup command: usually, when you logon to a unix system, a shell is opened for you where you can run commands etc. When you logout, all your processes will be killed except services. use the nohup command to prevent the system from killing your processes after your log out.

nohup whatever-your-command-is

5 Linux partitions

To show linux partitions: use /sbin/fdisk

Command (m for help): m
Command action
   a   toggle a bootable flag
   b   edit bsd disklabel
   c   toggle the dos compatibility flag
   d   delete a partition
   l   list known partition types
   m   print this menu
   n   add a new partition
   o   create a new empty DOS partition table
   p   print the partition table
   q   quit without saving changes
   s   create a new empty Sun disklabel
   t   change a partition's system id
   u   change display/entry units
   v   verify the partition table
   w   write table to disk and exit
   x   extra functionality (experts only)

Command (m for help): p

Disk /dev/hda: 120.0 GB, 120034123776 bytes 255 heads, 63 sectors/track, 14593 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System /dev/hda1 * 1 6435 51689106 83 Linux /dev/hda2 6436 10259 30716280 83 Linux /dev/hda3 10260 14083 30716280 83 Linux /dev/hda4 14084 14593 4096575 5 Extended /dev/hda5 14084 14593 4096543+ 82 Linux swap / Solaris

Command (m for help): q

To view current filesystems and their corresponding mount point

vi /etc/fstab
vi /etc/mtab

6 How Do I mount a windows share on linux

via fstab : add the following line to your /etc/fstab [BY]

//yourserver.yourdomain.com/storage /fileserver cifs rw,user,username=Administrator,password=xxxxxx 0 0

via command line

 mount //winserver/public /mnt/public -t smbfs -o username=kim,password=foo -o gid=users,dmask=777,fmask=777,rw

You may need to try between smbfs and cifs on different systems

7 How to setup TwinView (Dual Head, Dual Monitor) on Fedora Core 4

7.1 Setup

This procedure will surely work on the following setup, but it could work on other environments

  1. Fedora core 4, kernel 2.6.14
  2. GeForce 6600 video card (with dual head support)
  3. Double Samsung SyncMaster 214T digital flatpanel monitors

English-Chinese