LinuxQuestions.org
Review your favorite Linux distribution.
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-29-2009, 01:14 PM   #1
hunnykhan3
LQ Newbie
 
Registered: Aug 2009
Location: Islamabad,pakistan
Distribution: red hat linux 5
Posts: 23

Rep: Reputation: 15
i formatted My C Drive now cant log into linux.


i formatted My C Drive now cant log into linux.its doesn't gives me any option and takes me straight to windows...

what should i do???
 
Old 08-29-2009, 01:25 PM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
Use the rescue option on the disc that you installed GNU/Linux from. You need to restore your GRUB.
 
Old 08-29-2009, 09:54 PM   #3
pegwole
LQ Newbie
 
Registered: Dec 2005
Location: Indiana
Distribution: Crunchbang
Posts: 16

Rep: Reputation: 1
No worries my man, everyone has messed up GRUB at least once, you're not an eperienced linux user until you've messed up GRUB, borked an entire install without even trying, and locked yourself out of your own box. http://www.daniweb.com/blogs/entry708.html Here's a good site for fixing GRUB using a live CD
 
Old 08-30-2009, 01:30 PM   #4
hunnykhan3
LQ Newbie
 
Registered: Aug 2009
Location: Islamabad,pakistan
Distribution: red hat linux 5
Posts: 23

Original Poster
Rep: Reputation: 15
OKAY,but

i cant find my linux now,when i switch on my computer i am directly taken to windows XP,i found a link for installing grub ..cuz i dont have a CD..but it didn't work...link is given below

ftp://alpha.gnu.org/gnu/grub/
 
Old 08-30-2009, 01:47 PM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Boot your Distribution install cd. What do you see when you do a 'fdisk-l' from the cli?
 
Old 08-30-2009, 01:56 PM   #6
hunnykhan3
LQ Newbie
 
Registered: Aug 2009
Location: Islamabad,pakistan
Distribution: red hat linux 5
Posts: 23

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by onebuck View Post
Hi,

Boot your Distribution install cd. What do you see when you do a 'fdisk-l' from the cli?

i am directly logged on to windows XP not linux..this command would run on the linux terminal??
 
Old 08-30-2009, 02:09 PM   #7
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

As I stated, boot your distribution install cd or a LiveCD. Then from the command line (cli) you can do the command 'fdisk -l' to show your disk information. You should see the partitions on the disks. Once you know this then you should be able to rescue your installation. If you indeed formatted the Linux partitions then you must either use a utility to recover or re-install. If you have written to the disk then the decision has been made; 're-install'.
 
Old 08-30-2009, 02:28 PM   #8
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
If you are sill struggling to provide the answer to onebucks query, go here: http://www.supergrubdisk.org/index.php?pid=5 download the format that you want (i.e. floppy.img, cdrom.iso etc) boot from it and choose the appropriate action from the menu.
 
Old 08-31-2009, 01:38 PM   #9
hunnykhan3
LQ Newbie
 
Registered: Aug 2009
Location: Islamabad,pakistan
Distribution: red hat linux 5
Posts: 23

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by {BBI}Nexus{BBI} View Post
If you are sill struggling to provide the answer to onebucks query, go here: http://www.supergrubdisk.org/index.php?pid=5 download the format that you want (i.e. floppy.img, cdrom.iso etc) boot from it and choose the appropriate action from the menu.

i found two links for reinstalling grub...because i don't have a CD or DVD rite now....so i just want GRUB to be installed.linux is safe i know and just needs a GRUB so that it may start prompting me again that whether i want to go to XP or RHL5?

i downloaded a .tar.gz file from the first site(ftp://alpha.gnu.org/gnu/grub/)...then i downloaded and exe file because i am on XP now..from supergrubdisc.org
but still when i restart the system i cant find anything else..it takes me straight to windows.

ftp://alpha.gnu.org/gnu/grub/

http://www.supergrubdisk.org/index.php?pid=5
 
  


Reply



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
Linux formatted NTFS drive unrecognized by Windows Vista Predatorian Linux - Hardware 2 03-29-2009 08:00 AM
Formatted my linux drive in a dual boot setup, now the GRUB loader hangs the system.. Dr_Horse Linux - General 4 12-04-2008 03:50 PM
accidentally formatted drive jb1390 Linux - Hardware 8 12-31-2005 01:47 PM
Recovering data from logical drive formatted by linux soliant Linux - General 3 02-09-2005 07:24 PM
Partitioning a freshly formatted drive for Win98 and Linux Foxy Linux - Newbie 5 04-11-2004 11:11 AM

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

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