Installing Linux for the first time (& dual boot)

Some people like to do what you describe and have LILO call the NT boot loader.... I like it the other way round. I can post how to change this if anyone likes.
 
bump

how should the "updatedb" command perform?
the story's like this...
since the official drivers for the KYROII are out (.rpm), i decided to give that Red Hat 7.2 CD under my bed another shot.
installation is fine, but i still have the same problem configuring X windows as i've stated before. i guess it's because there's no driver for the KYROII listed, so i tried installing the drivers.
now, i've already d/led the .rpm driver for my KYROII. since i'm not sure what the floppy drive is called (like harddisks are "hdX" - therefore i can't mount it), i copied the files on to my C drive (win2k). i mounted the drive fine. but i can't install the .rpm files. correct me if i'm wrong, but the command to do this is:
rpm -i /mnt/win2k/kyro.rpm
right? (i've renamed the .rpm file to sth shorter through windows) anyway, it says it can't find the .rpm file or the path is wrong. so i tried the find .rpm command (can't remember what the command was, but i have it noted down back home).
anyway, when i used that command, it told me to run "updatedb" first. so i ran the command.
the problem is that when i typed:
updatedb
then press [enter], nothing happens. my screen'll look sth liek this:

[BASH]updatedb
_

where the underscore is a blinking cursor. i can type anything into it, but nothing happens. if i press [enter] again, it'll come down one line. i'm not sure if it's crashed or anything, but i could still press ctrl-alt-del to reboot.
my question is, is this how the updatedb command should behave? i've waited for about 10 mins, but it just stays there blinking.
or am i doing sth wrong?
 
the updatedb command catalogues all files on your mounted drivers, and puts them into a locate database.

even on a powerful machine, this can take time....

the purpose of this is that you can say

locate file

where file is something you'd like to know the full path of.

I have never renamed an .rpm and I'd do all your linux downloading, untarring, file operations in Linux if I was you.
 
dual boot

Originally posted by Phantasm66
Some people like to do what you describe and have LILO call the NT boot loader.... I like it the other way round. I can post how to change this if anyone likes.

I'd be very interested in seeing this,
Sincerely
 
hmmm... some how, i managed to get the GUI to run at 320x200 pixels again (AGX)... now, how can i install the rpm driver from here? or maybe i should ask, "can i install?", cause the screen's so small, it can't even show the whole search window (yes, i've resized it to 0x0)...
and it seems like linux won't detect my floppy disk that contains the rpm file.
 
Ai Hate, you might want to umount all non-Linux partitions before running updatedb. It shouldn't take too long, maybe a few minutes if you have some hundreds of thousands of files. By default it doesn't tell you anything, just scans the files and returns to the command prompt. If you don't see any disk activity, it might have stopped responding. You can quit it by pressing CTRL+C, if that doesn't help, open a new terminal (for example, ALT-F2) and type killall -9 updatedb.
If rpm command says it can't find the rpm file, there's nothing wrong with rpm command, it just can't find that file. In Red Hat 7.2, floppy drive is usually mounted with mount /dev/fd0 /mnt/floppy.
 
Originally posted by Mictlantecuhtli
Ai Hate, you might want to umount all non-Linux partitions before running updatedb. It shouldn't take too long, maybe a few minutes if you have some hundreds of thousands of files. By default it doesn't tell you anything, just scans the files and returns to the command prompt. If you don't see any disk activity, it might have stopped responding. You can quit it by pressing CTRL+C, if that doesn't help, open a new terminal (for example, ALT-F2) and type killall -9 updatedb.
If rpm command says it can't find the rpm file, there's nothing wrong with rpm command, it just can't find that file. In Red Hat 7.2, floppy drive is usually mounted with mount /dev/fd0 /mnt/floppy.
yeah, i've finished updating the database, and so it says i have a mail.

hehe. fd0? i just tried guessing with fd1, fda and nothing. and when i used fdd, it gives me some errors and stuff. freaks me out. :p
so after i mount the floppy disk to /mnt/floppy, i use the command:
rpm -i /mnt/floppy/powervr.rpm
right?
then why can't i use:
rpm -i /mnt/win2k/powervr.rpm
in the first place, since the rpm is in C: (root)?
or is it that linux can't read FAT created by windows?

one question about the floppy disk. when i managed to get my way around a linux running GUI at 320x200 pixels, linux won't read the disk i have my rpm in. it would just come up with a blank. at first i thought it's about mounting, but then it can read my linux boot disk. (i created the shortcut to the floppy disk by right clicking the desktop and blah blah blah)
i thought the problem was that it can't read a windows fat file, so i tried to format it with gdisk (yes! i found it! under 320x200!!!), it comes up with an error message (no, i can't remember the message as it's written down back home)...

and some wierd thing about the Xconfigurator i thought i'd mention...
ok, in Xconfigurator, it lets you choose the display adapter, then the monitor, then ask you to probe, then lets you choose the memory, and the clock chip (or sth?), then probe again, right? here's the problem. when it asks me to probe for the last time, if i chose other than the AGX or S3 sth (the first choice when choosing the display adapter), it won't let me choose the resolution in which to probe. but if i chose, let's say, AGX, after i click probe, there'll be another screen with the resolution settings. here's the problem: if i choose a color depth at 16bit or 24 bit, the screen will flicker and says there's an error with my settings (like when i choose sth other than AGX and S3). but if i choose 8bit color, no matter at what resolution, Xconfig'll test my screen at 320x200 pixels (it told me when asking me "can you read this? yes/no). then, it'll say Xconfigurator is completed!
of course, then if run startx, it'll load up at 320x200 pixels. at 8 colors, i think. making the GUI almost (if not completely) unusable. i mean, i can't even see some windows in full (i've resized it to 0x0)!!! hahaha :haha:

anyway, i'll try what you said and post back.
 
Originally posted by Ai Hate
yeah, i've finished updating the database, and so it says i have a mail.
cat /var/spool/mail/*
It's usually just a daemon of some sort logging things.
so after i mount the floppy disk to /mnt/floppy, i use the command:
rpm -i /mnt/floppy/powervr.rpm
right?
then why can't i use:
rpm -i /mnt/win2k/powervr.rpm
in the first place, since the rpm is in C: (root)?
Remember that Linux is case-sensitive. Try hitting "Tab" if you don't remember the filename. Can you actually see the right files & directories in /mnt/win2k?
or is it that linux can't read FAT created by windows?
Unlikely, but possible. I've noticed that Linux & BeOS have no problems reading FAT partitions unknown to Windows (like some LBA32 FAT partitions).
one question about the floppy disk. when i managed to get my way around a linux running GUI at 320x200 pixels, linux won't read the disk i have my rpm in. it would just come up with a blank. at first i thought it's about mounting, but then it can read my linux boot disk. (i created the shortcut to the floppy disk by right clicking the desktop and blah blah blah)
Did you remember to umount the old floppy first?
in Xconfigurator, it lets you choose the display adapter, then the monitor, then ask you to probe, then lets you choose the memory, and the clock chip (or sth?), then probe again, right?
Usually there's no need to probe settings. "No clockchip" is recommended, is it not? And you should know how much RAM you have in your card. Maybe you can't choose the resolution because your driver (standard VGA?) has only one.
 
Originally posted by Mictlantecuhtli
Can you actually see the right files & directories in /mnt/win2k?

Did you remember to umount the old floppy first?

Usually there's no need to probe settings. "No clockchip" is recommended, is it not? And you should know how much RAM you have in your card. Maybe you can't choose the resolution because your driver (standard VGA?) has only one.
after using updatedb, i tried "locate powervr.rpm", but it doesn't do anything. it looks like this:
[BASH]locate powervr.rpm
[BASH]_
where the underscore is the blinking cursor. so i really don't know if it worked or not.

wait... i'm really confused with this mounting... must i unmount everytime i change a floppy?
ok, here's what i did...

when i haven't got into the GUI yet, and was trying to mount the floppy with my wild guesses, i got an error from mounting fdd.
then i got into the GUI, and put in the floppy with the rpm file (formatted in windows), and it can't read the floppy.
then i tried the linux boot disk, and it worked. i can see the files in the disk.

when did i forgot to unmount?

yes, i used "no clockchip", and chose my memory at 64mb.
 
Originally posted by Ai Hate
after using updatedb, i tried "locate powervr.rpm", but it doesn't do anything. it looks like this:
[BASH]locate powervr.rpm
[BASH]_
where the underscore is the blinking cursor. so i really don't know if it worked or not.
It did work and it didn't found powervr.rpm. Most Unix commands don't have verbal diarrhea :)
must i unmount everytime i change a floppy?
Yes, otherwise the system thinks it's the same floppy in the drive as before changing.
when i haven't got into the GUI yet, and was trying to mount the floppy with my wild guesses, i got an error from mounting fdd.
then i got into the GUI, and put in the floppy with the rpm file (formatted in windows), and it can't read the floppy.
then i tried the linux boot disk, and it worked. i can see the files in the disk.

when did i forgot to unmount?
Hmm, if I had a floppy drive I could check if the boot disk is mounted during startup. If it is, you forgot u(n)mount it before ejecting it (you did eject it before putting a new one in the drive, I assume ;)).
General rule: Always unmount a storage medium before changing it.
New kernels actually lock CD-ROM trays so that you don't accidentally change the CD while it's still mounted, a feature that could be useful in floppy drives too. Macs do this, x86s don't..
 
ok. installed the rpm, thanks to your help :)
now, when i finished installing the rpm, it says "refer to the readme". ok, so i read the readme (in windows).
it said that after i install the rpm, i must run a program called "sax2", found in system>configuration. now, the problem is that i can't find sax2. in sax2, i'm supposed to tell linux to use the kyro drivers and set the display setttings, blah blah blah, it's all in the readme, but i can't find sax2 on my system.
i tried clicking on everything with "system" in linux (running in 320x200 GUI), but i really can't find it. i tried looking at the program list from "Run...", but again, there's no "sax2". so i just tried typing "sax2" at BASH, but again, no luck. in the readme, it doesn't say anything more than that. so is there an alternative program to tell linux to use the drivers?

about sax, i read this site but am still confused about what it is (hehe. i'm no tech whiz anyway :p )
 
Quick question regarding the install as I've never done this part before ...

Right now, due to it being a new OEM computer, my 40gb HD is installed as one big NTFS partition for WinXP. I would like to install RedHat linux onto this partition as well ... how well does Disk Druid resize parititions? Does it even work with NTFS? Whats the best way to do this?
 
Originally posted by Phantasm66
Some people like to do what you describe and have LILO call the NT boot loader.... I like it the other way round. I can post how to change this if anyone likes.
Originally posted by henderrob
I'd be very interested in seeing this,
Sincerely
Just in case you missed this, Phantasm66
 
Okay, here is what you do.

Boot Linux.

Uninstall lilo with this command:

/sbin/lilo -u

Now open /etc/lilo.conf in a text editor, it looks like this:

prompt
timeout=20
default=linux
boot=/dev/hda
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/hda6

Well, it will look like this if you have it installed on hda6, which is what I will use in my example.

Now edit /etc/lilo.conf so that it looks like this:

prompt
timeout=20
default=linux
boot=/dev/hda6
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/hda6

The important change is the boot= line, which instead of reading boot=/dev/hda now reads boot=/dev/hda6, meaning install lilo to the first sector of / rather than the MBR of the first disk.

Now reinstall lilo like this:

/sbin/lilo

now take an image of the lilo code that's written into the bootsector of / like this:

dd if=/dev/hda6 of=bootsect.lin bs=512 count=1

This will create a file in your present directory called bootsect.lin

copy this file to the root directory of c:

Now boot to windows, and open boot.ini in notepad after removing its read only property.

Append this line to the bottom:

c:\bootsect.lin="Linux"

Save boot.ini and reboot, you will now find that Windows 2000's bootloader comes up first, and if you choose Linux it will start lilo and boot linux.

Easy!
 
Originally posted by ryejay98
how well does Disk Druid resize parititions? Does it even work with NTFS? Whats the best way to do this?
Disk Druid resizes partitions well but it doesn't preserve data ;). For non-destructive NTFS partition resizing, I know only one application - Powerquest's Partition Magic. FAT partitions are much easier to resize (even without destroying data), there are programs like Fips or Parted.
 
Thank god for multiple HDs :) then ...

I gave up on Mandrake due to the dumb mouse error. Guess I'll just go with RedHat 7.2 and update the apps myself.

Anyone ever use Sorcerer? Cool little distro to learn how to do things without the candy coating that seems to be on all the other distros. Plus you compile it with your specs, optimizing the system.
 
Originally posted by Ai Hate
ok. installed the rpm, thanks to your help :)
now, when i finished installing the rpm, it says "refer to the readme". ok, so i read the readme (in windows).
it said that after i install the rpm, i must run a program called "sax2", found in system>configuration. now, the problem is that i can't find sax2. in sax2, i'm supposed to tell linux to use the kyro drivers and set the display setttings, blah blah blah, it's all in the readme, but i can't find sax2 on my system.
i tried clicking on everything with "system" in linux (running in 320x200 GUI), but i really can't find it. i tried looking at the program list from "Run...", but again, there's no "sax2". so i just tried typing "sax2" at BASH, but again, no luck. in the readme, it doesn't say anything more than that. so is there an alternative program to tell linux to use the drivers?
My guess is that this sax2 is just a GUI for the same thing nVidia users do - edit /etc/X11/XF86Config-4. You should change the driver in Section "Device" to what's your driver called. Doesn't that readme say what to do if there's no sax2?
 
Originally posted by Mictlantecuhtli

My guess is that this sax2 is just a GUI for the same thing nVidia users do - edit /etc/X11/XF86Config-4. You should change the driver in Section "Device" to what's your driver called. Doesn't that readme say what to do if there's no sax2?


He should just use

Xconfigurator
 
HI

My system is running on win xp on C: which is my 1st harddisk primary partition and win 98 on D: which is my 2nd harddisk primary partition.

I wish to install Red hat 7.2 on E: which is my 1st harddisk extended partition. The problem is that when I tried to install it, I encounter a few problems and they are:

When I choose to "Manually partition with Disk Druid." a message prompt came up after I click on next.

The partition table on /tmp/hdc is inconsistent.
There are many reasons why this might be the case.
Often, the reason is that Linux detected the BIOS
geometry incorrectly. However, this does not appear
to be the case here. It is save to ignore, but ignoring
may cause (fixable) problems with some boot loaders,
and may cause problem with FAT file systems.
Using LBA is recommended.

What is wrong?

But neverthless, I still click on ignore to proceed. After putting a mount point on my 1st harddisk primary partition as /mnt/windows xp , I now click NEW and change the file system type to SWAP and selected my first harddisk which is hda. Do not know whether I need to change the size to 512 or just leave it as 1? But anyway, I tried both and when I click on OK, an error prompt pop up that says:

Could not allocate requested partitions:
Partitioning fail: Could not allocate partitions.

What is wrong? I could not procceed anymore.
Please help.
 
Originally posted by fredericklee
My system is running on win xp on C: which is my 1st harddisk primary partition and win 98 on D: which is my 2nd harddisk primary partition.

I wish to install Red hat 7.2 on E: which is my 1st harddisk extended partition.
So you've already created a FAT/NTFS partition E:? There should be an empty partition, or even better, just blank space. Are your hdd's set to use LBA?
But neverthless, I still click on ignore to proceed. After putting a mount point on my 1st harddisk primary partition as /mnt/windows xp , I now click NEW and change the file system type to SWAP and selected my first harddisk which is hda. Do not know whether I need to change the size to 512 or just leave it as 1?
I'm not sure what you mean by "putting a mount point as /mnt/windows xp"..
Try the following:
Create a new partition, named /, set its size to be "maximum available". Then create a swap partition, set its size to 1-2 x your RAM.
 
My E: is FAT32. How do I set my hdd to use LBA??:confused:


Originally posted by Phantasm66
[If you are dual or multi booting with some other operating systems, ALWAYS choose a

custom install!!!!


Click NEXT, and then choose to "Manually partition with Disk Druid."

Highlight your existing Windows XP partition (which you said was FAT32) and click EDIT.

Give it a mount point like /mnt/winxp or something. You could have any mount point that

you like, but putting it in /mnt is proper UNIX convention.

I have followed what phantasm66, but instead of /mnt/winxp I use /mnt/windows xp



Try the following:
Create a new partition, named /, set its size to be "maximum available". Then create a swap partition, set its size to 1-2 x your RAM.

Where do I create this new partition, named /?? At C: or E:??:confused:

How to set the size to "maximum available", The size come in numbers with up down arrows for you to increase and decrease the value in numbers. I have check that the maximum nuber it can go is to 2076. So If I'm use 512MB of RAM, I should set this to 1024 right?
 
Originally posted by fredericklee
My E: is FAT32. How do I set my hdd to use LBA??:confused:

You set this in the BIOS. Its a hard drive geometry. If you change it, you will have to delete all partitions on that drive, change in the BIOS, and then recreate partitions again.

LBA means logical block addressing.
 
Back