LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-19-2006, 08:42 AM   #1
guedellas
Member
 
Registered: Dec 2005
Location: España
Distribution: Fedora Core 8 + Debian 4.0 + Vista
Posts: 61

Rep: Reputation: 15
yet another grub reinstallation


Hi all!!

I had to mend my windows xp partition due to problems so I reinstall it knowing that it will screw up grub. I documented myself about how to bring my linux partion back to live reinstalling grub but the process doesn't work for me.

as I don't have a debian rescue disk, I'm using knoppix to boot my system. So:

1.- I boot my system with knoppix
2.- mount /mnt/hda1 [which is my linux partition]
3.- chroot /mnt/hda1
4.- grub-install /dev/hda

After this done, the followin errors are given:
Code:
/sbin/grub-install: line 485: /dev/null: Permission denied
/sbin/grub-install: line 487: /dev/null: Permission denied
The file /boot/grub/stage1 not read correctly.
I also trid installing grub natively, but the system said:
1.- I boot my system with knoppix
2.- mount /mnt/hda1 [which is my linux partition]
3.- chroot /mnt/hda1
4.- grub> root (hd0,0)
Code:
Error 21: Selected disk does not exist
¿Am I doing something wrong?

Thanks in advance

PS: I do not have a /boot partition, just a ext3 partition for my whole linux
 
Old 02-19-2006, 09:00 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
That is a common problem with Knoppix when you chroot to another Linux OS. You need to unmount /dev/hda1 and then remount it as follows,
Code:
#mount /dev/hda1 /mnt/hda1 -o rw
 
Old 02-19-2006, 09:16 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
Sometimes it is a good idea to "mount -a" & "bash -l". If /boot is on its own partition for example, you want it mounted. The "bash -l" will start a login shell, which will run your normal ~/.bash_profile for the root user.
 
Old 02-19-2006, 09:55 AM   #4
guedellas
Member
 
Registered: Dec 2005
Location: España
Distribution: Fedora Core 8 + Debian 4.0 + Vista
Posts: 61

Original Poster
Rep: Reputation: 15
Thank you so much!! it worked like a charm
 
  


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
Grub Bootloader Reinstallation TigerLinux SUSE / openSUSE 12 11-19-2005 09:09 PM
Reinstallation! Jmcatch742 Linux - Newbie 3 10-02-2004 07:44 PM
GRUB after Windows reinstallation piggysmile Linux - Software 1 06-26-2004 09:13 AM
reinstallation Nay Linux - Newbie 10 12-21-2003 09:58 AM
Grub reinstallation Mandake 7.2 Martin Linux - General 1 04-19-2001 10:34 AM


All times are GMT -5. The time now is 04:24 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration