Installing Fedora Core 3 on the HP Pavilion zv5000z
This page is a companion to my general notes on running Linux on the zv5000z and was last updated 16 Feb 2005.
This document is still under construction.
Before the install
If you’re going to dual-boot to some flavor of Windows, you’ll have to deal with that first. If you already have Windows installed and it’s taking up all your disk space, you’ll either need to repartition to make space for Linux,then reformat and reinstall Windows or you can use a partition sizing tool like Partition Magic or parted to resize the Windows partition.
I’ve never actually resized a partition before, but I’ve heard it requires a good defragmentation of the Windows filesystem and may take a while. I don’t mind making a backup and reinstalling.
If you’re going to do some partitioning of the drive for Windows and Linux, I recommend you boot to the Fedora Core installer and go as far as the Disk Druid partitioning tool, make a boot partition (200MB or so) and make a VFAT or NTFS partition for Windows. Then, reboot.
Now, here’s a little trick: When you get to the screen that asks you if you want to autopartition or use Disk Druid, hit ALT+F2. This will take you to a text-console with a bash prompt. Type fdisk /dev/hda and hit ENTER.
- Type p and ENTER to print the list of current partitions.
- Delete each one by typing d, ENTER, and then enter the corresponding partition number from the partition list.
- Continue doing this until there are no more partitions defined on the drive.
- Create a new partition by typing n, ENTER.
- The next prompt asks you if you want to create a primary or extended partition. Type p and ENTER to select a primary partition.
- The next prompt asks you for the first cylinder. You can hit ENTER to accept the default.
- The next prompt asks you for the ending cylinder. You can enter an offset here in the form of how big you’d like the partition to be. For example, to create a 200MB partition (appropriate for the /boot filesystem), enter +200M and hit ENTER.
For dual-booting Windows and Linux, I initially create two partitions: The 200 MB partition for /boot and the C: drive for Windows.
Device Boot Start End Blocks Id System /dev/hda1 1 26 208813+ 83 Linux /dev/hda2 * 27 1301 10241437+ 7 HPFS/NTFS
That’s a 10 GB Windows partition.
- To create the Windows partition like I did, type n, ENTER.
- Type p and ENTER to select a primary partition.
- Press ENTER to accept the default starting cylinder.
- Enter the offset (e.g. +10000M) for the ending cylinder.
Next, fdisk needs to mark the Windows partition as an NTFS (or FAT32) partition.
- Type t, ENTER to change the type of a partition.
- Choose partition 2.
- Enter 7 as the type code for an NTFS partition or c as the type code for a FAT32 partition.
When you’ve finished, type w followed by ENTER to write your changes to the disk.
Now you can reboot and boot from the Windows install CD. After Windows is installed, you’re ready to install Fedora Core 3.
Installing Fedora Core 3
If you want to use the graphical installation facility, you will want to have a USB mouse handy to connect to the laptop since the touchpad may not be detected. This depends on what version of the BIOS the laptop is running.
I’m not going to tell you what packages to install or anything like that. I usually do a Workstation install so that I get the development tools I may need to build applications down the road. If you know, without a doubt, that you’ll never have to compile any source code... ever, you’re probably safe with the Personal Desktop install.
Don’t worry too much about what type of install you do because tools like yum and apt make adding and removing packages down the road easy. If you’ve got a ridiculously large hard drive installed, go for the Everything install!
When the installer prompts you to accept the video configuration it has automatically selected for you, modify the configuration before continuing. The installer does not correctly identify the type of monitor, so you will want to change that to the appropriate size of generic LCD panel. As of Fedora Core 3, you now have all the sizes of LCD panel available in the selection list that are available for the Pavilion zv5000z. This was not available in previous versions of Fedora.
Unfortunately, while the supported LCD panel resolutions are available as options to choose from, the corresponding display resolutions for 1680x1050 and 1920x1200 are not. If you are running one of these, select the next best fit. For example, I choose 1400x1050.
You can fix this later but for now, it will suffice and get you through the remainder of the install process..
After the installation
The system will boot and will run the Red Hat Graphical Boot (rhgb) followed by firstboot which will let you configure the time, date, time zone, etc. and create one non-root user.
Installing the NVidia video driver
The opensource nv X.org driver is automatically used and does a fair job of displaying the graphical environment. However, once you switch into graphical mode, text mode is never legible again until you reboot. So, once you get into X, you will want to download the NVidia video driver installer.
You can download the installer with a web browser or at a command line using wget:
# wget http://download.nvidia.com/XFree86/Linux-x86_64/1.0-6111/NVIDIA-Linux-x86_64-1.0-6111-pkg2.run
This downloads version 6111 of the AMD64 NVidia driver installer. The webpage for this installer is at < http://www.nvidia.com/object/linux_display_amd64_1.0-6111.html >.
To prepare to switch to the accelerated NVidia driver, edit the /etc/X11/xorg.conf file.
The first thing you’re going to want to do is find the line that says Driver "nv" and change nv to nvidia.
The NVidia driver documentation (which will be installed on your system in /usr/share/doc/NVIDIA_GLX-1.0/ after you install the driver) has detailed instructions on the X configuration options.
The next thing you’ll want to change in the xorg.conf file is to comment out the line that loads the dri module. So, change:
to look like:
# Load "dri"
If your LCD runs at 1680x1050 or 1920x1200, you’ll want to add those mode lines to the X configuration. Find the Monitor section an add the mode lines:
Section "Monitor" ... Modeline "1680x1050" 147.17 1680 1784 1968 2256 1050 1051 1054 1087 Modeline "1920x1200" 197.27 1920 2064 2272 2624 1200 1201 1204 1253 EndSection
Then, find your way down to the Screen section and add the appropriate mode to the Modes line in the Display subsection.
SubSection "Display" Viewport 0 0 Depth 24 Modes "1680x1050" "1400x1050" "1280x1024" "1280x960" "1024x768" "800x600" "640x480" EndSubSection
That’s it. Save the xorg.conf file.
You have to be in text mode to install the NVidia video driver, so if you’re in graphical mode, reboot the computer. Remember, you can’t go into text mode after you’ve gone into graphical mode with the nv driver on these laptops.
When the GRUB screen comes up, hit a key to go into the GRUB menu. Highlight the kernel you want to boot to (usually the default selection) and type e (for edit). Use the arrow keys to highlight the kernel line (usually the second line) and enter e again to edit that line. This will put your cursor at the end of that line. Enter a space and then the number 3. Press ENTER and then the letter b to boot your modified GRUB configuration.
This will boot your system into run level 3 (multiuser text mode w/ networking).
Once the system has booted, log in as root and run the NVidia installer file you downloaded using sh.
# sh NVIDIA-Linux-x86_64-1.0-6111-pkg2.run
This will run the installer. The default answer is usually the safe answer for each question. The installer will build the NVidia kernel module and load it into the kernel.
Fedora Core 3 is the first Fedora Core to use the new udev which dynamically creates device files and works with hotplug to load kernel modules as needed.
To get the NVidia kernel module to load automatically, we need to let udev know about it. Execute the following commands after you’ve run the NVidia driver installer.
# cp -a /dev/nvidia* /etc/udev/devices # chown root:root /etc/udev/devices/nvidia*
At this point, your computer should be ready to run X with the accelerated NVidia driver. You can either reboot or use telinit to jump into run level 5.
# telinit 5
I’ll be adding information about how to get the trackpad working and other stuff. In the meantime, you can figure this stuff out, in a less organized fashion, by reading by other document: running Linux on the zv5000z.