LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 09-21-2008, 02:35 PM   #1
debpu06
LQ Newbie
 
Registered: Sep 2008
Posts: 24

Rep: Reputation: 15
Problem with bootloader


Okay, so I had a Mandriva 2007 and windows xp on separate partitions and when I was resizing a third small partition that was on my harddrive through xp I accidentally deleted Mandriva. When I tried to reboot my computer it said GRUB error 22. I can no longer access my xp and I was wondering if there was any way to fix the problem through a linux distribution that I can put on a pendrive cause I don't hava access to a cd burner and I don't have the original xp cds.
Thank you in advance

Last edited by debpu06; 09-21-2008 at 02:37 PM.
 
Old 09-21-2008, 02:38 PM   #2
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
Can you give us the output of:

# /sbin/fdisk -l

and

# less /boot/grub/menu.lst
 
Old 09-21-2008, 02:45 PM   #3
debpu06
LQ Newbie
 
Registered: Sep 2008
Posts: 24

Original Poster
Rep: Reputation: 15
[fedora@localhost ~]$ /sbin/fdisk -l
[fedora@localhost ~]$ less/boot/grub/menu.lst
bash: less/boot/grub/menu.lst: No such file or directory
[fedora@localhost ~]$

I am using my friends fedora pendrive on my comp
 
Old 09-21-2008, 02:50 PM   #4
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
# - means that you need to do it as root, so:

Code:
$ su
write your root password, and then:
Code:
# /sbin/fdisk -l
There is a white space after less

Code:
less /boot/grub/menu.lst
 
Old 09-21-2008, 02:54 PM   #5
debpu06
LQ Newbie
 
Registered: Sep 2008
Posts: 24

Original Poster
Rep: Reputation: 15
[root@localhost fedora]# /sbin/fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00de00dd

Device Boot Start End Blocks Id System
/dev/sda1 * 1 5099 40957686 7 HPFS/NTFS
/dev/sda2 5100 19458 115333186+ 5 Extended

Disk /dev/sdb: 8029 MB, 8029470208 bytes
255 heads, 63 sectors/track, 976 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 976 7839698 b W95 FAT32

Disk /dev/dm-0: 4294 MB, 4294967296 bytes
255 heads, 63 sectors/track, 522 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 4294 MB, 4294967296 bytes
255 heads, 63 sectors/track, 522 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-1 doesn't contain a valid partition table

[root@localhost fedora]# less /boot/grub/menu.lst
/boot/grub/menu.lst: No such file or directory
 
Old 09-21-2008, 03:15 PM   #6
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
Sorry, I just realised that you are using linux from a pendrive.
Try supergrub http://www.supergrubdisk.org/
There's a download for usb as well. It should restore your master boot record.
 
  


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
Windows 2000 Bootloader vs. Mandriva LILO Bootloader Dregnan Mandriva 7 12-03-2007 10:55 PM
bootloader problem Sjaaksken Ubuntu 1 12-14-2006 07:33 AM
How can I disable the grub bootloader and enable the lilo bootloader? abefroman Linux - General 1 08-06-2005 09:53 AM
Bootloader problem evilmonkey Linux - General 5 09-22-2004 09:07 PM
bootloader problem suvrat23 Linux - Newbie 1 07-20-2004 01:02 AM


All times are GMT -5. The time now is 06:15 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