LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-14-2006, 08:42 AM   #1
Dakkar
Member
 
Registered: Dec 2003
Location: Turkey
Distribution: Suse
Posts: 89

Rep: Reputation: 15
How to open linux after format the windows


Hi i have grub for bootloader and have installed suse 10.0 and windows xp prof on my hdd.When i was installing linux windows had been installed already so i had no problem because in every boot grub ask me for which os do i want to load but when i format the windows and install it again it doesnt ask for any other os it directly boot itself
So in this condition how can i get back my old grub without formatting the linux
Thanks
 
Old 01-14-2006, 08:48 AM   #2
paragn
Member
 
Registered: Jan 2006
Distribution: Red Hat EL5, Fedora 7
Posts: 259

Rep: Reputation: 30
hi,
its simple thing.
1. Boot the computer with Linux Installation CD.
2. Enter into Linux Rescue mode by enering the following command in boot screen.
boot: linux rescue
3. When the sh prompt is reached, enter the following commands to change root password.

#chroot /mnt/sysimage
#grub-install (select your grub location to be installed on HDD e.g. /dev/hda1)
 
Old 01-14-2006, 10:08 AM   #3
Dakkar
Member
 
Registered: Dec 2003
Location: Turkey
Distribution: Suse
Posts: 89

Original Poster
Rep: Reputation: 15
Thanks is there a way for me to learn before formatting the windows that which partition does grub installed ?
 
Old 01-14-2006, 10:51 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
The bootup process looks for code in the mbr of the first drive (after trying floppy and maybe CD)
Windows will install it's boot loader in the mbr of disk 1. By default, this also where grub goes when you install Linux.

Look in the grub config file---usually /boot/grub/menu.lst Here you will see the info that grub uses to boot various things. For Windows, you'll see "chainloader +1" That sends the system to the boot sector of the first partition on drive 1. That is where NTLDR is.

Further, you will see that the boot code sends the system to the Linux partition.

You may want to have a look at the grub manual (on the grub web site)
 
Old 01-14-2006, 03:43 PM   #5
Dakkar
Member
 
Registered: Dec 2003
Location: Turkey
Distribution: Suse
Posts: 89

Original Poster
Rep: Reputation: 15
how about when i want to add 2 os inside of the grub i mean when the machine boot i want to see the windows and linux as a choice how can i do that?
 
Old 01-14-2006, 07:18 PM   #6
paragn
Member
 
Registered: Jan 2006
Distribution: Red Hat EL5, Fedora 7
Posts: 259

Rep: Reputation: 30
hi,
what happned? did you follow what i said?if yes then grum must have installed with 2 options of your choice.
 
Old 01-15-2006, 04:51 AM   #7
Dakkar
Member
 
Registered: Dec 2003
Location: Turkey
Distribution: Suse
Posts: 89

Original Poster
Rep: Reputation: 15
i have followed what u said
i have put the linux boot cd then type linux rescue
then it asked me login i wrote root after that there was a prompt called
rescue# and i wrote there grub --install /dev/hda6
then an empty screen with grub promp apperad as
grub#
then wait parametres from me and i didnt know what to write so nothing happened
is that wrong
if it is can u write it to me step by step plz

Last edited by Dakkar; 01-15-2006 at 05:10 AM.
 
Old 01-15-2006, 05:10 AM   #8
paragn
Member
 
Registered: Jan 2006
Distribution: Red Hat EL5, Fedora 7
Posts: 259

Rep: Reputation: 30
follow what i said in post 2 here. also AFAIK in rescue mode you will no longer be asked to login. becasue this is the procedure used for resetting root password or installing grub
 
Old 01-15-2006, 06:32 AM   #9
Dakkar
Member
 
Registered: Dec 2003
Location: Turkey
Distribution: Suse
Posts: 89

Original Poster
Rep: Reputation: 15
when i enter rescue mode
it says
rescue login:
i wrote there
chroot /mnt/sysimage

then it asks for password and it doesnt accept anything i wrote
 
Old 01-15-2006, 07:03 AM   #10
paragn
Member
 
Registered: Jan 2006
Distribution: Red Hat EL5, Fedora 7
Posts: 259

Rep: Reputation: 30
hi,
it mean suse10 have different rescue mode compare to what only i used on Fedora. then try giving root user name and its password. but i dont think it will work as you have already deleted all linux partitions including /etc/passwd to crosscheck username/password.
but i feel some default username/password may be there for Suse recue operation.
 
Old 01-21-2006, 02:26 PM   #11
Dakkar
Member
 
Registered: Dec 2003
Location: Turkey
Distribution: Suse
Posts: 89

Original Poster
Rep: Reputation: 15
does anyone exactly know what to do in suse 10.0 to reload grub os booting screen after formating the windows?
I would be appreciate it if u explain it step by step instead of giving links
Thanks
 
Old 01-22-2006, 02:30 PM   #12
Dakkar
Member
 
Registered: Dec 2003
Location: Turkey
Distribution: Suse
Posts: 89

Original Poster
Rep: Reputation: 15
any idea about how can i re install grub for suse 10.0 and windows xp dual boot?
 
Old 01-22-2006, 02:52 PM   #13
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
My reading of this thread says that people have been trying to answer your question.....
If you can get into a Linux mode---eg Live CD or rescue mode, you can install GRUB on a floppy. This will not disturb the Windows installation.
There are also ways of configuring the **Windows** loader to boot anoth OS.

Look at the GRUB manual--on the GRUB website.

This also is a good reference: http://www.justlinux.com/forum/showt...hreadid=143973

Don't panic--I am not suggesting you do what he did---it just has lots of info to help you see hoe the process works.

Finally, the easist thing for you might be to simply re-install Linux.
 
Old 01-22-2006, 03:31 PM   #14
Dakkar
Member
 
Registered: Dec 2003
Location: Turkey
Distribution: Suse
Posts: 89

Original Poster
Rep: Reputation: 15
yeah re-installing the linux can be the simpliest solution but i dont wanna loose the datas in it and also i dont wanna format linux everytime when i format windows so all i want is a solution that doesnt include floppy disks and damaging the windows partition
 
Old 01-22-2006, 10:01 PM   #15
paragn
Member
 
Registered: Jan 2006
Distribution: Red Hat EL5, Fedora 7
Posts: 259

Rep: Reputation: 30
Quote:
yeah re-installing the linux can be the simpliest solution but i dont wanna loose the datas in it and also i dont wanna format linux everytime when i format windows so all i want is a solution that doesnt include floppy disks and damaging the windows partition
How about taking your data on windows xp partition/ any other harddisk if you have and then reinstalling linux?
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting windows NTFS to Linux acceptable format??? A6Quattro Linux - General 2 07-12-2005 11:18 AM
use vi to convert linux format to windows format intolinux Linux - Software 2 12-10-2003 10:20 PM
CD-R windows format vs linux cjpsparks Linux - Hardware 2 10-15-2003 10:33 AM
how to format windows partitions from linux? skora Linux - Hardware 7 09-18-2003 06:57 PM
Windows vs Linux: uploaded file changes format?? rooman Linux - General 3 05-28-2002 01:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:24 AM.

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