LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 08-22-2006, 04:28 PM   #1
obscure-shadow
Member
 
Registered: Nov 2004
Location: Lawrence, Kansas
Distribution: SuSE 10.2 Gentoo Knoppix
Posts: 63

Rep: Reputation: 15
how do i get my bootloader back?


i have suse 10.1 installed on my computer but i dont have the disk anymore,
i had to reinstall windows and that broke the bootloader, (grub)
its all on one hard drive, i think it's windows, boot, swap, linux... on how the partitions are arranged,but i might have the boot and swap swiched, i dont quite recall. anyways,
i'm trying to use knoppix to get my bootloader back, but i can't figure out how..
 
Old 08-22-2006, 04:49 PM   #2
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
Quote:
Originally Posted by obscure-shadow
i have suse 10.1 installed on my computer but i dont have the disk anymore,
i had to reinstall windows and that broke the bootloader, (grub)
its all on one hard drive, i think it's windows, boot, swap, linux... on how the partitions are arranged,but i might have the boot and swap swiched, i dont quite recall. anyways,
i'm trying to use knoppix to get my bootloader back, but i can't figure out how..
You can boot up with Knoppix. Once you arrive at the desktop, open up terminal and mount your linux / partition. You may have to do

Code:
fdisk -l
to see which is your / partition. Knoppix will most likely mount your linux partitions automatically. If not then you may have to manually mount it. I don't exactly remember since I haven't used a boot disk in a long time.

Code:
chroot /path/to/root/partition
Code:
grub-install /dev/hda
Change hda to whatever your drive is.

Tux,
 
Old 08-22-2006, 11:12 PM   #3
obscure-shadow
Member
 
Registered: Nov 2004
Location: Lawrence, Kansas
Distribution: SuSE 10.2 Gentoo Knoppix
Posts: 63

Original Poster
Rep: Reputation: 15
okay, so i put in chroot mnt/hda4 and it says :
Quote:
chroot : cannot run commant '/bin/bash/' : Exec format error
what do i do now?
doesnt look like tthat was the correct response...
 
Old 08-23-2006, 09:36 AM   #4
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
Quote:
Originally Posted by obscure-shadow
okay, so i put in chroot mnt/hda4 and it says :
what do i do now?
doesnt look like tthat was the correct response...
So did you mount the root partition to hda4 or was it mounted automatically as hda4. Give some more information on what you did.
 
Old 08-23-2006, 02:50 PM   #5
obscure-shadow
Member
 
Registered: Nov 2004
Location: Lawrence, Kansas
Distribution: SuSE 10.2 Gentoo Knoppix
Posts: 63

Original Poster
Rep: Reputation: 15
fdisk -l shows that hda4 is the root linux partition...

so then i did

mount dev/hda4

then

chroot mnt/hda4

and get the error message
 
Old 08-23-2006, 03:35 PM   #6
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
Quote:
Originally Posted by obscure-shadow
fdisk -l shows that hda4 is the root linux partition...

so then i did

mount dev/hda4

then

chroot mnt/hda4

and get the error message
So did you check if hda4 was really mounted because from what I see, it should give you an error as you did not specify any file system type or mount point with the mount command.

BTW, you may have to use the / before both the mount and chroot command.
 
Old 08-24-2006, 12:20 AM   #7
obscure-shadow
Member
 
Registered: Nov 2004
Location: Lawrence, Kansas
Distribution: SuSE 10.2 Gentoo Knoppix
Posts: 63

Original Poster
Rep: Reputation: 15
i would suspect that it is because if i umount /dev/hda4 it doesnt say "dev/hda4 is not mounted" like it normally would..
 
  


Reply

Tags
boot loader, grub



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 09:55 PM
How can I disable the grub bootloader and enable the lilo bootloader? abefroman Linux - General 1 08-06-2005 08:53 AM
Getting lilo or any bootloader back e-radix Linux - Newbie 8 01-16-2005 04:33 AM
How Do I Back Up The Bootloader? jlacroix Mandriva 8 09-02-2004 12:32 PM
how do I get slack back in bootloader menu opafire Slackware 6 11-11-2003 09:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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