Use Colinux to boot a Linux system on a hard disk

Source: Internet
Author: User
Article Title: Use Colinux to boot a Linux system on a hard disk. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

Two systems are installed on the hard disk. One is Windows XP and the other is UBUNTU6.X. switching between the two systems is troublesome. If a VM is too slow to be installed, and it feels a bit itchy and uncomfortable! I want to use two systems together, and I want two systems to separate different partitions independently. After all, sometimes I want a clean and original linux operating system. Seeing colinux can solve my problem! DOIT.

1 download devel-colinux-20071105.exe

2. Download the kernel 2.6.22, compile and install it into the unbuntu

3. Configure the colinux configuration file

For example:

# CoLinux configuration, created by colinux XML2CFG converter v0.1.0

# File: test. cfg

# Linux Kernel file

Kernel = vmlinux

# Initrd file

Initrdw.initrd.gz

# Memory size for coLinux guest

Mem = 256

# Kernel bootparams

Root =/dev/cobd4

# Block devices and image files

Cobd3 = \ Device \ Harddisk0 \ Partition2

Cobd4 = \ Device \ Harddisk0 \ Partition3

# Host filesystem devices

# Networking devices

4. Unzip vmlinux-modules.tar.gz in the colinux installation directory to/lib/modules.

5. Create a linux Device in unbuntu

For I in 0 1 2 3 4 5 6 7 do mknod/dev/cobd $ I B 117 $ after I done is created, modify the/etc/fstab file, copy all the rows in your root partition and swap partition in the file to a new row and copy the corresponding had? Change to codb?

6 boot colinux

C: \ coLinux> colinux-daemon.exe @ test. cfg-v 3

Cooperative Linux Daemon, 0.8.0

Compiled on Nov 6 2007 00: 05: 36

Using 'vmlinux 'as kernel image

Memory ing 256 MB of virtual RAM

Mapping cobd3 to \ Device \ Harddisk0 \ Partition2

Mapping cobd4 to \ Device \ Harddisk0 \ Partition3

Using 'initrd.gz 'as initrd image

Mapping cofs31 \?? \ C: \ coLinux

Kernel boot parameters: 'root =/dev/cobd4'

PID: 2976

Colinux: launching console

Colinux: booting

Linux version 2.6.22-co-0.8.0 (hn @ hn-dt) (gcc version 4.1.2) #1 PREEMPT Tue Nov 6 00:02:11 CET 2007

256 mb lowmem available.

Initrd enabled: start: 0xcff9a000 size: 0x00065881

Entering add_active_range (0, 0, 65536) 0 entries of 256 used

Zone PFN ranges:

DMA 0-> 0

Normal 0-> 65536

Early_node_map [1] active PFN ranges

0: 0-> 65536

On node 0 totalpages: 65536

DMA zone: 0 pages used for memmap

Normal zone: 512 pages used for memmap

Normal zone: 65024 pages, LIFO batch: 15

Built 1 zonelists. Total pages: 65024

Kernel command line: root =/dev/cobd4

Enabling fast FPU save and restore ...... Done.

Enabling unmasked simd fpu exception support ...... Done.

Initializing CPU #0

Setting proxy interrupt vectors

PID hash table entries: 1024 (order: 10,409 6 bytes)

Console: color CoCON 80x25

Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)

Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)

Memory: 255488 k/262144 k available (1628 k kernel code, 0 k reserved, 595 k data, 128 k init, 0 k highmem)

Virtual kernel memory layout:

Fixmap: 0xffffc000-0xfffff000 (12 kB)

Vmalloc: 0xd0800000-0xffffa000( 759 MB)

Lowmem: 0xc0000000-0xd0000000( 256 MB)

. Init: 0xc032e000-0xc034e000 (128 kB)

. Data: 0xc02971f8-0xc032bfe4 (595 kB)

. Text: 0xc0100000-0xc02971f8 (1628 kB)

Calibrating delay loop ...... 2778.72 BogoMIPS (lpj = 13893632)

Mount-cache hash table entries: 512

CPU: After generic identify, caps: bfebfbff 20000000 0000000000000000 running 651d 00000000 00000001

Monitor/mwait feature present.

Using mwait in idle threads.

CPU: Trace cache: 12 K uops, L1 D cache: 16 K

CPU: L2 cache: 1024 K

CPU: After all inits, caps: bfebf3ff 20000000 00000000 running b1800000651d 00000000 00000001

Compat vDSO mapped to ffffe000.

CPU: Intel (R) Pentium (R) 4 CPU 2.93 GHz stepping 09

Checking 'hlt 'instruction ...... OK.

NET: Registered protocol family 16

NET: Registered protocol family 2

IP route cache hash table entries: 2048 (order: 1, 8192 bytes)

TCP established hash table entries: 8192 (order: 4, 65536 bytes)

TCP bind hash table entries: 8192 (order: 3, 32768 bytes)

TCP: Hash tables configured (established 8192 bind 8192)

TCP reno registered

Checking if image is initramfs ...... It isn' t (no cpio magic); lookslike an initrd

Freeing initrd memory: 406 k freed

Cofuse init 0.1 (API version 2.2)

Io scheduler noop registered

Io scheduler anticipatory registered (default)

Io scheduler deadline registered

Io scheduler cfq registered

RAMDISK driver initialized: 16 RAM disks of 4096 K size 1024 blocksize

Cobd: loaded (max 32 devices)

Loop: module loaded

Conet: loaded (max 16 devices)

Serio: cokbd at irq 1

Mice: PS/2 mouse device common for all mice

Input: AT Translated Set 2 keyboard as/class/input/input0

TCP cubic registered

NET: Registered protocol family 1

NET: Registered protocol family 17

Using IPI sort cut mode

RAMDISK: Compressed image found at block 0

VFS: Mounted root (ext2 filesystem ).

Kjournald starting. Commit interval 5 seconds

EXT3 FS on cobd4, internal journal

EXT3-fs: mounted filesystem with ordered data mode.

VFS: Mounted root (ext3 filesystem ).

Trying to move old root to/initrd ...... Okay

Freeing unused kernel memory: 128 k freed

Fuse init (API version 7.8)

Adding 1052248 k swap on/dev/disk/by-uuid/115676b1-05b6-4edd-b898-8a5ef7653e9e.Priority:-1 extents: 1 second SS: 1052248 k

NTFS driver 2.1.28 [Flags: R/o module].

NET: Registered protocol family 10

Lo: Disabled Privacy Extensions

Start.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.