LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-10-2006, 03:48 AM   #1
sonam
LQ Newbie
 
Registered: May 2006
Posts: 4

Rep: Reputation: 0
dual boot problem


hello friends,

i am new to this site and also new to linux...i was having windows 2000 installed in my computer then i tried to install linux fedora core one.

i think unknowingly deleted windows partition...and now i have not been able to operate in windows environment. i can boot only in liinux environment....

is there any way to recover back my windows environment ...

please help....i would be glad if i am provided with detail step to do the same

thank u in advances

sonam
 
Old 05-10-2006, 04:00 AM   #2
kevkim55
Member
 
Registered: Dec 2005
Location: Edmonton
Distribution: BLFS, Gentoo
Posts: 353

Rep: Reputation: 32
Quote:
is there any way to recover back my windows environment ...
That'd depend on whether you really overwrote windows partition or it is just a wrongly configured grub.

Boot into linux and launch a console window and type in the following commands:

# su
password:<enter-your-password-here>
#fdisk -l /dev/hda

Type in your password in place of <enter-your-password-here> above and post the output of fdisk -l command. Ofcourse, this will work if the hard disk you have is an IDE primary. If this doesn't work and displays the partitions, replace 'hda' above with 'hdb' or 'sda'.

Also, post the contents of /boot/grub/menu.lst file. Note that, it could be called /boot/grub/grub.conf on your machine.
 
Old 05-11-2006, 06:19 AM   #3
sonam
LQ Newbie
 
Registered: May 2006
Posts: 4

Original Poster
Rep: Reputation: 0
kevkim55 ,

thanks for your prompt reply...i am posting here below fdisk -l /dev/hda

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux

and of menu list

root(hd0,0)
kernel /vmlinuz-version ro root=/dev/hdc1
initrd /initrd-version.img
boot=/dev/hda
default=0
timeout=20
;splashimage=(hd0,0)/grub/splash.xpm.gz
title fedora core (2.4.22-1.2115.nptl)
root(hd0,0)
kernel /vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/LABEL=/
initrd /initrd-2.4.22-1.2115.nptl.img

thanks in advance

sonam
 
Old 05-11-2006, 06:41 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,388

Rep: Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191
Doesn't look right.
Try that again, but this time as "fdisk -l" (i.e., without the disk specification).
 
Old 05-14-2006, 03:13 AM   #5
kevkim55
Member
 
Registered: Dec 2005
Location: Edmonton
Distribution: BLFS, Gentoo
Posts: 353

Rep: Reputation: 32
Quote:
Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux

and of menu list

root(hd0,0)
kernel /vmlinuz-version ro root=/dev/hdc1
initrd /initrd-version.img
boot=/dev/hda
default=0
timeout=20
;splashimage=(hd0,0)/grub/splash.xpm.gz
title fedora core (2.4.22-1.2115.nptl)
root(hd0,0)
kernel /vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/LABEL=/
initrd /initrd-2.4.22-1.2115.nptl.img
Thatz a mixture of /dev/hda and /dev/hdc !! I couldn't tell if your hard disk is /dev/hda or /dev/hdc !!

Do you know the hard disk you installed on is primary master or primary slave ? Or is it a secondary master ? How many hard disks have you got ?

Follow syg00's instructions and post the output of fdisk -l

Also, post the output of the command - mount

# mount

Post the results of mount command which wuld tell us exactly which partitions were mounted by linux.
 
Old 05-14-2006, 10:19 PM   #6
sonam
LQ Newbie
 
Registered: May 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Disk /dev/hdc : 41.1 GB, 41174138880 bytes 255 heads, 63 sectors/tracks, 5005 cylinders units = cylinders of 16065 * 512 = 8225280 bytes

/dev/hdc * 1 4908 39423478+ 83 linux
/dev/hdc2 4908 5005 779152+ 82 Linux swap



/dev/hda1 * 13 104391 83 linux

thanks in advance

sonam
 
Old 05-15-2006, 06:28 AM   #7
sonam
LQ Newbie
 
Registered: May 2006
Posts: 4

Original Poster
Rep: Reputation: 0
hello

mount
0

/dev/hdc1 on / type ext39rw
none on /proc tupe proc (rw)
none on /dev/pts type devpts (rw, gid=5, mode=620)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/hda1 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw)

thanks
sonam
 
  


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
Boot problem Ubuntu on Dual Boot Mickey1 Ubuntu 3 01-29-2006 08:14 AM
Need help fixing boot problem on Ubuntu/WinXp dual-boot Ay-Karamba! Linux - General 5 09-06-2005 09:20 PM
Problem with dual boot/dual drive setup Norab Linux - Hardware 10 08-29-2005 03:13 PM
Fedora Core 3 Dual Boot, Dual Hard drives, Grub Boot Loader Denali03 Linux - Newbie 1 03-04-2005 01:44 PM
problem with Installing red hat linux dual boot(/boot < for 1024 cylinders ) praveenb Linux - Newbie 2 02-13-2004 08:49 PM

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

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