LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-14-2006, 06:28 PM   #1
cuber351
LQ Newbie
 
Registered: Sep 2006
Posts: 8

Rep: Reputation: 0
Edit boot.ini to boot into slackware.


I installed Linux (slackware) onto a new partition on my c drive. Now, I cant boot into because its not in my boot.ini. What can I add to it so I can dual boot?
 
Old 09-14-2006, 07:04 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Have a look at the howto at http://www.tldp.org/HOWTO/Linux+NT-Loader.html - it does what it sounds like you're asking.
 
Old 09-14-2006, 07:13 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Presumes a bootloader was installed to the boot sector record on that partition ...
 
Old 09-14-2006, 07:18 PM   #4
cuber351
LQ Newbie
 
Registered: Sep 2006
Posts: 8

Original Poster
Rep: Reputation: 0
Is there someway I can use windows bootloader? Without installing any other bootloader? Or is there a distribution of linux that automatically allows windows and linux to boot?
 
Old 09-14-2006, 07:39 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
You will be using the windoze loader, but it does not meet the multiboot specifications. Hence you also need to install an "aware" loader, or install one to the MBR. There are several possible alternatives - free and commercial.
It M$oft would look outside their own world you (we) wouldn't have this problem.
 
Old 09-14-2006, 07:42 PM   #6
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
Quote:
Originally Posted by cuber351
Is there someway I can use windows bootloader? Without installing any other bootloader? Or is there a distribution of linux that automatically allows windows and linux to boot?
Any distro will allow you to dual boot. When you are logged into Slackware as root, run 'liloconf' and give it the info to both your windows and linux partition. Then tell it to instal on the MBR.

I don't think you really want to boot Linux from the windows boot loader, I think you might just not know what your alternative are yet, but I could be wrong.

..drkstr
 
Old 09-14-2006, 08:23 PM   #7
cuber351
LQ Newbie
 
Registered: Sep 2006
Posts: 8

Original Poster
Rep: Reputation: 0
Can someone give me a noob-proof tutorial on the *aware* boot loader? Link to download, exactly what to download, what to put in the boot loader config file.
 
Old 09-14-2006, 10:44 PM   #8
cuber351
LQ Newbie
 
Registered: Sep 2006
Posts: 8

Original Poster
Rep: Reputation: 0
Ok, well i was able to get lino working and whatnot. But, I couldnt access my hard drives besides the one linux is on and I couldnt get the internet working. I am using high speed through ethernet ports. What should I do now?
 
Old 09-14-2006, 10:50 PM   #9
drumz
Member
 
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 905

Rep: Reputation: 694Reputation: 694Reputation: 694Reputation: 694Reputation: 694Reputation: 694
I'm going to assume you installed Slackware to /dev/hda2 (which, btw, isn't your c: drive, /dev/hda1 is). If your Slackware partition is something else, replace it in my example. Boot Slackware using CD 1 and enter root=/dev/hda2 at the prompt. After it boots change to the root directory and run /var/log/setup/setup.liloconfig:
Code:
cd /
/var/log/setup/setup.liloconfig
Choose Expert
Choose Begin
Choose OK (you don't need extra parameters)
Choose OK
Choose MBR so lilo will be in control of booting your system
Choose 30 seconds
Choose Linux
Type in /dev/hda2 for your Slackware install
Type in a name ("Slackware" is a good choice)
Now choose Windows to add it to the list
Type in /dev/hda1 (it should have a star next to it)
Type in a name ("Windows" is a good choice)
Now choose Install.

You should be good to go.

Note: you can have NTLDR boot Lilo, which then boots Slackware, but it's a pain and you don't want to do it. Believe me. I tried.

Last edited by drumz; 09-14-2006 at 10:51 PM.
 
Old 09-14-2006, 10:55 PM   #10
drumz
Member
 
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 905

Rep: Reputation: 694Reputation: 694Reputation: 694Reputation: 694Reputation: 694Reputation: 694
You posted while I was writing my last post.
Code:
/etc/rc.d/rc.inet1 eth0_start
should give you an internet connection. Check out http://www.slackbook.org/ It's got a lot of information you could use about right now.
 
Old 09-14-2006, 11:32 PM   #11
cuber351
LQ Newbie
 
Registered: Sep 2006
Posts: 8

Original Poster
Rep: Reputation: 0
Ok, I'll try that. But I tried your hard drive suggestion and i got a directory does not exist error.
 
Old 09-15-2006, 01:13 AM   #12
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
run 'netconf' to configure your network.

'fdisk -l' will list all of the device names to your partitions. Pick the one to your windows drive (the one you chose when you set up lilo maybe?) then add it to your /etc/fstab file.

Code:
/dev/hda?   /mnt/win   auto   defaults,users,ro  0   0
Then make the directory you just told your computer to mount the windows partition on, 'mkdir /mnt/win', and mount the partition there, 'mount /mnt/win'.

Your windows files should then be located in the /mnt/win directory and will be there everytime you boot your computer until you tell it otherwise.

regards,
...drkstr

note: I could be wrong about the fstab options, I've never mounted an ntfs before, but should work this way. Maybe somone can chime in with some more "desirable" options.

Last edited by drkstr; 09-15-2006 at 01:17 AM.
 
Old 09-15-2006, 08:05 PM   #13
cuber351
LQ Newbie
 
Registered: Sep 2006
Posts: 8

Original Poster
Rep: Reputation: 0
I got the internet to work now. I tried your hda suggestion and I got a access is denied error while i was already booted into linux so i'll try it before i boot into linux. And my sound doesnt work at all. I have a sound blaster Live 24 bit pci sound card. Plust my mouse scroll wheel wont work either.
 
Old 09-15-2006, 08:25 PM   #14
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
Erm... what do you mean by before Linux boots? You can't do anything before Linux boots. Do you mean before you started the gui?

When you got your permission denied error, what exactly were your trying to do, and were you doing it logged in as root? Only root can run system administration commands such as configuring hardware.

For sound, run these 3 commands (as root):
'alsaconf', 'alsamixer', alsactl store'.

alsaconf configures the sound device, alsamixer sets the sound levels, you will need to turn up volumes and unmute the channels. 'alsactl store' saves the sound setting so they will be there if you reboot.

Mouse wheel.
Not sure there. It didn't work for me either on the default 2.4 kernel. Didn't bother me for long though because upgradding to the 2.6 kernel was one of the first few things I did (where it worked on it's own). Maybe someone can direct you in getting it working for 2.4 kernel. You might want to wait a bit before tackeling the kernel compile. Not saying you can't do it, but it's a good idea to learn to swim before jumping into the deep end. Maybe try your hand at compiling a few simple applications first, then move your way up.

regards,
...drkstr
 
Old 09-15-2006, 08:45 PM   #15
cuber351
LQ Newbie
 
Registered: Sep 2006
Posts: 8

Original Poster
Rep: Reputation: 0
I tried to run it when the gui was loaded. Should I try it before I load the gui?
EDIT: I tried mounting my windows hard drive and that worked. But I cant add my other hard drives. It says:

Could not mount device.
The reported error was:
[mntent]: warning: no final newline at the end of /etc/fstab
mount: you must specify the filesystem type

Last edited by cuber351; 09-15-2006 at 08:57 PM.
 
  


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
Kind souls: help getting Mandriva install 2 boot? edit boot.ini/grub /boot device or NoMoreReinstallMS Linux - Newbie 1 08-09-2006 04:34 AM
Boot.ini configuration to run Slackware..??? avols143 Slackware 1 07-26-2006 09:46 AM
GRUB: How to boot WinXP (NTLDR, NTDETECT.COM & BOOT.INI) from boot partition (EXT2) ? Rayen16 Linux - Software 1 05-25-2006 12:09 PM
How to Edit boot.ini for linux AS 3? sathyguy Linux - Enterprise 3 11-19-2005 01:36 AM
edit windows boot ini to allow booting to lilo V_LESTAT Linux - Newbie 2 01-15-2004 06:58 PM

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

All times are GMT -5. The time now is 01:02 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