LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 05-09-2006, 02:42 AM   #1
obstinatesod
Member
 
Registered: Apr 2005
Location: Shetland
Distribution: PClinuxOS, Suse 10.0, Mandriva, Alinux,
Posts: 126
Blog Entries: 1

Rep: Reputation: 15
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
 
Old 05-09-2006, 02:47 AM   #2
towy71
Member
 
Registered: Oct 2003
Location: Carmarthen, Wales
Distribution: Ubuntu and whatever is new kid on the block
Posts: 70

Rep: Reputation: 18
smartbootmanager will do that ;-)
 
Old 05-09-2006, 10:48 AM   #3
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,144

Rep: Reputation: 56
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,

Last edited by tuxrules; 05-09-2006 at 10:50 AM.
 
Old 05-09-2006, 12:15 PM   #4
dom02
LQ Newbie
 
Registered: May 2005
Distribution: Ubuntu 5.10
Posts: 5

Rep: Reputation: 0
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.
 
Old 05-09-2006, 01:04 PM   #5
obstinatesod
Member
 
Registered: Apr 2005
Location: Shetland
Distribution: PClinuxOS, Suse 10.0, Mandriva, Alinux,
Posts: 126
Blog Entries: 1

Original Poster
Rep: Reputation: 15
Thanks Tux, gonna give it a try and get back to you, the boot loader was lilo, Adrian
 
Old 05-09-2006, 02:14 PM   #6
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,144

Rep: Reputation: 56
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,
 
Old 05-09-2006, 03:15 PM   #7
dom02
LQ Newbie
 
Registered: May 2005
Distribution: Ubuntu 5.10
Posts: 5

Rep: Reputation: 0
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.
 
  


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
wireless Keyboard not working to select boot options (Grub boot loader) psrini_vasan Fedora 7 12-16-2009 06:45 PM
To load/boot Red Hat Enterprise Linux 4 WS from Microsoft's Boot Loader (NTLDR) dhawal Linux - Newbie 15 10-21-2005 11:29 AM
To load/boot Red Hat Enterprise Linux 4 WS from Microsoft's Boot Loader (NTLDR) dhawal Red Hat 1 09-25-2005 08:08 AM
Grub boot loader menu shows two linux boot options pramos Linux - Newbie 3 09-13-2004 12:40 AM
How to add a boot record which used to startup windows under my Grub boot loader? yunxiang Linux - Newbie 6 02-01-2003 03:22 AM


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