LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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-23-2005, 12:17 AM   #1
audiorevolution
LQ Newbie
 
Registered: May 2005
Location: Philadelphia, PA
Distribution: Xubuntu 5.04 PPC
Posts: 29

Rep: Reputation: 15
Configuring boot to recognize other Linux partitions


I have Debian/sarge and Ubuntu 5.04 installed onto my harddrive (if you're asking why I'm running two Debian distros, it's because I am having massive difficulty configuring XF86 with my video card, so I need to be able to boot into another OS). My boot loader, Yaboot (PPC), is only configured to load Ubuntu, though, and doesn't give me the option for booting Debian.

This is my hda layout:
Code:
/dev/hda
        #                    type name                 length   base     ( size )  system
/dev/hda1     Apple_partition_map Apple                    63 @ 1        ( 31.5k)  Partition map
/dev/hda2         Apple_Bootstrap boot                   1954 @ 64       (977.0k)  NewWorld bootblock
/dev/hda3         Apple_UNIX_SVR2 debian             36718750 @ 2018     ( 17.5G)  Linux native
/dev/hda4         Apple_UNIX_SVR2 swap                2450758 @ 56154362 (  1.2G)  Linux swap
/dev/hda5         Apple_Bootstrap untitled               1954 @ 36720768 (977.0k)  NewWorld bootblock
/dev/hda6         Apple_UNIX_SVR2 ubuntu             18564454 @ 36722722 (  8.9G)  Linux native
/dev/hda7         Apple_UNIX_SVR2 swap                 867186 @ 55287176 (423.4M)  Linux swap
The Yaboot config file (/etc/yaboot.conf) is as such:

Code:
## yaboot.conf generated by the Ubuntu installer
##
## run: "man yaboot.conf" for details. Do not make changes until you have!!
## see also: /usr/share/doc/yaboot/examples for example configurations.
##
## For a dual-boot menu, add one or more of:
## bsd=/dev/hdaX, macos=/dev/hdaY, macosx=/dev/hdaZ

boot=/dev/hda5
device=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:
partition=6
root=/dev/hda6
timeout=100
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot
enablecdboot
Debian=/dev/hda3

image=/boot/vmlinux
        label=Linux
        read-only
        initrd=/boot/initrd.img
        append="quiet splash"

image=/boot/vmlinux.old
        label=old
        read-only
        initrd=/boot/initrd.img.old
        append="quiet splash"

# This entry automatically added by the Ubuntu installer for an existing
# Linux installation on /dev/hda3.
image=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:3,/boot/vmlinux
    label=hda3-Linux
    root=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:3
    append="root=/dev/hda3 ro"
    initrd=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:3,/boot/initrd.img
~
I might have found a solution to my XF86 problem, so I'm anxious to boot back into Debian, so any help is very appreciated.
 
Old 05-23-2005, 05:18 AM   #2
Ynot Irucrem
Member
 
Registered: Apr 2005
Location: Perth, Western Australia
Distribution: Debian
Posts: 233

Rep: Reputation: 30
first off, why are you using two swap partitions? two distros can use the same swap. just go into your /etc/fstab for the distro that is using the /dev/hda7 swap and change the entry that looks something like
Code:
/dev/hda7       none            swap    sw              0       0
to refer to /dev/hda4 (I'm assuming you want to use the bigger swap partition), then you can use that other swap space for something else.

secondly, it looks like the ubuntu installer has already set up an entry for debian in the boot loader.
Quote:
# This entry automatically added by the Ubuntu installer for an existing
# Linux installation on /dev/hda3.
maybe the boot loader is like the one in fedora, which just boots the default OS unless you press a key within 3 seconds, at which point it comes up with the boot menu.
I'm not familiar with yaboot, but "man yaboot" should turn up how you can turn this functionality off, if indeed this is whats happening.

if this isn't whats happening, what *exactly* happens when you boot?

also, this might help you: http://penguinppc.org/bootloaders/ya...t-howto.shtml/
 
  


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
New install doesn't recognize/automount all partitions RobF Debian 1 06-23-2005 12:46 PM
Recognize Windows Partitions in Ubuntu LJT Linux - Software 6 10-22-2004 02:06 PM
[b]How do I get Linux to recognize a dos partitions?[/b] Sagar_Indurkhya Slackware 5 09-19-2004 08:06 PM
Win XP Install Overwrites MBR and Linux Rescue Fails to Recognize Linux Partitions carrlane Linux - Software 8 01-14-2004 07:49 AM
Linux does not recognize partitions psybertron Linux - Newbie 2 11-28-2003 11:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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