Installation of a Windows 2000 + Linux RedHat 7.2 dual booting system on a Mebius PC-MJ760C

Computer information

The laptop is a Sharp PC-MJ760C, P3-850MHz, 128MB Ram, 20GB, CD-R/RW + DVD. Modem, LAN. The chipset is a SiS630, video memory 8MB, display 14.1XGA (1024x768)

Overview

To install a dual system I did the following:

  1. 1. Backup your

    1. Backup

    Outlook express data

    To save the account information (login, password, server...): open OE, click Tools| Accounts, select the account to backup, then click the Export button. This will store the account's settings in a *.iaf file at the location you specify ("C:\backup\outlook express\account" in my case). You can later import any *.iaf file by clicking the Import button. Your account password is stored in encrypted form in the *.iaf file.

    In order to backup your messages first change the "store" directory of Outlook Express (OE) to a safe place: create a new folder "C:\backup\outlook express\store". Open OE and click Tools| Options| Maintenance| Store folder, then click the Change button and browse to "C:\backup\outlook express\store". Close OE, then re-open it. OE will move the store automatically at that time. To restore your mail folders, open OE and click File| Import| Messages| OE5| Message store directory, then browse to the folder containing your old messages. Do not copy the backup files into the current OE message store or the import will fail. If you saved your backup on a CD or a networked drive, you will need to copy the backup to your hard disk and verify that none of the *.dbx files are marked as "read only", or the import will fail. I then moved my address book to a safe location: create a new folder "C:\backup\outlook express\address book" From OE Open the Address Book and click "Help| About Address Book" to see the current location of the *.wab file in use. Close the Address Book. Copy the *.wab file to the new location. You can later import the backup by opening OE and clicking File| Import|Address Book. More info on http://www.tomsterdam.com/insideoe5/

    Internet explorer

    The cookies are on "C:\WINDOWS\Cookies" and the favorites are on "C:\WINDOWS\Faovrites". I copied this two files in "C:\backup\IE backup".

    CDRW backup

    I also put in "C:\backup" a copy of "My Documents" as well as the folder "C:\Programs\canon" which contain my photos. I then buried the "C:\backup" folder to a CDRW.

    2. Windows 2000 Professional (W2K) installation

    Insert the W2K Service Pack 1 CD into your driver and start from it. After a while ("Setup is loadinf files...") you see the "Welcome to the setup" page. Press "Enter" to start setup. Read the licence and press "F8" to accept it. Select the 106-keys Japanese keyboard and confirm the choice with "Y". "Windows 2000 professional setup" page. First remove all current partitions with "D" (and "L" to confirm). Then create partitions with "C" to obtain: The last 8MB appeared when I created the D: partition. Highlight the "C:" partition and press "Enter" to install W2K on it. Then select the "FAT" to partition it. Because the size is larger than 2048M the FAT32 format is automatically chosen. Press "Enter" to confirm this choice. Let it go automatically. It reboots, installs the devices. Language selection: select Japanese as default, add French and English input support. Then enter Name and organization. Then enter Product key. Then enter computer name and administrator password. Then set date and time. Then some other informations and it is done.

    sis630 driver

    The display was not recognized by default so I downloaded the latest W2K driver for the sis630 chip from SIS homepage and installed it. It worked fine (I now can have a 1028x760 resolution in true colors).

    Sound card

    The sound card was not recognized automatically so I also needed to download the audio driver for sis630 here

    Airconnect card

    I installed a Airconnect WLI-PCM-L11 card. The driver for W2K on the CD did not seem to work ("Cannot find wireless card" message) so I downloaded the W2K driver from Airconnect.com. The driver 1.51 worked fine, I then followed the instruction from the CD Rom. I now can use Internet!

    W2K installation is done

    At this step you have a running W2K which if started by default, the SiS630 graphical card is running ok and you have access to the web through your AirConnect card.

    3. Linux installation

    Preparation

    I used a RedHat 7.2 version on 2 CD-ROM. Before starting the Linux installation be sure to remove all peripherals (including AirConnect card and USB mouse)

    XFree86-4.1.0-3
    Linux kernel 2.4.7-10.

    Installation from the CD-Rom

    Put the RedHat CD1 in your drive and restart the computer. While booting, press F2 to enter configuration setup, and in the "Boot" menu select the "CD-Rom Drive" as default. Then save and exit (F10). The Linux CD-Rom loads. At the "boot: " prompt type "text" to start the installation process in text mode. Language selection : English. Keyboard selection : "jp106" (Japanese 106-keys keyboard). Mouse selection: "ALPS - GlidePoint (PS/2)", with "Emulate 3 buttons" checked. Installation type: "Custom" (this is necessary to be able to put LILO on the right place for dual boot).

    Disk Partitioning: Choose "Disk Druid" and create the following:
    DeviceStartEndSize (MB)TypeMount PointFormat
    /dev/hda
      /dev/hda1
    18926997vfatNo
      /dev/hda2
    89389847ext3/bootYes
      /dev/hda3
    89918947813ext3/Yes
      /dev/hda4
    189524324220Extended
        /dev/hda5
    18951910125swapYes
        /dev/hda6
    191121712047vfat/sharedYes
        /dev/hda7
    217224322047vfat/shared2Yes

    Boot Leader Configuration: Use LILO boot loader. Next screen: install it on "/dev/hda2 First sector of boot partition". Next screen: click ok (the option "hdc=ide-scsi" is put by default). Next screen: click ok (linux on /dev/hda3 is the default, DOS on /dev/hda1 is the other choice).

    Network configuration: enter the informations if you have access to a network (IP etc...). Then the name of your machine. Firewall configuration: High.

    Language support: check English, Japanese, French and German and Spanish. Default Language: English. Time zone: enter your time zone (Asia/Tokyo).

    Root password: type it.

    Add user : you should do it now. User account setup: ok.

    Authentification configuration: leave as it is by default.

    Package group selection: select all excepte servers. Select individual packages. In the next screen, select the package "XFree86-FBDev" in the category "User Interface/X Hardware Support".

    Video card configuration: The video card "SiS 630" and the Video RAM "8192" are recognized by default. Do not change it, click "OK".

    After a last "OK" the installation starts.

    After a while (insert CD2 when asked for) the installation is complete. "Boot Disk": insert a blank disk and press "YES", then "OK".

    Monitor Configuration: change the Monitor to "Generic Laptop Display 1024x768". Click "OK".

    X customization: Color Depth 16 Bit, Resolution 1024x768, Default desktop "Gnome", Default login "Text".

    Click a last "OK", the computer restarts on the boot disk which you just created and let in the drive.

    X configuration

    At the boot: prompt, type "linux append vga=ask". You will then be asked to enter a video mode. Only extended textmodes are printed in the menu, even if you scan for other, but still you can use the following modes:
            | 640x480  800x600  1024x768 1280x1024
    ----+-------------------------------------
    256 |  0x301    0x303    0x305    0x307
    32k |  0x310    0x313    0x316    0x319
    64k |  0x311    0x314    0x317    0x31A
    16M |  0x312    0x315    0x318    0x31B

    Leave the "0x" away when typing. If you have a Notebook with 1024x768 at 16bit try: 317. If everything worked out, you should see a nice penguin logo in the upper left corner which is accompanies you while booting.

    Login as root and edit the /etc/lilo.conf file. You can for instance have several modes to choose from at the begining with the following file:

    prompt
    timeout=50
    default=linux
    boot=/dev/hda2
    map=/boot/map
    install=/boot/boot.b
    message=/boot/message
    lba32
    
    image=/boot/vmlinuz-2.4.7-10
            label=linux
    	initrd=/boot/initrd-2.4.7-10.img
    	read-only
    	root=/dev/hda3
    	append="hdc=ide-scsi"
    	vga=791
    
    image=/boot/vmlinuz-2.4.7-10
            label=askmode
    	initrd=/boot/initrd-2.4.7-10.img
    	read-only
    	root=/dev/hda3
    	append="hdc=ide-scsi"
    	vga=ask
    
    image=/boot/vmlinuz-2.4.7-10
            label=charmode
    	initrd=/boot/initrd-2.4.7-10.img
    	read-only
    	root=/dev/hda3
    	append="hdc=ide-scsi"
    
    other=/dev/hda1
            optional
    	label=windows
    Here you have three linux options: a default graphical linux (observe the vga:791 which is the decimal value of Ox317), a "ask" mode where you will be prompted to chose a graphical mode (such as 317) and a text mode. Save the file and type lilo to configure the liloloader. You should get the following message:
    Added linux *
    Added askmode
    Added charmode
    Added windows

    X-server configuration to use the Framebuffer

    Check whether /usr/X11R6/bin/XF86_FBDev exists. If not you have to create it. The simplest is to use the RedHat7.2 CD-Rom2. Insert the CD -in the drive:

    # mount /mnt/cdrom
    # rpm -Uvh /mnt/cdrom/RedHat/RPMS/XFree86-FBDev-3.3.6-42.i386.rpm

    The file /usr/X11R6/bin/XF86_FBDev now exists. Change to the directory /etc/X11 and edit the symbolic linx X (which is pointing to ../../usr/X11R6/bin/XF86_SVGA) to your new framebuffered server as follows:

    # cd /etc/X11
    # rm -f X
    # ln -s ../../usr/X11R6/bin/XF86_FBDev X

    A working XF86Config-4

    Edit the /etc/X11/XF86Config-4 file. In the "Graphics device section" you should have something like:
    Section "Device"
        Identifier           "SiS 630"
        VendorName           "SiS"
        VideoRam             8192
    EndSection
    and in the "Screen section" modify the first one to get:
    # The kernel framebuffer server
        Driver         "FBDev"
        Device         "SiS 630"
        Monitor        "Generic Laptop Display Panel 1024x768"
        Subsection     "Display"
            Depth         16
    	Modes         "default"
        EndSubsection
    EndSection

    After this, type startx and... it should work!

    At this step you have a working Linux. Let us now enable the dual booting.

    4. Dual booting

    From Linux, copy the Linux boot sector from /boot to a file using the dd command. In the below, replace /dev/hda2 with your boot partition's location
    # dd if=/dev/hda2 of=/bootsect.lnx bs=512 count=1
    Copy bootsect.lnx onto a floppy disk. If mcopy is available, this is easy:
        # mcopy /bootsect.lnx a:
    If mcopy is not available (e.g. a minimal install of Linux) you'll need to mount the floppy drive and then copy:
        # mount /dev/fd0 /mnt
        # cp /bootsect.lnx /mnt
        # umount /mnt
    Alternatively you can just copy it to the shared partition :
        # cp /bootsect.lnx /shared
    Restart your computer, boot in W2K as administrator and copy bootsect.lnx to the root of the C: drive (either form the floppy you just created or from the shared partition). You now need to edit boot.ini. To make this file visible from W2K, open a DOS prompt and type C:\>attrib boot.ini -s -h -r. You can now open it by clicking on it from W2K. Add the following line at the end:
    C:\bootsect.lnx="Linux"

    References


    Jean-Philippe Vert
    Back to my Short Notes pages