Hello there,
I have a powerbook G4 and debian installed on it. I recently lost my yaboot bootloader and it starts automatically with osx. Does anyone know how to restore the bootloader without losing any data?
Thanks.
Boot into the box with d-i, when it reaches the partitioning stage, go to
console 2, mount your root partition, chroot into it, mount /proc and /sys,
check your yaboot.conf and rerun ybin.
This should mostly do it, but YMMV.
Friendly,
Sven Luther
--
To UNSUBSCRIBE, email to debian-powe...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
If you still have a working yaboot.conf, you can boot from an install
CD or a Live CD (I usually use a Ubuntu Live CD), chroot into your
system and just run `ybin -v`. Otherwise, assuming you didn't get
into this trouble by having a bad yaboot.conf in the first place, you
might be able to extract your yaboot.conf from the boot partition. If
you need any help with any of this, all you have to do is ask ;-)
- Felix
--
Felix C. Stegerman <f...@obfusk.net> http://obfusk.net
~ "Any sufficiently advanced bug is indistinguishable from a feature."
~ -- R. Kulawiec
~ vim: set ft=mail tw=70 sw=2 sts=2 et:
> * Petris Dimitrios <p...@venus.cslab.aueb.gr> [2006-06-07 18:57]:
>> I have a powerbook G4 and debian installed on it. I recently lost my
>> yaboot bootloader and it starts automatically with osx. Does anyone
>> know how to restore the bootloader without losing any data?
>
> If you still have a working yaboot.conf, you can boot from an install
> CD or a Live CD (I usually use a Ubuntu Live CD), chroot into your
> system and just run `ybin -v`. Otherwise, assuming you didn't get
> into this trouble by having a bad yaboot.conf in the first place, you
> might be able to extract your yaboot.conf from the boot partition. If
> you need any help with any of this, all you have to do is ask ;-)
You can use a debian-installer-cd too.
Go through the normal install-process until the point, where the
question appears, how to use the disk (use whole disk or manuall
partition). At that stage: DO NOT PARTITION YOUR DISC.
Change to the second console, make the needed mount-directories
(mkdir), mount the debian-partition's appropiate, chroot into the
debian-root-partition, mount /proc, run sbin (you need the complete
path to sbin) and that' all. Umount /proc, exit chroot, reboot.
Bye
Peter Voigt
Help!
> I boot with my installation cd and when I when reached the
> partitioning
> stage I went to console 2 and tried to mount my root partition.
What looks your mount-command like and what was the exact text of the
error-message?
Bye
Peter voigt
Επισκεφθείτε το Venus - Την On-line κοινότητα φοιτητών Πληροφορικής του
Ο.Π.Α.
-----Original Message-----
From: Peter Voigt [mailto:peter....@gmx.net]
Sent: Thursday, June 08, 2006 4:13 PM
To: Petris Dimitrios
Cc: 'Sven Luther'; debian-...@lists.debian.org
Subject: Re: I lost yaboot!
Bye
Peter voigt
__________ NOD32 1.1586 (20060608) Information __________
This message was checked by NOD32 antivirus system.
http://www.eset.com
The command is : mount /dev/hda2/ /new_dir
And the output is : mount /dev/hda2/ /new_dir failed. No such file or
directory
________________________________
Επισκεφθείτε το Venus - Την On-line κοινότητα φοιτητών Πληροφορικής του
Ο.Π.Α.
-----Original Message-----
From: Peter Voigt [mailto:peter....@gmx.net]
Sent: Thursday, June 08, 2006 4:13 PM
To: Petris Dimitrios
Cc: 'Sven Luther'; debian-...@lists.debian.org
Subject: Re: I lost yaboot!
Bye
Peter voigt
__________ NOD32 1.1586 (20060608) Information __________
Another alternative is to boot into OpenFirmware (Command-Option-O-F)
and manually set the boot device:
First, to load yaboot, try:
0 > boot hd:2,yaboot
(for /dev/hda2). If that doesn't work, you can:
printenv boot-device
This will tell you the current device. Write it down in case
something gets screwed up!
0 > setenv boot-device=/pci@f4000000/ata-6@d/disk@0:2,\\:tbxi
or
0 > setenv boot-device=hd:2,\\:tbxi
0 > mac-boot
This is for yaboot on /dev/hda2 on my Mac Mini. Check what your
current settings are, and adjust appropriately.
OF is fairly easy, other than the stupidly long pathnames. "help" is
a good command to start with.
See
http://penguinppc.org/bootloaders/yaboot/doc/yaboot-howto.shtml/ch9.en.shtml
for other recovery instructions...
Regards,
Roger
--
Roger Leigh
Printing on GNU/Linux? http://gutenprint.sourceforge.net/
Debian GNU/Linux http://www.debian.org/
GPG Public Key: 0x25BFB848. Please sign and encrypt your mail.
PLease provide the output of /proc/partitions, or the dmesg lines for your
disk, as well as the output of the print command of parted.
try a mkdir /new_dir ?
Friendly,
Sven Luther
> "Petris Dimitrios" <p...@venus.cslab.aueb.gr> writes:
>
>> I have a powerbook G4 and debian installed on it. I recently lost
>> my yaboot
>> bootloader and it starts automatically with osx. Does anyone know
>> how to
>> restore the bootloader without losing any data?
>
> Another alternative is to boot into OpenFirmware (Command-Option-O-F)
> and manually set the boot device:
>
> First, to load yaboot, try:
>
> 0 > boot hd:2,yaboot
As to my knowlegde, you have to use
boot hd:2,\ofboot.b
because "ofboot.b" is the linux-bootloader of a new world powerpc
(tested on mac mini with debian testing) and "\" is the correct sign
for "/" on the open firmware level.
Please notice one point. You have to use the new world boot-
partition, which is not "/" and not "/boot" of your debian-
installation. If hd:2, is not your new world boot-partition, please
change this path.
Bye
Peter Voigt
Or /dev/hda2 instead of /dev/hda2/ ??
Michael
-----Original Message-----
From: Sven Luther [mailto:sven....@wanadoo.fr]
Sent: Thursday, June 08, 2006 5:43 PM
To: Petris Dimitrios
Cc: 'Peter Voigt'; debian-...@lists.debian.org
Subject: Re: I lost yaboot!
You are using sarge d-i, right ? Please use the etch beta2 d-i, or use a devfs
style partition name. Look at /proc/disks for detail, i think.
Did you try running parted, and what did it tell you about the filesystems on
your disk ? did you create the mount point as i asked you ?
PS.I have the sarge d-i and I can't download the beta2 at this time.
________________________________
Επισκεφθείτε το Venus - Την On-line κοινότητα φοιτητών Πληροφορικής του
Ο.Π.Α.
-----Original Message-----
From: Sven Luther [mailto:sven....@wanadoo.fr]
Sent: Friday, June 09, 2006 12:57 PM
To: Petris Dimitrios
Cc: debian-...@lists.debian.org
Subject: Re: I lost yaboot!
Friendly,
Sven Luther
__________ NOD32 1.1588 (20060609) Information __________
-----Original Message-----
From: Sven Luther [mailto:sven....@wanadoo.fr]
Sent: Friday, June 09, 2006 1:32 PM
To: Petris Dimitrios
Cc: 'Sven Luther'; debian-...@lists.debian.org
Subject: Re: I lost yaboot!
Friendly,
Sven Luther
__________ NOD32 1.1588 (20060609) Information __________
This message was checked by NOD32 antivirus system.
http://www.eset.com
--
Use the print command, and paste me here the output (or the important part).
Did you make sure the mount point is created ?
So, your partition would be :
4 reizerfs debian
and you need to :
mount /proc/disks/.../part4 /new_dir
Minor Start End FS Name Flags
1 Apple
2 hfs bootstrap boot
4 reizerfs debian
6 linux-swap swap swap
3 hfs+ Apple_HFS...
5 hfs+ Apple_HfS...
Yes I have created the /new_dir!
-----Original Message-----
From: Sven Luther [mailto:sven....@wanadoo.fr]
Sent: Friday, June 09, 2006 2:03 PM
To: Petris Dimitrios
Cc: 'Sven Luther'; debian-...@lists.debian.org
Subject: Re: I lost yaboot!
Friendly,
Sven Luther
__________ NOD32 1.1588 (20060609) Information __________
This message was checked by NOD32 antivirus system.
http://www.eset.com
--
I went into the sbin dir. The ybin command says not fount!
-----Original Message-----
From: Sven Luther [mailto:sven....@wanadoo.fr]
Sent: Friday, June 09, 2006 2:25 PM
To: Petris Dimitrios
Cc: 'Sven Luther'; debian-...@lists.debian.org
Subject: Re: I lost yaboot!
4 reizerfs debian
and you need to :
mount /proc/disks/.../part4 /new_dir
Friendly,
Sven Luther
__________ NOD32 1.1588 (20060609) Information __________
This message was checked by NOD32 antivirus system.
http://www.eset.com
--
Ah, there someone else should help you, i am no yaboot/powermac expert.
> I went into the sbin dir. The ybin command says not fount!
Did you try
"/usr/sbin/ybin"
after chrooting into /dev/disc0/..... ?
Friendly,
Peter Voigt
Now what?
PS. Sorry for asking so many questions! But I am a bit of newbe to linux in
ppcs.
-----Original Message-----
From: Peter Voigt [mailto:peter....@gmx.net]
Sent: Friday, June 09, 2006 3:25 PM
To: Petris Dimitrios
Cc: debian-...@lists.debian.org
Subject: Re: I lost yaboot!
Did you try
"/usr/sbin/ybin"
Friendly,
Peter Voigt
__________ NOD32 1.1588 (20060609) Information __________
This message was checked by NOD32 antivirus system.
http://www.eset.com
--
On Fri, 09 Jun 2006 16:34:26 +0300, Petris Dimitrios wrote:
> It says that it cannot find yaboot.conf: using default
> Cannot write nvram
>
> Now what?
>
>
> PS. Sorry for asking so many questions! But I am a bit of newbe to linux in
> ppcs.
>
>
> -----Original Message-----
> From: Peter Voigt [mailto:peter....@gmx.net]
> Sent: Friday, June 09, 2006 3:25 PM
> To: Petris Dimitrios
> Cc: debian-...@lists.debian.org
> Subject: Re: I lost yaboot!
>
>
__________ NOD32 1.1592 (20060611) Information __________