LinuxQuestions.org
Help answer threads with 0 replies.
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 06-07-2004, 11:55 PM   #1
gexzd
LQ Newbie
 
Registered: Mar 2003
Posts: 14

Rep: Reputation: 0
Grub reinstall help using knoppix


ok so i reinstalled windows 2000 added sp4 and grub went missing

so i downloaded knoppix

#i have no floppy drive and i know i can just goto 'rescue' or even
# 'upgrade' on redhat install discs to fix this problem but i dont want to

anyways so i go into knoppix and change the mounted patitions to write access by clicking on it and going to actions and change read write access

and changed to root using the 'su' command

and type in 'root@knoppix#grub-install hdb'

and i get this

'mkdir: cannot make directory '\boot\grub' : read-only filesystem

but i changed it to write access

so the i thought id do it manually



'root@knoppix#umount /mnt/hdb2'
'root@knoppix#umount /mnt/hdb3'

'root@knoppix# mount -o rw /dev/hdb2 /mnt/hdb2'
'root@knoppix# mount -o rw /dev/hdb3 /mnt/hdb3'

and got the same result.

#hdb1 is windows 2000

#hdb2 seems to compaling grub and its contents soo i assume thats the /boot parition

#hdb3 is the rest of red hat

im a newb so anyone tell me what im doing wrong ???

any help would be appreciated

Last edited by gexzd; 06-07-2004 at 11:58 PM.
 
Old 06-08-2004, 02:56 AM   #2
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
The thing is, it's looking for the grub-install version on the Knoppix disc, not the one on the partitions you just mounted.

In order to reconfigure a "foreign filetree" from a Live CD, you have to chroot the mounted filetree (tell the running OS that the / filetree starts from another location than the one it thinks; read man chroot for more information).

So what you'd most likely need to do is mount the main RH filetree (hdb 3), chroot /redhat/mount/point, mount hdb2 to /boot, then try grub-install again, to run the RedHat GRUB as if you were booted into RH, rather than the Knoppix GRUB.

Hope this helps; chroot is a very useful command, but read the man pages first and be careful with it, as it's also very powerful.
 
Old 06-08-2004, 10:38 PM   #3
gexzd
LQ Newbie
 
Registered: Mar 2003
Posts: 14

Original Poster
Rep: Reputation: 0
thanks alot man ill try it and hopefully i dont do something stupid like format my partitions
cheers bro
 
Old 06-08-2004, 10:46 PM   #4
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
You're welcome, and good luck (but please look at my sig again-- neither a 'man', nor a 'bro').

 
Old 06-08-2004, 11:25 PM   #5
gexzd
LQ Newbie
 
Registered: Mar 2003
Posts: 14

Original Poster
Rep: Reputation: 0
my bad Common slang in New Zealand we call everyone man or bro , sorry if u took offense


ok so i ran the command chroot and this si what i got

root@ttyp0[knoppix]# chroot /mnt/hdb3
bash: /dev/null: Permission denied
bash: /dev/null: Permission denied
bash: /dev/null: Permission denied
bash: /dev/null: Permission denied
bash: /dev/null: Permission denied
[root@Knoppix /]# ll
bash: ll: command not found
[root@Knoppix /]# ls -l
total 204
drwxr-xr-x 2 root root 4096 Mar 24 01:56 bin
drwxr-xr-x 2 root root 4096 Mar 24 00:47 boot
drwxr-xr-x 21 root root 118784 May 29 13:14 dev
drwxr-xr-x 66 root root 8192 May 29 13:14 etc
drwxr-xr-x 7 root root 4096 May 19 10:58 home
drwxr-xr-x 2 root root 4096 Jan 25 2003 initrd
drwxr-xr-x 11 root root 4096 Mar 24 01:05 lib
drwx------ 2 root root 16384 Mar 24 00:46 lost+found
drwxr-xr-x 2 root root 4096 Sep 9 2003 misc
drwxr-xr-x 4 root root 4096 May 24 14:36 mnt
drwxr-xr-x 3 root root 4096 May 13 16:27 opt
drwxr-xr-x 2 root root 4096 Mar 24 00:47 proc
drwxr-x--- 36 root root 4096 May 29 13:13 root
drwxr-xr-x 2 root root 8192 Mar 24 00:58 sbin
drwxrwxrwt 16 root root 4096 May 29 13:14 tmp
drwxr-xr-x 16 root root 4096 Mar 23 17:53 usr
drwxr-xr-x 20 root root 4096 Mar 31 13:48 var


figured it was safe for me to run grub install so i did

[root@Knoppix /]# grub-install /dev/hdb
/dev/hdb does not have any corresponding BIOS drive.




i guess its looking for hdb2 and cant find it which is why its complaining.

so should wat should i try next should i just make the /mnt the root directory so it can see hdb2???

just to take note iam a complete moron so be warned i will ask stupid questions

Last edited by gexzd; 06-08-2004 at 11:48 PM.
 
  


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 error 17, and wont reinstall using grub-install! chiefreborn Linux - General 6 06-06-2007 11:29 AM
Reinstall GRUB with Knoppix CD? smkamene Linux - Newbie 9 07-01-2005 10:15 PM
reinstall grub . . . Aidin_36 Linux - Newbie 3 06-11-2005 10:42 AM
reinstall windows, reinstall GRUB too? leupi Linux - Software 1 05-07-2005 11:50 AM
reinstall grub leva Linux - Newbie 1 12-14-2003 02:47 PM


All times are GMT -5. The time now is 03:28 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration