LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-29-2005, 06:16 AM   #1
z3nith
Member
 
Registered: Jan 2005
Posts: 40

Rep: Reputation: 15
mandrake boot hassles


Hoping someone can help a linux n00b get the ball rolling. I was kind of hoping this would all go smoothly but alas.

Mandrake v10 installation (Downloaded md5=ok burn=ok) 3 CD set
Dual Boot setup
hda = xp
hdb = mandrake

The installation goes OK and all seems well leaving everyhting as default. When i reboot i get a LILO error. "L 01 01 01 01 01 01"

Same if i boot from floppy

Tried a grub boot disk and i get "grub read error stage 2"

I end up having to reset the mbr to windows so i can get online and ask for someone more knowledgable to help me out of this.

Can anyone suggest anything or point me in the right direction ??
I am a total linux gumby but fairly good on windows. I am able to use the 'rescue' function on the first disk of the set but i dont know what to do.
 
Old 01-29-2005, 10:49 AM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 377Reputation: 377Reputation: 377Reputation: 377
welcome to LQ!!!

=)

one thing you could try is re-installing lilo from the rescue disk... to do that you just need to mount your root partition and then run lilo, telling it to use the conf in that partition...

for example (from a rescue disk):

Code:
mkdir /mnt/whatever

mount -t reiserfs /dev/hda1 /mnt/whatever

lilo -r /mnt/whatever

reboot
if that still doesn't work, then you need to take a look at your lilo configuration:

Code:
mount -t reiserfs /dev/hda1 /mnt/whatever

vi /mnt/whatever/etc/lilo.conf
when you edit the configuration, do the lilo re-install thing again...

also make sure the stuff in your BIOS is correct, make sure it's properly detecting the disk, etc...

feel free to post your lilo.conf here so we can look at it and give you feedback...

good luck...

PS: my exmaples use reiserfs as the filesystem but you might be using some other, like ext3 or xfs or something...


Last edited by win32sux; 01-29-2005 at 10:52 AM.
 
Old 01-29-2005, 05:34 PM   #3
z3nith
Member
 
Registered: Jan 2005
Posts: 40

Original Poster
Rep: Reputation: 15
Thanks for the swift reply and helpful info. I've learnt alot just from the few commands you've given me.

From the mandrake rescue disk I successfully made the dir:
mkdir /mnt/temp

when i try to run the line:
mount -t ext2 /dev/hda1 /mnt/temp (tmp=whatever)

I get the error:
"wrong fs type, bad option, bad superblock on dev/hda1 or too many mounted file systems"
I got the ext2 bit from typing lsparts at rescue prompt.

I managed to open the lilo.conf but have no idea how to post a screenshot or must i write out the contents and retype them for you?

BTW when i try to edit the lilo.conf file the keyboard seems way off. If i try to type the letter 'f' the cursor just jumps around to a different place.
 
Old 01-29-2005, 06:01 PM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 377Reputation: 377Reputation: 377Reputation: 377
Quote:
Originally posted by z3nith
Thanks for the swift reply and helpful info. I've learnt alot just from the few commands you've given me.

From the mandrake rescue disk I successfully made the dir:
mkdir /mnt/temp

when i try to run the line:
mount -t ext2 /dev/hda1 /mnt/temp (tmp=whatever)

I get the error:
"wrong fs type, bad option, bad superblock on dev/hda1 or too many mounted file systems"
I got the ext2 bit from typing lsparts at rescue prompt.

I managed to open the lilo.conf but have no idea how to post a screenshot or must i write out the contents and retype them for you?

BTW when i try to edit the lilo.conf file the keyboard seems way off. If i try to type the letter 'f' the cursor just jumps around to a different place.
if you were able to get into the lilo.conf file on the disk then you were able to mount the partition somehow... i'm guessing you resolved the problem you were having mounting it??

i'm not sure about the problem you're having editing the file... are you using vi?? have you used it before?? it can be tricky at first... check-out some intros to vi:

http://www.google.com/linux?hl=en&lr...=Google+Search

basically, you need to place yourself in "insert" mode by hitting the "i" key... then when you're done editing you can exit the "insert" mode with the ESC key... and you can issue the ":wq" command to save and exit...

but if you don't wanna edit yet, and just wanna copy the file's contents to post them here, you can "cat" it's contents onto a floppy, for example... and then open the file on the floppy from windows...

example:

(once you've mounted the partition with the lilo.conf in /mnt/whatever)

Code:
mount -t vfat /dev/fd0 /mnt/floppy

cat /mnt/whatever/etc/lilo.conf > /mnt/floppy/whatever.txt

umount /mnt/floppy
that cat command cats the content of the lilo.conf and redirects the output onto a text file called whatever.txt on the floppy... the file whatever.txt doesn't need to exist before you do that...
 
Old 01-29-2005, 07:41 PM   #5
z3nith
Member
 
Registered: Jan 2005
Posts: 40

Original Poster
Rep: Reputation: 15
Excellent. That will help alot. Heres where i am at. I reinstalled mandrake and asked it to install lilo in the mbr on hda

successfully mounted drive by:

mount -t vfat /dev/hda1 /mnt/temp

The lilo -r command was not accepted. I cannot locate the lilo.conf anymore

When i played with the mount option in rescue mode i noticed this at some point if it helps.

/dev/hda1 /mnt/win_c type vfat
/dev/hda5 /mnt/win_d type vfat

I am DETERMINED to get this running so please bare with me. I learn fast and just the commands you've given me so far have opened other doors.
 
Old 01-30-2005, 08:18 AM   #6
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 377Reputation: 377Reputation: 377Reputation: 377
for linux just use the "reiserfs" filesystem for the root partition when you are given the option to choose how you want to format...

let me give you an example to help clear things up a bit:

in this example, you have two hard disks... one is the IDE primary master and the other is the IDE primary slave...

on the primary master (/dev/hda) you have windows... windows is taking up the entire disk, so there's basically just one partition (/dev/hda1)... wheather the partition is FAT32 or NTFS doesn't matter right now...

you want linux on the primary slave (/dev/hdb) disk...

let's say that /dev/hdb is a 40GB disk... so when it comes time to partition, you choose to make a 39GB root (/) partition and a 1GB swap partition... linux likes using a swap partition instead of a swap file unlike windows...

you could choose to make the swap partition an extended one, but let's keep things simple and make them both primary partitions if we can...

you choose reiserfs as the filesystem for the root partition...

(remember this is all example)

so when you're done formatting the partitions on /dev/hdb you end-up with something that looks like this:

/dev/hda1 = Windows

/dev/hdb1 = Linux (/)

/dev/hdb2 = Linux (Swap)

okay so when it comes time to install the bootloader, you choose to install it on the MBR of /dev/hda... the idea being that as soon as the BIOS tries to boot the primary master disk, the bootloader will take over... the objective is to configure the bootloader so that it will let you choose between Windows and Linux... so the boot loader must be aware that Windows is on /dev/hda1 and Linux is on /dev/hdb1... i believe that mandrake's installer usually manages to figure this stuff out on it's own, but sometimes you might need to adjust stuff manually i guess... if everything goes well you shouldn't even need to use the rescue cd at all...

if your /dev/hdb1 partition has been formatted with the reiserfs filesystem, you'd mount it from the rescue disk like this:

Code:
mount -t reiserfs /dev/hdb1 /mnt/whatever
if your /dev/hdb1 partition has been formatted with the ext3 filesystem, you'd mount it from the rescue disk like this:

Code:
mount -t ext3 /dev/hdb1 /mnt/whatever
the "-t" option for the "mount" command simply specifies the filesystem you wanna mount... one doesn't mount "disks" or "partitions", one mounts "filesystems"...

the "vfat" type is used to mount FAT16 (such as floppies) and FAT32 filesystems such as some Windows... linux can access vfat partitions but it will almost NEVER use vfat as the filesystem for itself, for technical reasons...

try going through the install again using my example as a guide, and then let me know your new situation... i will continue to help you as best i can, it's great that you are so determined, most people would have given-up long ago... it sounds like you have the type of mentality that makes a great linux user/admin...

hang in there!!

good luck...

Last edited by win32sux; 01-30-2005 at 08:23 AM.
 
Old 01-30-2005, 08:01 PM   #7
z3nith
Member
 
Registered: Jan 2005
Posts: 40

Original Poster
Rep: Reputation: 15
Man thanks a heap for that. I've learnt more in this thread than i have anywhere else.

I was thinking i had a dud CD somewhere amongst the three so i did a test. I got rid of windows and now have just Mandrake on the system and nothing else. Seems to work fine now.

Now i just have to figure out how to get the USB adsl modem running so i can get in here from home.

Thanks for your help win32sux !! Its been a blast.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mandrake 9.2 and P4P800 Lan driver hassles Alpine Dragon Linux - Hardware 3 10-30-2004 01:35 AM
Modem symlink hassles 16977 Linux - Newbie 5 07-24-2003 11:18 AM
dselect hassles... pix Debian 2 07-18-2003 08:19 AM
NVidia hassles with Mandrake 9 jenna_h Linux - Hardware 5 03-16-2003 09:10 AM
Recreating boot record/LILO hassles Malibyte Linux - General 2 03-08-2003 12:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration