LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-08-2003, 10:58 AM   #16
giddleberry
LQ Newbie
 
Registered: Oct 2003
Posts: 22

Original Poster
Rep: Reputation: 15

ok its unzipped to c:\
no error messages occured during or at the completion of the unzipping so i guess that all went to plan

thanks for taking the time to help me out by the way. hopefully ill be able to help a newb out one day too.
 
Old 10-08-2003, 10:59 AM   #17
SynnerST
LQ Newbie
 
Registered: Sep 2003
Location: United States - North Carolina
Distribution: Slackware
Posts: 18

Rep: Reputation: 0
Are you familiar with making a menu system in your config.sys file?
 
Old 10-08-2003, 11:00 AM   #18
giddleberry
LQ Newbie
 
Registered: Oct 2003
Posts: 22

Original Poster
Rep: Reputation: 15
nope, ive no idea what your talkin about
 
Old 10-08-2003, 11:03 AM   #19
SynnerST
LQ Newbie
 
Registered: Sep 2003
Location: United States - North Carolina
Distribution: Slackware
Posts: 18

Rep: Reputation: 0
Its ok, I'll explain it. In your config.sys file, you can build a menu system that will allow you to boot diffrent types of environments.

What I plan to do is show you how to build one that will, at boot time, give you the option to boot into Windows or Linux.

What I need now is a copy of your config.sys and autoexec.bat files so that I can incorperate the menu system and show you how to do it.

Then you should up and running.

Hang in there, we are almost done =)
 
Old 10-08-2003, 11:06 AM   #20
giddleberry
LQ Newbie
 
Registered: Oct 2003
Posts: 22

Original Poster
Rep: Reputation: 15
i have the line:
LOADLN C:\linux\vmlinuz root=/dev/hda1 rw
in my autoexec.bat

when i boot up i can press 1 to boot linux or 2 to boot windows
(i found how to do that on a site somewhere) but nothing to do with config.sys
 
Old 10-08-2003, 11:10 AM   #21
SynnerST
LQ Newbie
 
Registered: Sep 2003
Location: United States - North Carolina
Distribution: Slackware
Posts: 18

Rep: Reputation: 0
I need to see the entire config.sys and autoexec.bat files to build the menu system.

The best way is to open them in notepad then copy and paste the entire contents to here. If you don't want them on the net, you could mail them to me at synnerst@triad.rr.123

replace the "123" with "com" (to prevent spam)

If you don't have a config.sys file, that is ok too. We will just create one.

Both files will be in the root of C:\
 
Old 10-08-2003, 11:20 AM   #22
giddleberry
LQ Newbie
 
Registered: Oct 2003
Posts: 22

Original Poster
Rep: Reputation: 15
autoexec.bat :
@ECHO OFF
SET PROMPT=$P$G
SET PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\
CLS
ECHO Please select an OS:
ECHO.
ECHO [1] LINUX
ECHO [2] WINDOWS
ECHO.
CHOICE /C:12 "Selection? -> "
IF ERRORLEVEL 2 GOTO WIN
IF ERRORLEVEL 1 GOTO LINUX
:WIN
CLS
ECHO Starting windows...
WIN
GOTO END
:LINUX
ECHO Starting Linux...
CD\Linux
LOADLIN C:\Linux\vmlinuz root=/dev/hda1 rw
GOTO END

Config.sys:
Rem DEVICE=C:\WINDOWS\setver.exe
DEVICEHIGH=C:\WINDOWS\COMMAND\DRVSPACE.sys /MOVE

i think thats all
 
Old 10-08-2003, 11:23 AM   #23
SynnerST
LQ Newbie
 
Registered: Sep 2003
Location: United States - North Carolina
Distribution: Slackware
Posts: 18

Rep: Reputation: 0
Replace your current config.sys and autoexec.bat files with the following:

***************Autoexec.bat***************
@echo off
goto %config%
:windows
set prompt=$p$g
set path=c:\windows;c:\windows\command;c:;
goto end
:slackware
set path=c:\linux;
c:\linux\linux.bat
goto end
:end
*****************************************

**************Config.sys*******************
[menu]
menuitem = windows
menuitem = slackware

[common]
devicehigh=c:\command\drvspace.sys /move

[windows]

[slackware]
*****************************************

Just a heads up, make sure you use notepad or some other pure text editor to make these changes, also we may need to toy with it and move devicehigh=c:\command\drvspace.sys /move down to the [windows] area rather than the [common] area, but for now I think we should leave it there.

And last step:
In c:\linux\linux.bat make the following change:
\linux\loadlin \linux\vmlinuz root=/dev/sda4 rw
to:
\linux\loadlin \linux\vmlinuz root=/dev/hda1 rw

No other changes should be needed.
When you reboot, you should be faced with a prompt asking which OS to load.

Let me know how it works out =)

Last edited by SynnerST; 10-08-2003 at 11:43 AM.
 
Old 10-08-2003, 11:26 AM   #24
giddleberry
LQ Newbie
 
Registered: Oct 2003
Posts: 22

Original Poster
Rep: Reputation: 15
Thanks so much!!
 
Old 10-08-2003, 11:41 AM   #25
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
Edit your C:\linux\linux.bat, changing the un-rem'd line's /dev/sda4 to /dev/hda1 Then replace what's in your autoexec and config.sys files with this:
config.sys:
[menu]
menuitem=Linux, Zipslack
Menuitem=Win98, Windows 98
menucolor=15,1
menudefault=Win98, 10

[linux]

[win98]
Rem DEVICE=C:\WINDOWS\setver.exe
DEVICEHIGH=C:\WINDOWS\COMMAND\DRVSPACE.sys /MOVE

autoexec.bat:
goto %config%

:linux
call c:\linux\linux.bat

:win98

There is a Howto on this:
http://www.ibiblio.org/pub/Linux/doc...n95-98-ME.html
***Edit***:Add this under win98 in your autoexec:
set prompt=$p$g
set path=c:\windows;c:\windows\command;c:;

Last edited by aaa; 10-08-2003 at 12:02 PM.
 
Old 10-08-2003, 11:56 AM   #26
giddleberry
LQ Newbie
 
Registered: Oct 2003
Posts: 22

Original Poster
Rep: Reputation: 15
warning: unable to open an initial console.
kernel panic: No init found. Try passing init= option to kernel


same thing as before...
 
Old 10-08-2003, 12:01 PM   #27
SynnerST
LQ Newbie
 
Registered: Sep 2003
Location: United States - North Carolina
Distribution: Slackware
Posts: 18

Rep: Reputation: 0
Well this sux =/

I will do a little more looking see if I can come up with another solution.
 
Old 10-08-2003, 12:01 PM   #28
giddleberry
LQ Newbie
 
Registered: Oct 2003
Posts: 22

Original Poster
Rep: Reputation: 15
hehe, thanks
 
Old 10-08-2003, 12:02 PM   #29
SynnerST
LQ Newbie
 
Registered: Sep 2003
Location: United States - North Carolina
Distribution: Slackware
Posts: 18

Rep: Reputation: 0
You may give this a shot:

Read the faq / readme to find out how to pass an option to the kernel, then pass this argument to it:

init=3
 
Old 10-08-2003, 12:06 PM   #30
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
Check from Windows to see if the linux folder is ok. For example, check if the C:\linux\sbin\init file exists. Boot into DOS, and try different devices using loadlin: 'C:\linux\loadlin.exe C:\linux\vmlinuz root=/dev/hda1 rw'
Try things other than /dev/hda1, for example /dev/hdb1, /dev/hdc1, or /dev/hdd1. Also try different numbers: /dev/hda2, /dev/hda3 ... Perhaps /dev/hda by itself may work.
 
  


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
Booting ZipSlack from USB 128mb flash hotplainrice Slackware 11 07-25-2004 02:33 PM
Booting ZipSlack on XP - Don't feed the n00b VexSky Slackware 19 08-29-2003 03:37 PM
booting zipslack roshaph Linux - Newbie 3 07-31-2003 12:43 PM
zipslack booting roshaph Slackware 1 07-31-2003 11:38 AM
booting zipslack aliensub Slackware 5 07-03-2002 11:20 AM

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

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