LinuxQuestions.org
Help answer threads with 0 replies.
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-08-2008, 11:30 PM   #1
piyush.ml20
LQ Newbie
 
Registered: Aug 2008
Location: india
Distribution: rhel 5 server
Posts: 27

Rep: Reputation: 15
after installing linux how to format windows


i m using windows xp sp2.
then i install RHEL5 SERVER EDITION IN TEXT MODE too.
now when i boot from xp bootable to format window then
the screen goes blank.
 
Old 08-09-2008, 12:15 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Type fdisk -l.
This will give you the partition table for your system. You can identify the windows partition here. Just format it using mke2fs command if you want it to be linux partition. Or you can change the type of partition from linux as well for it to be windows partition.
 
Old 08-09-2008, 02:48 PM   #3
evercordero
LQ Newbie
 
Registered: Aug 2008
Posts: 18

Rep: Reputation: 0
help

I have a debian etch installation. But I installed windows xp because I have some trouble with printers under linux. Now I don't know how to do for making the grub system visible again. How can I unmask debian?
 
Old 08-09-2008, 06:34 PM   #4
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Do not install windows after installing Linux, it will trample all over the MBR (not that Linux does anything else if you install it after windows, only it has the decency to add a bootloader that allows you to boot both systems).

You'll need to either reinstall GRUB from a livecd or configure windows to provide a bootloader.

http://ubuntuforums.org/archive/index.php/t-24113.html
 
Old 08-13-2008, 03:02 AM   #5
piyush.ml20
LQ Newbie
 
Registered: Aug 2008
Location: india
Distribution: rhel 5 server
Posts: 27

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jay73 View Post
Do not install windows after installing Linux, it will trample all over the MBR (not that Linux does anything else if you install it after windows, only it has the decency to add a bootloader that allows you to boot both systems).

You'll need to either reinstall GRUB from a livecd or configure windows to provide a bootloader.

http://ubuntuforums.org/archive/index.php/t-24113.html
i have already installed xp & Rhel 5 server lynux.
now how to format windows.
the system is not booting from bootable xp.
 
Old 08-13-2008, 03:10 AM   #6
piyush.ml20
LQ Newbie
 
Registered: Aug 2008
Location: india
Distribution: rhel 5 server
Posts: 27

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by linuxlover.chaitanya View Post
Type fdisk -l.
This will give you the partition table for your system. You can identify the windows partition here. Just format it using mke2fs command if you want it to be linux partition. Or you can change the type of partition from linux as well for it to be windows partition.

what is the purpose of converting window partition into lynux one.
i have to reinstall my xp windows.
 
Old 08-13-2008, 03:25 AM   #7
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
The title of the thread reads as if you want to format the windows partition. If this is not the case, then what exactly is the problem?
You are asking how to format windows. That is what I told.
 
Old 08-13-2008, 03:53 AM   #8
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
As i said, installing XP only after you have installed Linux is generally a very bad idea. I have seen the black screen, too, on a number of occasions. The only really efficient solution was wiping the drive clean and reinstalling both operating systems.
 
Old 08-13-2008, 04:30 AM   #9
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Yeah, installing windows after linux is not. It will eat up the mbr with its own boot loader. But then re-installing grub should work. At least has worked for me. Though I do not use windows now and have not done this in years. But I remember installing grub from rescue mode.
 
Old 08-18-2008, 05:25 AM   #10
piyush.ml20
LQ Newbie
 
Registered: Aug 2008
Location: india
Distribution: rhel 5 server
Posts: 27

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by linuxlover.chaitanya View Post
The title of the thread reads as if you want to format the windows partition. If this is not the case, then what exactly is the problem?
You are asking how to format windows. That is what I told.

how to reinstall windows after installing linux.
now u get it
 
Old 08-18-2008, 05:34 AM   #11
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
If this is the case you should be using the relevant titles.
If you need to install the windows, free some space and install it on it. After you are done with windows installation, you wont be able to boot into linux as windows will take up mbr and remove grub.
Boot into rescue mode from bootable cd and then reinstall the grub.
 
Old 08-18-2008, 05:35 AM   #12
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
If Linux is working, one easy fix is to put GRUB on a floppy.

Then install Windows normally. It will take over the MBR, but no problem....

Once Windows is installed and working, boot into Linux from the floppy. Then re-install GRUB to the MBR of the hard drive. (Or NOT---you can just boot from the floppy whenever you want to be in Linux.)

The "booting" link below might help also.
 
Old 08-19-2008, 04:15 AM   #13
piyush.ml20
LQ Newbie
 
Registered: Aug 2008
Location: india
Distribution: rhel 5 server
Posts: 27

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by linuxlover.chaitanya View Post
If this is the case you should be using the relevant titles.
If you need to install the windows, free some space and install it on it. After you are done with windows installation, you wont be able to boot into linux as windows will take up mbr and remove grub.
Boot into rescue mode from bootable cd and then reinstall the grub.

you are still not getting my point.
ist i install windows then i install linux means now i have both windows
& linux installed on my computer.
grub has remove windows mbr.
now i want 2 reinstall my windows xp because it is not working properly.when i boot from windows xp bootable the screen goes blank.
you have taken the case in opposite mannner.
 
Old 08-19-2008, 04:21 AM   #14
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
Post the output of "sudo /sbin/fdisk -l". Also post the output of "sudo cat /boot/grub/menu.lst". Grub may be misconfigured or the BIOS and Kernel or grub may not agree on which drive is first.

Also explore XP's ntfs partition. Do all of the files seem intact?

Please word your posts better. Formatting Windows sounds like you want to format the windows partition, which would wipe out your XP installation.
 
Old 08-21-2008, 11:08 AM   #15
piyush.ml20
LQ Newbie
 
Registered: Aug 2008
Location: india
Distribution: rhel 5 server
Posts: 27

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jschiwal View Post
Post the output of "sudo /sbin/fdisk -l". Also post the output of "sudo cat /boot/grub/menu.lst". Grub may be misconfigured or the BIOS and Kernel or grub may not agree on which drive is first.

Also explore XP's ntfs partition. Do all of the files seem intact?

Please word your posts better. Formatting Windows sounds like you want to format the windows partition, which would wipe out your XP installation.
output of ur 1st command :

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 6527 52428096 7 HPFS/NTFS
/dev/sda2 6528 60800 435947872+ f W95 Ext'd (LBA)
/dev/sda5 6528 13054 52428096 7 HPFS/NTFS
/dev/sda6 13055 19581 52428096 7 HPFS/NTFS
/dev/sda7 19582 26108 52428096 7 HPFS/NTFS
/dev/sda8 26109 32635 52428096 7 HPFS/NTFS
/dev/sda9 32636 45689 104856223+ 7 HPFS/NTFS
/dev/sda10 58744 60800 16522821 7 HPFS/NTFS
/dev/sda11 45690 45702 104391 83 Linux
/dev/sda12 46226 51447 41945683+ 83 Linux
/dev/sda13 51448 54058 20972826 b W95 FAT32
/dev/sda14 54059 56669 20972826 8e Linux LVM
/dev/sda15 45703 46225 4200966 82 Linux swap / Solaris

Partition table entries are not in disk order

output of 2nd command :

[root@localhost /]# sudo cat /boot/grub/menu.lst
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,10)
# kernel /vmlinuz-version ro root=/dev/sda12
# initrd /initrd-version.img
#boot=/dev/sda
default=1
timeout=5
splashimage=(hd0,10)/grub/splash.xpm.gz
hiddenmenu
password --md5 $1$D50jDAel$47v234FSA7Yl99hXslEzQ.
title Red Hat Enterprise Linux Server (2.6.18-53.el5xen)
root (hd0,10)
kernel /xen.gz-2.6.18-53.el5
module /vmlinuz-2.6.18-53.el5xen ro root=LABEL=/1 rhgb quiet
module /initrd-2.6.18-53.el5xen.img
title windows xp sp2
rootnoverify (hd0,0)
chainloader +1
[root@localhost /]#

everything seems to be right in exploring ntfs partition.
grub has destroyed windows mbr.
 
  


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
format an old Linux drive in windows? kuplo Linux - Hardware 5 10-02-2006 10:29 PM
How to open linux after format the windows Dakkar Linux - General 15 01-25-2006 05:35 PM
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

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

All times are GMT -5. The time now is 02:20 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration