LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   boot loader (https://www.linuxquestions.org/questions/linux-newbie-8/boot-loader-443021/)

obstinatesod 05-09-2006 01:42 AM

boot loader
 
Hi, I was running pclinuxos alongside Windows xp pro, I made a partition in windows disk management. I had to format the windows partition and lost the boot loader, Linux is still there but how do I get the boot loader back?. I have the live-install 9.2 pclinuxos I don't want to reinstall as I have a lot of saved stuff, I just need the boot loader, cheers, Adrian

towy71 05-09-2006 01:47 AM

smartbootmanager will do that ;-)

tuxrules 05-09-2006 09:48 AM

Quote:

Originally Posted by obstinatesod
Hi, I was running pclinuxos alongside Windows xp pro, I made a partition in windows disk management. I had to format the windows partition and lost the boot loader, Linux is still there but how do I get the boot loader back?. I have the live-install 9.2 pclinuxos I don't want to reinstall as I have a lot of saved stuff, I just need the boot loader, cheers, Adrian

You would have to reinstall the boot loader. What boot loader did you use before you reinstalled windows...i mean GRUB or LILO. You will have to boot via a live-cd and then reinstall the bootloader from there.

Here's a quick run down:
1. Boot using a live-cd (Knoppix, Slax or SystemRescueCD).
2. mount the linux partition
3. chroot the mounted partition.
4. install boot loader,
If it is grub, do
Code:

grub-install /dev/hda
assuming your disc is hda OR if it is lilo
Code:

/sbin/lilo
Else, you can use Towy71's suggestion to use smartbootmanager. I have never used that so I won't comment on that.

Tux,

dom02 05-09-2006 11:15 AM

I'm having a similar problem. I booted into a knopix live cd but i'm having problems mounting my linux partition. It's on it's own hard drive. The HD is a serial one, and when I was booted into linux I remember that the device was called either sda1 or just sda. So I typed mount -t ext3 /dev/sda1 /mnt/sda1 in knopix to mount it. But I getan error saying "wrong fs type, bad option, bad superblock on /dev/sda1, or too many mounted file systems. I tried mounting my windows partition after and it mounted without any problems. Any idea what i'm doing wrong?

Also i'm running ubuntu 5.10 along with windows xp. Windows xp is on a regular IDE hard drive and ubuntu is on it's own SATA hard drive.

obstinatesod 05-09-2006 12:04 PM

Thanks Tux, gonna give it a try and get back to you, the boot loader was lilo, Adrian

tuxrules 05-09-2006 01:14 PM

Quote:

Originally Posted by dom02
I'm having a similar problem. I booted into a knopix live cd but i'm having problems mounting my linux partition. It's on it's own hard drive. The HD is a serial one, and when I was booted into linux I remember that the device was called either sda1 or just sda. So I typed mount -t ext3 /dev/sda1 /mnt/sda1 in knopix to mount it. But I getan error saying "wrong fs type, bad option, bad superblock on /dev/sda1, or too many mounted file systems. I tried mounting my windows partition after and it mounted without any problems. Any idea what i'm doing wrong?

Also i'm running ubuntu 5.10 along with windows xp. Windows xp is on a regular IDE hard drive and ubuntu is on it's own SATA hard drive.

Well I hope you are not trying to hijack the OP's thread. You should have started a new thread or tried searching the forum. There are a million threads on mount problems. Anyway, your problem relates to mount points and mount command.

First, make sure what device id your sata drive uses...like sda, sdb. You can find this out from
Code:

fdisk -l
Second, you are using the right fs-type, like ext3 or reiserfs or any other.

Based on that info, you would have first create a mount point (even when using Knoppix or any other live-cd).

Code:

mkdir /mnt/ubuntu
Code:

mount -t <fs-type> -o rw /dev/<device> /mnt/ubuntu
substitute <fs-type> and <device> based on the info you get.

Also,
Code:

man mount
Hope this helps,
Tux,

dom02 05-09-2006 02:15 PM

thanx a lot. no I wasn't trying to hijack the thread. I figured it would be a good place to ask here since you can't install grub without mounting the partition and others who have the same issue may run into this problem. But yea I should have searched, sorry.


All times are GMT -5. The time now is 03:10 AM.