LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 02-08-2008, 03:56 PM   #1
D191TAL
LQ Newbie
 
Registered: Feb 2008
Posts: 1

Rep: Reputation: 0
CentOS Help [Redhat Linux]


Hello. I recently bought a used laptop from my wife's friend and the laptop has the CentOS (Redhat Linux) installed but it originally came with Windows XP Home Edition. It asks for a username and password but thew owner doesn't remember neither one (lol). I was wondering how to I switch back to Windows XP or how do I go about changing the OS on this laptop? Thanks guys, I appreciate it.

-Mike-
 
Old 02-08-2008, 04:06 PM   #2
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Rep: Reputation: 30
If it's dual booted then choose Windows at the prompt and you could repartition having Windows reclaim the other Linux partition. If not, then repartition the drive and then reinstall Windows.

You will need partitioning software if you did not want to use a bootable Linux cd.

Last edited by lord-fu; 02-08-2008 at 04:10 PM.
 
Old 02-08-2008, 09:43 PM   #3
LinuxCrayon
Member
 
Registered: Nov 2007
Location: Georgia, USA
Distribution: FreeBSD
Posts: 274

Rep: Reputation: 31
Quote:
Originally Posted by lord-fu View Post
If it's dual booted then choose Windows at the prompt and you could repartition having Windows reclaim the other Linux partition. If not, then repartition the drive and then reinstall Windows.

You will need partitioning software if you did not want to use a bootable Linux cd.
lord-fu is giving poor advice. Grab a Linux CD and install it. Format your hard drive, install Linux, and throw anything Microsoft related into a giant bonfire.
Kidding. If Windows floats your boat, that's your choice and you should follow lord-fu's instructions. Otherwise, grab something like Ubuntu or Fedora and install it (be sure to get the most recent [non-alpha/beta] versions).
That being said, I think Microsoft made a great stride forward with Office 2007. That is the only Microsoft product I have ever really liked.
But I say just install Linux over whatever's on there. [edit] line breaks aren't working for me for some reason...I've tried editing twice now...

Last edited by LinuxCrayon; 02-08-2008 at 09:44 PM.
 
Old 02-08-2008, 09:48 PM   #4
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: The Tropics
Distribution: Slackware & Derivatives
Posts: 2,472
Blog Entries: 1

Rep: Reputation: 128Reputation: 128
How about a more un-biased approach? lol, jk.

Get GParted from www.distrowatch.com and delete you CentOS partition, expand the ntfs partition to fill it all up (assuming you want XP). If Grub was installed in the MBR, it will still be there when you reboot, just not CentOS.

As far as distros to use, there are hundreds to chose from. What is your experience with Linux?
 
Old 02-08-2008, 10:15 PM   #5
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Another option would be to just add a user for youtself.

In short, you would need to download a live cd of a linux distribution (perhaps Fedora).

Mount the partition that has CentOS on it, and edit /etc/shadow to remove root's password.

I don't know if this is making any sense to you (depends a bit on your level of linux experience) but if you need more help, I'm sure we can talk you through the process.

Step one would be to download/burn a live cd (http://fedoraproject.org/get-fedora would work)

Then come back
 
Old 02-09-2008, 11:27 AM   #6
this213
Member
 
Registered: Dec 2001
Location: ./
Distribution: Fedora, CentOS, RHEL, Gentoo
Posts: 167

Rep: Reputation: 34
Quote:
Originally Posted by D191TAL
It asks for a username and password but thew owner doesn't remember neither one (lol).
At the Grub screen (where it says "Booting Centos in N seconds), hit Enter. With the top CentOS line selected, hit "e", arrow to the "kernel" line and hit "e" again. At the end of the line, add " single" or " 1", the hit "Enter", then "b". This will boot you into single user mode. Once you're at a prompt, enter "passwd" to change the root password, then "reboot".

When the machine comes back up, log in as root with your new password, then go to System > Administration > Users & Groups and you can add/edit the users there to something that you know.
 
  


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
Redhat ES 4 and CentOS deadlock Red Hat 7 01-10-2008 07:19 AM
CentOS to RedHat migration Jaze Red Hat 2 12-10-2006 05:30 PM
is CentOS same as RedHat Enterprise YeJX Red Hat 1 01-19-2006 01:51 AM
CentOS 3.1 vs. Redhat cbriscoejr Linux - Distributions 1 10-11-2004 01:53 PM

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

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