LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-01-2005, 05:19 AM   #1
ConfusedMonkey
Member
 
Registered: Sep 2003
Posts: 40

Rep: Reputation: 15
GRUB help, PC always loads to grub>


hi

i need help please

i shrunk a windows partition using qtparted with knoppix and after reboot
it always gives

grub>

and i dont know what to do..

please please help me.. i want to cry

Last edited by ConfusedMonkey; 08-01-2005 at 06:41 AM.
 
Old 08-01-2005, 05:26 AM   #2
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Quote:
i need immediate help
I suggest in future you don't use phrases like this cause otherwise trickykid will come around a beat you down with his big stick. You don't need immediate help, everyone here volunteers their time, time they could be spending on other endeavours and if you mess up your computer then that is unfortunate but not our problem. We'll help you fix it when we feel like it, not when you do.

Now, give me more information or I will beat you down with my considerably smaller but still very sharp stick. Boot from Knoppix and post the output from this command:
Code:
fdisk -l
From that output, tell us what each partition is exactly. it'll help with our answer and make you think more about exactly what you could have done. Post any errors Grub might display before it reaches that prompt and post the contents of your grub config file, probably /boot/grub/menu.lst or /boot/grub/grub.conf.
 
Old 08-01-2005, 05:32 AM   #3
ConfusedMonkey
Member
 
Registered: Sep 2003
Posts: 40

Original Poster
Rep: Reputation: 15
where do i write the

fdisk -l

?
 
Old 08-01-2005, 05:46 AM   #4
ConfusedMonkey
Member
 
Registered: Sep 2003
Posts: 40

Original Poster
Rep: Reputation: 15
after fdisk -l

disk 40GB /dev/hde

device boot start end blocks id system

hde1 1 1 8001 1 FAT12
hde2 2 4866 .. f w95 ext'd
hde5 2 7 hpfs/ntfs


disk 60GB

/dev/hdg

hdg1 1 1020 ... b w95 FAT32
hdg2 1021 7297 f w95 extd
hdg5 c w95 fat32 lba
hdg 6 82 linux swap
hdg7 83 linux
hdg8 b w95 fat32


in the 40gb drive there should be one partition called E (in windows) and it is ntfs

on the 60 gb it is divided like this:

8 mb drive c (i dont know why)
~7GB drive D, FAT32 where winxp is installed. i guess here it is hdg1 and hdg2
~24GB drive G, FAT32 here it is hdg5
~18GB drive F, FAT32 which is where i cut space for the linux

hdg7 is linux suse 9. hdg6 came with it.


please please tell me what to do now
 
Old 08-01-2005, 05:55 AM   #5
ConfusedMonkey
Member
 
Registered: Sep 2003
Posts: 40

Original Poster
Rep: Reputation: 15
I cant access /boot/grub/menu.lst from knoppix because it tells me i am not root.

the /boot/grub/menu.lst is from the partition where suse is installed.

what to do now?
 
Old 08-01-2005, 06:09 AM   #6
ConfusedMonkey
Member
 
Registered: Sep 2003
Posts: 40

Original Poster
Rep: Reputation: 15
i was able to get internet on knoppix so now i can paste it:

root@0[knoppix]# fdisk -l

Disk /dev/hde: 40.0 GB, 40027029504 bytes
255 heads, 63 sectors/track, 4866 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hde1 * 1 1 8001 1 FAT12
/dev/hde2 2 4866 39078112+ f W95 Ext'd (LBA)
/dev/hde5 2 4866 39078081 7 HPFS/NTFS

Disk /dev/hdg: 60.0 GB, 60022480896 bytes
255 heads, 63 sectors/track, 7297 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdg1 1 1020 8193118+ b W95 FAT32
/dev/hdg2 1021 7297 50420002+ f W95 Ext'd (LBA)
/dev/hdg5 1021 3451 19526976 c W95 FAT32 (LBA)
/dev/hdg6 3453 3581 1036161 82 Linux swap / Solaris
/dev/hdg7 3582 4143 4514233+ 83 Linux
/dev/hdg8 4144 6978 22772106 b W95 FAT32
 
Old 08-01-2005, 06:15 AM   #7
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
To get access to /boot/grub/menu.lst, open a root shell in knoppix and try the following command:

chroot /dev/hdg7

hdg7 is just a guess form your above post, so change it to the root partition of your broken system. Now try again to access the file.

Oh, I forgot: please post /etc/fstab as well (the one from the broken system).

Last edited by abisko00; 08-01-2005 at 06:16 AM.
 
Old 08-01-2005, 06:26 AM   #8
ConfusedMonkey
Member
 
Registered: Sep 2003
Posts: 40

Original Poster
Rep: Reputation: 15
this is etc/fstab

/dev/hdg8 / reiserfs defaults 1 1
/dev/hde1 /windows/C vfat users,gid=users,umask=0002,iocharset=iso8859-1,code=437 0 0
/dev/hdg1 /windows/D vfat users,gid=users,umask=0002,iocharset=iso8859-1,code=437 0 0
/dev/hde5 /windows/E ntfs ro,users,gid=users,umask=0002,nls=iso8859-1 0 0
/dev/hdg5 /windows/F vfat users,gid=users,umask=0002,iocharset=iso8859-1,code=437 0 0
/dev/hdg6 /windows/G vfat users,gid=users,umask=0002,iocharset=iso8859-1,code=437 0 0
/dev/hdg7 swap swap pri=42 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
usbdevfs /proc/bus/usb usbdevfs noauto 0 0
/dev/cdrecorder /media/cdrecorder auto ro,noauto,user,exec 0 0
/dev/cdrom /media/cdrom auto ro,noauto,user,exec 0 0
/dev/dvd /media/dvd auto ro,noauto,user,exec 0 0
/dev/fd0 /media/floppy auto noauto,user,sync 0 0


i cannot do chroot it tells me

root@1[knoppix]# chroot /dev/hdg7
chroot: cannot change root directory to /dev/hdg7: Not a directory
 
Old 08-01-2005, 06:34 AM   #9
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Moderator Note: Please read this thread regarding your crappy thread title: http://www.linuxquestions.org/questi...95#post1730795
 
Old 08-01-2005, 06:40 AM   #10
ConfusedMonkey
Member
 
Registered: Sep 2003
Posts: 40

Original Poster
Rep: Reputation: 15
this is from /mnt/hdg7/etc/grub/conf

root (hd1,7)
install --stage2=/boot/grub/stage2 /boot/grub/stage1 d (hd0) /boot/grub/stage2 0x8000 (hd1,7)/boot/grub/menu.lst
quit
 
Old 08-01-2005, 07:26 AM   #11
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
Quote:
Originally posted by ConfusedMonkey
i cannot do chroot it tells me

root@1[knoppix]# chroot /dev/hdg7
chroot: cannot change root directory to /dev/hdg7: Not a directory
Sorry, my mistake!

You need to use the current mountpoint instead of /dev/hdg7

But I think I found the mistake:

Grub is looking for the root filesystem in hd1,7 which is /dev/hdg8 in your case. You need to change this to hd1,6 in order to match the partitions. If the chroot command works, you can try to re-install the bootloader with YaST. Don't forget to adjust /etc/fstab to the new partition scheme: hdg8 has to be changed to hdg7 and hdg7 to hdg6.

You can try to run system repair from the boot CD. This should fix all errors automatically.

See:
http://portal.suse.com/sdb/en/2003/1...em-Repair.html
http://portal.suse.com/sdb/en/2002/0..._overview.html
 
Old 08-01-2005, 07:59 AM   #12
ConfusedMonkey
Member
 
Registered: Sep 2003
Posts: 40

Original Poster
Rep: Reputation: 15
thank you,

however once i repaired the system it tells me it cant fidn windows..

my newbieness overwelms me..

so i am reformatting and installing windows and linux again..

sheesh
 
Old 08-01-2005, 08:50 AM   #13
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
Quote:
Originally posted by ConfusedMonkey
thank you,

however once i repaired the system it tells me it cant fidn windows..

my newbieness overwelms me..

so i am reformatting and installing windows and linux again..

sheesh
Not so fast! Usually it's just a minor adjustment in /boot/grub/menu.lst.
 
Old 08-01-2005, 12:12 PM   #14
ConfusedMonkey
Member
 
Registered: Sep 2003
Posts: 40

Original Poster
Rep: Reputation: 15
too late.. now nothing works..

thanks a lot for all the instantanous help...

after i install xp again, i'll get suse 9.3 and install it, and continue asking newbie questions, and hopefully annoys the mods less..

thanks again
 
  


Reply



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
Smart Boot Manager wont boot dos on logical part. AlanL Linux - Software 5 09-01-2005 12:25 AM
HELP ASAP, pc wont boot ConfusedMonkey Linux - Newbie 2 08-01-2005 02:47 PM
my dual boot keeps fudging up NEED HELP ASAP! kgonepostl Debian 8 01-02-2005 02:13 PM
install Suse, xp wont boot, repair xp suse wont boot Tangz Linux - Newbie 10 07-16-2004 05:37 PM
Suse 9, RH9 wont install properly. Mandrake 9 wont boot properly? Help. l2ich84 Linux - Newbie 1 01-31-2004 11:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:20 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
Open Source Consulting | Domain Registration