Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, July 2004
grub is gone


Message 1 in thread

Hello i have a problem my grub is gone. I have try to install Winsows and this 
has killed grub. So now the only way to run linx is booting via PXE. I have 
try to run groub-install /dev/sda1 but i will not work. When i try to boot 
then via the hdd, i get the error  22 from grub. What can i do?
The FC2 installation is on /dev/sdd2.


Message 2 in thread

Yes, as you can read in the documentation:

QActionGroup::~QActionGroup () 

Destroys the object and frees allocated resources. 

void QActionGroup::add ( QAction * action ) 

Adds action action to this group. 

Normally an action is added to a group by creating it with the group as parent, so this function is not usually used. 

See also addTo(). 


This has to do with your question the same as your question with this list!

Regards!

On Friday 02 July 2004 11:31, Hans Müller wrote:
> Hello i have a problem my grub is gone. I have try to install Winsows and this 
> has killed grub. So now the only way to run linx is booting via PXE. I have 
> try to run groub-install /dev/sda1 but i will not work. When i try to boot 
> then via the hdd, i get the error  22 from grub. What can i do?
> The FC2 installation is on /dev/sdd2.
> 
> --
> List archive and information: http://lists.trolltech.com/qt-interest/
> 

-- 
 [ signature omitted ] 

Message 3 in thread

On Friday 02 July 2004 07:31, Hans Müller wrote:
> Hello i have a problem my grub is gone. I have try to install Winsows and
> this has killed grub. So now the only way to run linx is booting via PXE. I
> have try to run groub-install /dev/sda1 but i will not work. When i try to
> boot then via the hdd, i get the error  22 from grub. What can i do?
> The FC2 installation is on /dev/sdd2.

Not sure why you cross posted this to the Qt list but I'll try to help. The 
Windows installation program overwrites the primary hard drive boot sector 
(even if the installation is aborted!) so your grub info is gone.

IIRC you can use a recovery disk to boot into linux. Then uninstall the grub 
rpm and re-install it. This should re-install grub to the boot sector. The 
only other alternative I know of is to re-install linux. I've learned the 
hard way that on dual boot systems you always install Windows first.

Jeff


Message 4 in thread

Read the grub manpage.  When you run the grub program, you can use the
"setup" command to write your boot sector. It would look something
like this:

grub> root (hd0,0)           (Specify where your /boot partition resides)
grub> setup (hd0)           (Install GRUB in the MBR)
grub> quit                  (Exit the GRUB shell)

(Be sure to remember that grub numbers the drives and partitions a bit
different than usual.  The first disk is 0, and the first partition is
0.)

Reinstalling grub would probably not do this for you.
- Tim


On Fri, 2 Jul 2004 12:06:45 -0400, Jeffrey Laramie
<jalaramie@loudoun-fairfax.com> wrote:
> 
> On Friday 02 July 2004 07:31, Hans Müller wrote:
> > Hello i have a problem my grub is gone. I have try to install Winsows and
> > this has killed grub. So now the only way to run linx is booting via PXE. I
> > have try to run groub-install /dev/sda1 but i will not work. When i try to
> > boot then via the hdd, i get the error  22 from grub. What can i do?
> > The FC2 installation is on /dev/sdd2.
> 
> Not sure why you cross posted this to the Qt list but I'll try to help. The
> Windows installation program overwrites the primary hard drive boot sector
> (even if the installation is aborted!) so your grub info is gone.
> 
> IIRC you can use a recovery disk to boot into linux. Then uninstall the grub
> rpm and re-install it. This should re-install grub to the boot sector. The
> only other alternative I know of is to re-install linux. I've learned the
> hard way that on dual boot systems you always install Windows first.
> 
> Jeff
> 
> 
> 
> --
> List archive and information: http://lists.trolltech.com/qt-interest/
>


Message 5 in thread

On Friday 02 July 2004 12:24, Timothy Rupe wrote:
> Read the grub manpage.  When you run the grub program, you can use the
> "setup" command to write your boot sector. It would look something
> like this:
>
> grub> root (hd0,0)           (Specify where your /boot partition resides)
> grub> setup (hd0)           (Install GRUB in the MBR)
> grub> quit                  (Exit the GRUB shell)
>
> (Be sure to remember that grub numbers the drives and partitions a bit
> different than usual.  The first disk is 0, and the first partition is
> 0.)
>
> Reinstalling grub would probably not do this for you.
> - Tim
>

Ahh, this is good to know. Note to self: Read the grub man page _before_ you 
hose your system. :-)

Jeff


Message 6 in thread

On piÄ…tek 02 lipiec 2004 12:06 pm, Jeffrey Laramie wrote:
> On Friday 02 July 2004 07:31, Hans Müller wrote:
> > Hello i have a problem my grub is gone. I have try to install Winsows and
> > this has killed grub. So now the only way to run linx is booting via PXE.
> > I have try to run groub-install /dev/sda1 but i will not work. When i try
> > to boot then via the hdd, i get the error  22 from grub. What can i do?
> > The FC2 installation is on /dev/sdd2.
>
> Not sure why you cross posted this to the Qt list but I'll try to help. The
> Windows installation program overwrites the primary hard drive boot sector
> (even if the installation is aborted!) so your grub info is gone.
>
> IIRC you can use a recovery disk to boot into linux. Then uninstall the
> grub rpm and re-install it. This should re-install grub to the boot sector.
> The only other alternative I know of is to re-install linux. I've learned
> the hard way that on dual boot systems you always install Windows first.

There's no need for any recovery disks or whatever. Just make a grub floppy 
first, see: info grub, info:/grub.

Boot from grub floppy and *ONLY THEN*, while you're in grub's command line, 
install grub on your hard drive. That's the only sure way. From under unices 
it sometimes works sometimes doesn't as grub has to guess how the BIOS views 
the disks available under unix.

This method has never failed me and IIRC it's the method recommended in the 
info page.

Cheers, Kuba Ober