LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 05-28-2004, 07:21 PM   #16
jonliu
LQ Newbie
 
Registered: May 2004
Posts: 20

Original Poster
Rep: Reputation: 0

mcd,

I tried what you said, and then I ran lilo. The folloiwng error came up.

Fatal: First sector of /dev/hda5 doesn't have a valid boot signature
 
Old 05-28-2004, 07:47 PM   #17
mcd
Member
 
Registered: Aug 2003
Location: Boulder, CO
Distribution: Slackware, RHEL, CentOS
Posts: 825

Rep: Reputation: 33
Quote:
Now my hardrive is partitioned like this....

/dev/hda
dev/hda1=linux

/dev/hda3
dev/hda5=windows

the indent means that the following item is within the unindented one.


hmm. are you sure windows is installed to that partition? you said you installed windows before installing linux. why is it on hda5 then? normally it would be on hda1... if you created a complete partition table beforehand I can see how this might have happened. if you're sure that windows is installed on hda5, are you sure it installed correctly? are you sure you didn't accidentally install linux over it? it doesn't sound to me like hda5 contains a working install of windows.

the only other thing i can think of is that maybe the windows partition needs to be flagged as bootable in the partition table. i don't think this is true though, and i'm not in front of my computer so i can't check. i guess in order to help more, i'll need to see exactly how your machine is set up. please post your /etc/fstab file, your entire /etc/lilo.conf file, and the output of

fdisk -l /dev/hda

sorry nothing has worked so far, hopefully your windows installation is fine and it's just a configuration error
 
Old 05-28-2004, 08:37 PM   #18
jonliu
LQ Newbie
 
Registered: May 2004
Posts: 20

Original Poster
Rep: Reputation: 0
MCD



Fstab Reads:
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc devpts gid=5,mode=620 0 0
none /dev/shm proc defaults 0 0
/dev/hda4 swap tmpfs defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto, ownder, kudzu, ro 0 0



Lilo Reads:


prompt
timeout=50
default=linux
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
message=/boot/message
lba32

image=/boot/vmliuz-2.4.20.8
label=Linux
initrd=/boot/initrd-2.4.20-88.img
read-only
append="root=LABEL=/"

other=/dev/hda5
label=windows
table=/dev/hda


And the command ./fdisk -l /dev/hda reads:


Device Boot Start End Blocks Id System

/dev/hda1 * 1 13 104391 83 Linux
/dev/hda12 14 1288 10241437+ 83 Linux
/dev/hda13 1289 2367 8667067+ f Win95 Ext'd(LBA)
/dev/hda14 2368 2432 522112+ 82 Linux swa
/dev/hda15 1289 2367 8667036 e Win95 FAT16(LBA)


Thank for all your time and help MCD.
 
Old 05-28-2004, 08:38 PM   #19
jonliu
LQ Newbie
 
Registered: May 2004
Posts: 20

Original Poster
Rep: Reputation: 0
ah shit it got fucked up. ill post it online and put a link to it so the info is readable.
 
Old 05-28-2004, 09:41 PM   #20
jonliu
LQ Newbie
 
Registered: May 2004
Posts: 20

Original Poster
Rep: Reputation: 0
Here is a link to the those files...http://home.comcast.net/~jonliu/System.html
 
Old 05-28-2004, 10:45 PM   #21
mcd
Member
 
Registered: Aug 2003
Location: Boulder, CO
Distribution: Slackware, RHEL, CentOS
Posts: 825

Rep: Reputation: 33
well well well. i have no idea how or why, but all your partitions are hda15 etc. instead of hda5. in fact, your setup doesn't make much sense to me at all. i'm amazed you can boot linux! but anyway, as long as it's working, i won't tell you to mess with it. here's what i would do:

first your windows lilo entry to this:

other=/dev/hda15
label=windows
table=/dev/hda


and then, if you want to be able to access your windows partition from linux, you can add a new line to your fstab

su root
(password)
mkdir /mnt/windows
emacs /etc/fstab

and add this line:

/dev/hda15 /mnt/windows auto defaults,umask=000 0 0


now when you boot up your computer, you should be offered the choice of which OS to boot, and if you boot linux, you should be able to access all your windows files and directories through /mnt/windows

hopefull that will work (finally!)
 
Old 05-29-2004, 12:14 AM   #22
jonliu
LQ Newbie
 
Registered: May 2004
Posts: 20

Original Poster
Rep: Reputation: 0
I made a mistake in copying the ./fdisk call hahah.....that's why the headers had weird number like 12 13 15. either way it shouldn't make a differnece in what you said since i can just replaced 15 with 5.

http://home.comcast.net/~jonliu/System.html

when you say change my lilo entry, do you mean add that piece of code or change the entire lilo so that there is only those 3 lines of code.( i just added it to the end, so my lilo still looks identical to the way it was before).

When I run lilo now it says the following

./lilo.conf :line 1: promp:command not found
.lilo.conf: line 8:lba2:command not found
./lilo.conf: line 13:read-only:command not found

Still, when I reboot, it goes straight into linux

Last edited by jonliu; 05-29-2004 at 12:19 AM.
 
Old 05-29-2004, 08:08 PM   #23
jonliu
LQ Newbie
 
Registered: May 2004
Posts: 20

Original Poster
Rep: Reputation: 0
any suggestions.
 
  


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
Dual Booting XP and Linux LeftofCool Linux - Software 17 02-11-2004 10:24 AM
Dual Booting XP and Linux... DiZASTiX Linux - General 6 07-20-2003 10:34 AM
dual linux booting salparadise Linux - Software 2 04-24-2003 03:18 AM
Dual booting Linux BittaBrotha Linux - Distributions 5 11-04-2002 04:10 AM
Dual-booting Linux hank@$3800 Linux - Newbie 1 07-08-2002 09:48 PM


All times are GMT -5. The time now is 06:45 AM.

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