LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices

Reply
 
Search this Thread
Old 04-19-2010, 04:15 AM   #1
ripp3r
Member
 
Registered: Feb 2010
Location: Switzerland
Distribution: Slackware 13.0 x64
Posts: 71

Rep: Reputation: 15
Dual - boot Slackware and Backtrack hang


Hi guys,

I've slackware 64 bit installed in partition sda1.

The BT4's installation is in sda3.

Now, if I install GRUB from BT4, I can boot BT4 without problem... but I can't boot Slackware (I can see it, but if I start nothing happens, just black screen).

Same with Slackware, after installing LILO and added BT4 I can boot slackware but not backtrack (this time, I start BT and it hangs on USB devices, I have nothing attacched and it seems like it stops at the card reader).

I've acer aspire 5735z

I used BT for a long time without problem, this is the first time that I dual - boot.

here's my LILO.conf
Code:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/sda
compact       
  bitmap = /boot/slack.bmp
  bmp-colors = 255,0,255,0,255,0
  bmp-table = 60,6,1,16
  bmp-timer = 65,27,0,255
# Append any additional kernel parameters:
append=" vt.default_utf8=0"
prompt
timeout = 50
vga = 791
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
  root = /dev/sda1
  label = slack64
  read-only  # Partitions should be mounted read-only for checking
# Linux bootable partition config ends
# Linux bootable partition config begins
image = /boot/vmlinuz
  root = /dev/sda3
  label = BT4
  read-only  # Partitions should be mounted read-only for checking
# Linux bootable partition config ends
Hope you can help!

Thanks
 
Old 04-19-2010, 09:02 AM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware®
Posts: 11,104
Blog Entries: 3

Rep: Reputation: 1402Reputation: 1402Reputation: 1402Reputation: 1402Reputation: 1402Reputation: 1402Reputation: 1402Reputation: 1402Reputation: 1402Reputation: 1402
Hi,

Which do you desire to use? Lilo or Grub?

In your 'lilo.conf' above you are booting the same kernel for both.

Do a 'man lilo.conf' to get an idea of how to chainload. I prefer the 'man lilo.conf' from the cli on Slackware since it has more examples.

Hint: 'other' would be one way.

I would also add that a search here on LQ would get you loads of information on this very problem.

 
Old 04-20-2010, 08:57 AM   #3
ripp3r
Member
 
Registered: Feb 2010
Location: Switzerland
Distribution: Slackware 13.0 x64
Posts: 71

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by onebuck View Post
Hi,

Which do you desire to use? Lilo or Grub?

In your 'lilo.conf' above you are booting the same kernel for both.
Hi,

Thanks for your reply.

I like lilo so I would like to stay with it.

Excuse me, but in my lilo.conf file I've:

Code:
# Linux bootable partition config begins
image = /boot/vmlinuz
  root = /dev/sda1
  label = slack64
  read-only  # Partitions should be mounted read-only for checking
# Linux bootable partition config ends
As you can see it's on SDA1

The other is on SDA3:
Code:
# Linux bootable partition config begins
image = /boot/vmlinuz
  root = /dev/sda3
  label = BT4
  read-only  # Partitions should be mounted read-only for checking
# Linux bootable partition config ends

And anyway, if they're the same... why one hangs and the other no?!


Thanks
 
Old 04-20-2010, 01:43 PM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware®
Posts: 11,104
Blog Entries: 3

Rep: Reputation: 1402Reputation: 1402Reputation: 1402Reputation: 1402Reputation: 1402Reputation: 1402Reputation: 1402Reputation: 1402Reputation: 1402Reputation: 1402
Hi,

Code:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/sda
This is the boot device and your /boot contains the kernels that you wish to start. You are booting one of the kernels for one and when you attempt to boot the other the proper kernel is not in the '/boot'.

If you want to have dual boot then I suggest that you use the 'other' option for lilo. Just write in the stanza for your '/etc/lilo.conf';

Code:
### other boot stanza
other=/dev/sda3
label = BT4
#end of stanza
Be sure to rerun 'lilo' to update the bootloader.

If you want to use the Slackware '/boot' then you can use the '/mnt' to mount your BT4 and copy the BT4 kernel to the '/boot' then create a initrd if necessary. Then create a stanza for that within '/etc/lilo.conf'. After which you will run 'lilo' again

Code:
#stanza 
image = /mnt/BT4/boot/vmlinuz-bt4
 initrd = /mnt/BT4/boot/initrd.img-bt4 <<You will have to create if needed
  root = /dev/sda3
  label = BT4
  read-only

Last edited by onebuck; 04-20-2010 at 01:44 PM.
 
Old 04-30-2010, 04:29 AM   #5
ripp3r
Member
 
Registered: Feb 2010
Location: Switzerland
Distribution: Slackware 13.0 x64
Posts: 71

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by onebuck View Post
Hi,

Code:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/sda
This is the boot device and your /boot contains the kernels that you wish to start. You are booting one of the kernels for one and when you attempt to boot the other the proper kernel is not in the '/boot'.

If you want to have dual boot then I suggest that you use the 'other' option for lilo. Just write in the stanza for your '/etc/lilo.conf';

Code:
### other boot stanza
other=/dev/sda3
label = BT4
#end of stanza
Be sure to rerun 'lilo' to update the bootloader.

If you want to use the Slackware '/boot' then you can use the '/mnt' to mount your BT4 and copy the BT4 kernel to the '/boot' then create a initrd if necessary. Then create a stanza for that within '/etc/lilo.conf'. After which you will run 'lilo' again

Code:
#stanza 
image = /mnt/BT4/boot/vmlinuz-bt4
 initrd = /mnt/BT4/boot/initrd.img-bt4 <<You will have to create if needed
  root = /dev/sda3
  label = BT4
  read-only
hi sorry but I had some problem...

Can you please explain me what you mean by:

Quote:
then create a initrd if necessary
I copied /dev/sda3/BT4/boot/vmlinuz-2.6.30.9
to /boot/ (in my slackware)

then the lilo.conf appear to be like so:

Code:
append=" vt.default_utf8=0"
boot = /dev/sda
compact

  bitmap = /boot/slack.bmp
  bmp-colors = 255,0,255,0,255,0
  bmp-table = 60,6,1,16
  bmp-timer = 65,27,0,255

prompt
timeout = 1200
change-rules
  reset
vga = 791

# Linux bootable partition config begins
image = /boot/vmlinuz
  root = /dev/root
  label = Linux
  read-only
# Linux bootable partition config ends

#other boot stanza
other=/dev/sda3
label = BT4
#end of stanza

#stanza 
image = /mnt/sda3/boot/vmlinuz-bt4
 initrd = /mnt/sda3/boot/initrd.img-bt4 <<You will have to create if needed
  root = /dev/sda3
  label = BT4
  read-only
Now what I don't understand is:

if I do a LS in /mnt/sda3, I don't see anything, maybe should I change the image path with something like:

Code:
image = /dev/sda3/boot/.......
And again, what is initrd? I don't think I need it... I found this page
http://members.toast.net/art.ross/rute/node35.html


Thanks
 
Old 04-30-2010, 07:45 AM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware®
Posts: 11,104
Blog Entries: 3

Rep: Reputation: 1402Reputation: 1402Reputation: 1402Reputation: 1402Reputation: 1402Reputation: 1402Reputation: 1402Reputation: 1402Reputation: 1402Reputation: 1402
Hi,

Quote:
excerpt from 'man initrd';

NAME
initrd - boot loader initialized RAM disk
DESCRIPTION
The special file /dev/initrd is a read-only block device. Device /dev/initrd is a RAM disk that is initialized (e.g. loaded) by the boot loader before the kernel is started. The kernel then can use the the block device /dev/initrd's contents for a two phased system boot-up.

In the first boot-up phase, the kernel starts up and mounts an initial root file-system from the contents of /dev/initrd (e.g. RAM disk initialized by the boot loader). In the second phase, additional drivers or other modules are loaded from the initial root device's contents. After loading the additional modules, a new root file system (i.e. the normal root file system) is mounted from a different device.
BOOT-UP OPERATION
When booting up with initrd, the system boots as follows:

1. The boot loader loads the kernel program and /dev/initrd's contents into memory.

2. On kernel startup, the kernel uncompresses and copies the contents of the device /dev/initrd onto device /dev/ram0 and then frees the memory used by /dev/initrd.

3. The kernel then read-write mounts device /dev/ram0 as the initial root file system.

4. If the indicated normal root file system is also the initial root file-system (e.g. /dev/ram0 ) then the kernel skips to the last step for the usual boot sequence.

5. If the executable file /linuxrc is present in the initial root file-system, /linuxrc is executed with uid 0. (The file /linuxrc must have executable permission. The file /linuxrc can be any valid executable, including a shell script.)

6. If /linuxrc is not executed or when /linuxrc terminates, the normal root file system is mounted. (If /linuxrc exits with any file-systems mounted on the initial root file-system, then the behavior of the kernel is UNSPECIFIED. See the NOTES section for the current kernel behavior.)

7. If the normal root file has directory /initrd, device /dev/ram0 is moved from / to /initrd. Otherwise if directory /initrd does not exist device /dev/ram0 is unmounted. (When moved from / to /initrd, /dev/ram0 is not unmounted and therefore processes can remain running from /dev/ram0. If directory /initrd does not exist on the normal root file-system and any processes remain running from /dev/ram0 when /linuxrc exits, the behavior of the kernel is UNSPECIFIED. See the NOTES section for the current kernel behavior.)

8. The usual boot sequence (e.g. invocation of /sbin/init) is performed on the normal root file system. ...
If you look at '/boot/README.initrd';

Quote:
excerpt '/boot/README.initrd';

Slackware initrd mini HOWTO
by Patrick Volkerding, volkerdi@slackware.com
Wed Jun 17 01:49:18 CDT 2009

This document describes how to create and install an initrd, which may be
required to use the 2.6 kernel. Also see "man mkinitrd".

1. What is an initrd?
2. Why to I need an initrd?
3. How do I build the initrd?
4. Now that I've built an initrd, how do I use it?
Read the '/boot/README.initrd' file to fully understand the needs or usage.


Just a few more useful links;

Slackware® Essentials
Slackware® Basics
Linux Documentation Project
Rute Tutorial & Exposition
Linux Command Guide
Bash Reference Manual
Advanced Bash-Scripting Guide
Linux Newbie Admin Guide
LinuxSelfHelp
Getting Started with Linux

The above links and others can be found at 'Slackware-Links' . More than just Slackware® links!
 
  


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 boot vista and backtrack 3 CaNe1832 Linux - Laptop and Netbook 2 04-28-2009 10:44 AM
Help With BackTrack Dual Boot with Vista proxyzero Linux - Newbie 13 03-10-2008 04:48 PM
Dual Boot Auditor and Backtrack ? lomex Linux - Software 4 04-03-2007 08:33 AM
WGT155T causing slackware to hang at boot dave`2005 Linux - Wireless Networking 9 10-17-2005 01:24 PM
GeForce, Hang on boot, hang on X ctrl-alt-bspace bigearsbilly Linux - Hardware 0 03-01-2004 07:56 AM


All times are GMT -5. The time now is 06:11 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration