LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-28-2004, 11:02 PM   #1
flira
LQ Newbie
 
Registered: May 2004
Location: Florida
Posts: 9

Rep: Reputation: Disabled
Desperate dual booting question


My situation is as follows

I have a laptop and no floppy drive which really sucks for problems regardin booting

I had windows installed on a 60 gb hard drive
i used partition magic to partitioned it in 1 partition of 50gb other of 10gb with a partition of 512MB for Swap...
Then after installing linux Slackware 9.1 ,i realized that lilo would only recognise the linux partition, after a lot of work and sweat i found a trhread that gave me the code to make it see hda1 windows partition...
i was happy lilo's red screen was showing up windows as a boot option.
When i started windows everything seemed to be going fine untill i got to a prompt from partition magic sayin that partition magic was no longer running and the comp was being restarted(and it would happen every time i chose windows as my option)...Very Very furstrating...
I dint give up and i thought about reinstalling windows to override the partition magic prompt.
GOod i had windows running in a partition of itself and linux on its own partition but lilo wasnt showing up at the start up...
I got the linux cd and managed to boot from it into llinux on hda2
And reinstalled lilo(Now lilo is again only showing linux)

I edited lilon again so that the windows partitio0n wouild show up with the following code

# Windows booting configuration begins
other = /dev/hda1
label = windows
#Windows booting configuration ends

The i saved it
and ran lilo from the prompt
What happens?
it says something like

FATAL:first sector of /dev/hda1 doesn't have a valid boot signature
I really dont want to reinstall linux again since ive been doin a lot of work on it ever since(gdesklets downloads and seting up my touch pad and stuff)

Remember i have no floppy drive on my laptop but i have an active internet connection runin on it

PLSHELPTHISNOOB

Last edited by flira; 05-28-2004 at 11:10 PM.
 
Old 05-29-2004, 12:33 AM   #2
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
Alright, well, this isn't too hard to fix


As root, you'll want to run
cfdisk /dev/hda

It's a menu-based disk partition manager.
You simply need to set the bootable flag on the Windows hda1. Save it.
Run lilo again.

If you make a mistake in cfdisk, just exit without saving, and do it again.

You should back up anything you deem important before messing with partition settings, of course.

--Shade
 
Old 05-29-2004, 07:11 AM   #3
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
The best thing to do if you fear boot problems, but don't have a floppy drive is to download a LiveCD such as Knoppix, MandrakeMove, Mepis or SLAX (see DistroWatch for details on these distros) and keep it handy as an emergency Linux boot disc (in case booting from Slack's Install CD1 rescue function is not useful/helpful in your situation). From such a CD, you can boot into a full Linux desktop that runs from the CD rather than your HDD, mount the installed partitions, and use the chroot command (read man chroot for more details) to edit the installed system's files as if the installed system was running.

There's no need to reinstall... not Linux, anyway. Windows, maybe. Did you have a long PM batch session going that did not complete? That's the usual reason for such errors with Partition Magic. Each drive being repartitioned needs a reboot before it is processed, and PM will demand going through its entire batch file before it will say that it has completed (either successfully or not) and will release the Windows boot process to its normal function by removing the batch file with the previous instructions.

So it's possible that this incomplete process has borked the Windows partitions in the first place, but in case it has not....

In addition to the "set partition active" strategy given above, you might want to consider adding a table= entry to your lilo.conf as well.

From man lilo.conf:
Quote:
PER-IMAGE SECTION
A per-image section starts with either a line

image=pathname

(to indicate a file or device containing the boot image of
a Linux kernel), or a line

other=pathname

to indicate an arbitrary system to boot.

In the former case, if an image line specifies booting
from a device, then one has to indicate the range of sec-
tors to be mapped using

range=start-end

In the latter case (booting another system) there are the
three options

loader=chain-loader
This specifies the chain loader that should be
used. By default /boot/chain.b is used. The chain
loader must be specified if booting from a device
other than the first hard or floppy disk.

table=device
This specifies the device that contains the parti-
tion table. The boot loader will not pass parti-
tion information to the booted operating system if
this variable is omitted. (Some operating systems
have other means to determine from which partition
they have been booted. E.g., MS-DOS usually stores
the geometry of the boot disk or partition in its
boot sector.) Note that /sbin/lilo must be re-run
if a partition table mapped referenced with `table'
is modified.
Basically, as well as setting the Windows partition as active (bootable), you also need to tell LiLO what partition the Windows boot files live on.

Hope this helps.
 
Old 05-29-2004, 11:39 PM   #4
flira
LQ Newbie
 
Registered: May 2004
Location: Florida
Posts: 9

Original Poster
Rep: Reputation: Disabled
I am very greatfull that u guys answered my post that nicely...
Well, i tried to use vfdisk to solve that problem
I set NTFS BOOTABLE and linux ext3 BOOTABLE
I then ran lilo again with the code i gave u above added..
It still gives me the first sector of /dev/hda1 doesnt have a valid boot signature warning
and when i boot the linux option is the only showin up

Snif
Guys looks like ill have to install windows then linux again right?

If u have any other options pls let me know, ill wait a couple of days
 
Old 05-30-2004, 12:37 AM   #5
subgenius
Member
 
Registered: Mar 2004
Distribution: Slackware 9.1
Posts: 41

Rep: Reputation: 15
My lilo.conf follows. From your post I could not tell

1. do you have the "boot=/dev/hda" entry in the
global section?

2. do you have the "table = /dev/hda" entry in
the Windows partition section?

I don't think the framebuffer stuff is relevant to just getting
the computer to boot. Without a framebuffer setting the
screen should default to 640x480. Notice that my lilo.conf was
generated by liloconfig. Did you try that?

One last note - only my Windows partition is set to be bootable.

# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section

boot=/dev/hda
prompt
timeout=300

# VESA framebuffer console @ 800x600x256
# vga = 771
# Normal VGA console
# vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# ramdisk = 0 # paranoia setting
# End LILO global section

# DOS bootable partition config begins
other = /dev/hda1
label = Windows
table = /dev/hda
# DOS bootable partition config ends

# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/hda6
label = Slackware
read-only # Non-UMSDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends
 
Old 05-30-2004, 01:26 AM   #6
flira
LQ Newbie
 
Registered: May 2004
Location: Florida
Posts: 9

Original Poster
Rep: Reputation: Disabled
Ok guys did it
Thhank you very much for your time and attention

The whole problem was really a human problem in the end
remember i told you my code for the lilo.conf was

other = /dev/hda1
label = Windows

Well when i did what u guys told me to do regarding cfdisk

I realized that the windowss partition was hda3 instead
duh!!!
Ok call me stupid but that as all i had to do

other = /dev/hda3
label = Windows

Well now i finally have linux on my comp and imm damn ready to start learning about it
I hope u guys can help me in the future
I am very excited about this
 
Old 05-30-2004, 06:54 AM   #7
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Congratulations! The best thing is (as you will soon discover), that nearly all problems you will encounter under Slackware are similarly "human".

Slackware just works, and if it doesn't it's 99.999% of the time because you've done something wrong. Saves a lot of hunting down dead ends when troubleshooting .
 
  


Reply



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 question blackjack90 Linux - Newbie 9 09-06-2005 11:39 AM
Dual Booting Question? glaz Linux - Newbie 10 07-02-2005 08:00 AM
another question about dual booting Steelrat Linux - Newbie 3 02-15-2004 09:24 AM
Dual-booting question Renaxgade Linux - Software 1 10-20-2003 07:41 PM
Question on Dual booting coolamit78 Linux - Software 10 09-28-2003 10:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:04 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
Open Source Consulting | Domain Registration