Syllable Forum Index Syllable
Syllable Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Grub2 Chain Load

 
Post new topic   Reply to topic    Syllable Forum Index -> Syllable Desktop
View previous topic :: View next topic  
Author Message
nos



Joined: 17 Sep 2007
Posts: 95

PostPosted: Fri Apr 10, 2015 9:39 pm    Post subject: Grub2 Chain Load Reply with quote

I have 2 syllable partitions but since updating my linux install I lost my Grub2 chain load to Syllable so I had to do a new one. Since I did not find exactly what I was looking for on the forum and had trouble remembering what I did, I thought I would do a post for future reference for myself and others.

Using Linux with Grub2 you need to make a script under /etc/grub.d/
This is the entire contents of the script

#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
#! /bin/sh -e

menuentry "Syllable" {
set root=(hd0,2)
chainloader +1
}

you then need to run the command as root in a terminal "update-grub"
Notice the set root=(hd0,2) that is for Grub2 for Syllable on my 2nd partition if I remember correctly but on Grub Legacy the Syllable boot loader the drive numbering will change.
You just to adjust the hd0,2 till you hit the Syllable boot loader.

For grub legacy my menu entry for Syllable is - you can see the drive numbering has changed.
title Start Syllable
root (hd0,1)
kernel /system/kernel.so root=/dev/disk/ata/hde/1 disable_acpi=true disable_smp=true enable_ata_dma=false disable_agp=true disable_gfx_drivers=true usb_2=false
module /system/config/kernel.cfg
module /system/drivers/dev/bus/acpi
module /system/drivers/dev/bus/pci
module /system/drivers/dev/bus/ata
module /system/drivers/dev/hcd/ata_pci
module /system/drivers/fs/afs

When this line is wrong - root (hd0,1) you fail to find the partition

When this line is wrong - kernel /system/kernel.so root=/dev/disk/ata/hde/1
You will get errors that you can't mount the afs file system

This line was originally
kernel /system/kernel.so root=/dev/disk/ata/hdg/1

I used the live cd to get a clue what this line should be change to ie from hdg to hde
Just go to the file manger and right click to mount a drive.

it the listed my partitions on my drives as
/dev/disk/ata/hde/6
/dev/disk/ata/hde/5
/dev/disk/ata/hde/4
/dev/disk/ata/hde/2
/dev/disk/ata/hde/0

It is also reported the same from my Syllable install on the hard drive.
Back to top
View user's profile Send private message
Kaj
The Knights of Syllable


Joined: 14 Sep 2007
Posts: 2202
Location: Friesland

PostPosted: Sat Apr 11, 2015 10:05 am    Post subject: Reply with quote

Thanks! It also took me a while the first time.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Syllable Forum Index -> Syllable Desktop All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group