PDA

View Full Version : installed on to HD but can't boot



coreymon77
01-23-2004, 01:12 AM
ive succesfully installed knoppix multiple times but when i try to boot it without the cd, lilo doesnt even run and it goes straight into windows. so i tried using a boot disk when its wirting it it gives me error messages and when i try to boot from it after installation it gives me this error message " boot failed/invalid replace disk and then press return". what in the world do i do?!!! please help me

markschmid
01-23-2004, 10:22 PM
Hi

I've had similar problems.
I had a Promise TX2 IDE card connected.
It mucks up Knoppix so bad, Lilo can't even wirte to the HD.
You probably also have some hardware device connected
which is not supported by Knoppix (or any Linux) and
goofs up everything uncontrollably and mysteriously.

Try disconnecting any PCI cards and try installing again.

Mark

Markus
01-24-2004, 08:18 PM
You might try booting with the windows bootloader.

- Choose NO when asked to put lilo in mbr so it goes into your linux partition instead.
- copy your bootsector to a file: $dd if=/dev/hdXX of=/bootsect.lnx bs=512 count=1
(change XX to whatever your linux partition is.)
- copy the bootsect.lnx to a floppy and transfer it to C:\
- add the following line as last line to C:\boot.ini: C:\bootsect.lnx="Knoppix"

Downside is that you have to remember to do it every time you run lilo after changing it.

coreymon77
01-25-2004, 03:21 AM
- copy your bootsector to a file: $dd if=/dev/hdXX of=/bootsect.lnx bs=512 count=1
i cant access my hardrive in order to do that. whenever i type that in a root console is says "bash /dev/hdb1(my linux partition) access denied" what is going on here?

Markus
01-25-2004, 09:00 AM
Are you doing this when booted from the CD?
It won't write to the root of the CD, you have to write the output somewhere else.

Right-click the hdb1-icon on the desktop and change to read-write mode, then do:
$dd if=/dev/hdb1 of=/dev/hdb1/bootsect.lnx bs=512 count=1

You should now have a file named bootsect.lnx in your linux partition.

Now you can format a floppy with: $ mkfs.msdos /dev/fd0
Mount it with: $ mount /dev/fd0
copy over the file: $ cp /dev/hdb1/bootsect.lnx /floppy

coreymon77
01-26-2004, 02:30 AM
nope same thing happens "bash: /dev/hdb1 permission denied" now what?!

fingers99
01-26-2004, 03:24 AM
I'd try another floppy.

Do a full format in KFloppy -- format it to DOS

and try again.

It would be helpful to know that those errors were.......

Markus
01-26-2004, 03:01 PM
You didn't say if you're doing this from the live-CD.

If so, you could try:
sudo mount -t ext3 /dev/hdb1 /mnt/hdb1 (assuming it is ext3 you've chosen)
sudo chroot /mnt/hdb1
sudo dd if=/dev/hdb1 of=/dev/hdb1/bootsect.lnx bs=512 count=1

Although, you might as well try what fingers99 suggested.

coreymon77
01-27-2004, 03:14 AM
everything supposedley worked fine in the root console (no errors) but bootsect.lnx didnt appear on my drive!!! and so, i couldnt write it to a floppy (how do you do that anyways?). sorry for the trouble but now what?!!! :oops: :roll: :?

Markus
01-28-2004, 08:56 AM
How about posting your lilo.conf so we can see where it's at.
You'll find it at /mnt/hdb1/etc/lilo.conf

Did you manage to copy over the files ok when installing?
That is, does it at least write to hdb1?
Try mounting your hdb1 with:
$ mount /dev/hdb1 /mnt/hdb1
and then checking what you have mounted with:
$ mount
Hopefully you get a (rw) at the end of the line containing hdb1.
You can also try booting the CD with:
$knoppix nodma (+ other cheatcodes you usually use)

As for copying to floppy:
$ mount /mnt/floppy
$ cp /dev/hdb1/bootsect.lnx /floppy
$ umount /mnt/floppy

Just a thought, do you have some sort of virus protection on in your BIOS
preventing writing to the master boot record. Might be worth a check.

windos_no_thanks
01-28-2004, 11:23 AM
Umm, is this right ?



sudo dd if=/dev/hdb1 of=/dev/hdb1/bootsect.lnx bs=512 count=1


I think it should be:


sudo dd if=/dev/hdb1 of=/mnt/hdb1/bootsect.lnx bs=512 count=1

Markus
01-28-2004, 12:56 PM
Umm, is this right ?

uhnifedszss< (characters gotten from my forehead hitting the keyboard)


I think it should be:
Code:

sudo dd if=/dev/hdb1 of=/mnt/hdb1/bootsect.lnx bs=512 count=1
Yup, you're right.

And when chrooted into hdb1 it would be:
$ cd /
$ sudo dd if=/dev/hdb1 of=/bootsect.lnx bs=512 count=1

And for copying with root in hdb1:
$ cd /
$ mount /floppy
$ cp bootsect.lnx /floppy
$ umount /floppy

Copying without chrooting:
$ cd /mnt/hdb1
$ mount /floppy
$ cp bootsect.lnx /floppy
$ umount /floppy

Hope I got it at least close this time.

Daedaleus
01-29-2004, 06:08 PM
Alright I'm still a little new to linux myself so please, be gentle.

I've got a challenge from my instructor; he wants me to figure out a way to install both windows xp pro and knoppix on a single hard drive. And it must be bootable, now he is clueless about linux so assistance from him is out of the picture.

With that said let me just give a brief summary as to how far along I am:
Got xp loaded, same with knoppix on the hard drive, 3 partitions, 1 swap, 1 knoppix, 1 xp. Xp is in the ntfs format, I followed the "Howto: dual-boot knoppix with nt/2000/xp" and so far everything has worked out fine. I can boot knoppix from the boot disk it created, lilo is not in the mbr, and xp boots normally and gives the option for one or the other.

Now my problem is if I use the knoppix boot option I get an error that tells me "<Windows root> \system32/hal.dd" isn't there and needs to be put back. I did a check in windows and it is listed under it's system32 folder, however I'm unsure if knoppix is needing this file as well. Anyone care to clue me in, I feel almost as if I'm simply missing something.

Thanx

coreymon77
01-30-2004, 03:43 AM
okay, everything worked fine in linux, the problem this time is, i cant find boot.ini in my windows drive!!! now what?

coreymon77
01-30-2004, 03:46 AM
never mind, i found it :D :wink:

coreymon77
01-30-2004, 11:21 PM
okay, everything worked fine until the boot loader, it showed me knoppix and let me choose from either it or windows, when i chose knoppix all it did was just sit there with a black screen with a flashing cursor at the top, i waited a while, still the black screen. any clue what to do now?

Markus
02-01-2004, 09:41 PM
Are you sure lilo wrote the output to hdb instead of trying to write to mbr?
Would you post your /etc/lilo.conf.
Did you need any cheatcodes when booting from the cd?
Also, when you ran lilo, did it say stuff like "added Linux"

Getting out of ideas here :(

coreymon77
02-07-2004, 09:59 PM
well first things first, yes i did write lilo to my linux partition, im sure of it. second ive never even seen lilo nevermind running it. third thing, i usually use "knoppix lang=us" at bootup just so that it's in english so i can understand it but i dont think that would matter much would it? and fourth and final thing, i dont know how in the world im supposed to be coppying my lilo.conf so i can get it on to windows and i dont want to be hand writing it because i may make a mistake and that wouldn't be could. sorry about all the trouble here ive caused but i really want to get this to work. thanks alot

Markus
02-08-2004, 06:21 PM
well first things first, yes i did write lilo to my linux partition, im sure of it. second ive never even seen lilo nevermind running it.
Well, after chrooting to hdb1 you can run lilo with just typing: /sbin/lilo
The thing is though, you have to remember to do the dd bootsect stuff each time after changing lilo.conf and running lilo.


i usually use "knoppix lang=us" at bootup just so that it's in english so i can understand it but i dont think that would matter much would it?
Nope, I was hoping for something like knoppix nodma which might have made a difference.


how in the world im supposed to be coppying my lilo.conf so i can get it on to windows
You could copy it over to a fat-partition, a floppy or over internet.
For floppy:
Boot the CD,
mount hdb1 and floppy, for floppy you need to write: mount /floppy
copy the file: cp /mnt/hdb1/etc/lilo.conf /floppy/
unmount the floppy with: umount /floppy

coreymon77
02-10-2004, 10:59 PM
You could copy it over to a fat-partition, a floppy or over internet.
For floppy:
Boot the CD,
mount hdb1 and floppy, for floppy you need to write: mount /floppy
copy the file: cp /mnt/hdb1/etc/lilo.conf /floppy/
unmount the floppy with: umount /floppy

problem :wink: remember the access denied thing that i had with my hard drive? well... ... ... ... ... ... the same thing happened with the floppy drive. now what? im really sorry about all of this but i really want to get this to work

Markus
02-11-2004, 02:10 PM
As markschmid suggested, it's starting to look like a serious disk controller incompatibility.
I just don't understand how it copied over the files when you installed to the hard drive.
Have you tried copying as root if your knoppix user is somehow messed up?
If you manage to post lilo.conf here, you might as well post /etc/fstab.
You could also try mounting the floppy with: sudo mount /dev/fd0 /floppy

Lastly, you could consider downloading the newest knoppix and installing again, just in case your cd is faulty, or the newer revision has better drivers.

Alternatively you can hope that someone who actually knows the solution catches on :D
For me it's beginning to look like a mystery :?: