LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 09-18-2011, 09:44 AM   #1
noxus
LQ Newbie
 
Registered: Sep 2011
Posts: 6

Rep: Reputation: 0
Uninstalling Ubuntu - nothing works!


Hi!

A year ago or so I installed Ubuntu on my computer because I was told that it will work better (my computer was a bit slow, but now I know that it wasn't windows to blame).
So, when I installed ubuntu, I deleted windows so now I have only ubuntu. I haven't been using that computer for over six months and I forgot the password. The are two accounts on it, one with the password and one without. The one without the password has limited acess.

Now, I tried to uninstall Ubuntu with live cd, not working, I tried with esc or F12 to enter the boot menu to just install windows over ubuntu with boot cd, but it doesn't work. I tried with making a special boot cd, but when I put it in my computer, my mouse and keyboard die so I can't do anything. So also not working.

Then I came across one method that needed my password which I don't know. So i tried to restore it in 3 or 4 was and none of them worked.

I really need that computer so if anyone could help me I would be very gratfull!
 
Old 09-18-2011, 09:49 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
if you want to install something else, why try to uninstall the old os? Just nuke it in the installer for windows or whatever.

if you want to recover the passwords it's pretty simple though. on the boot screen, hit e to edit the options, and then just add "1" to the kernel options line. That will load you into runlevel 1, directly in as root and then you can use "passwd <username>" to change that users password. simples.
 
Old 09-18-2011, 09:52 AM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
So you just want to install Windows on it?
Boot from the live-CD, open a terminal and launch this command:
Code:
dd if=/dev/zero of=/dev/sda bs=512 count=1
Be careful! This command assumes that there is only one harddisk in your computer. You also will not be able to access the data on the drive after running the command!

This command deletes the MBR, including the partition table, so that it will be handled as a new drive from your computer. Just pop in your Windows CD and restart the computer to install it.
 
Old 09-18-2011, 10:09 AM   #4
noxus
LQ Newbie
 
Registered: Sep 2011
Posts: 6

Original Poster
Rep: Reputation: 0
Windows cd won't start when I put it in, even though I figured it out how to make it boot from cd first.


Tobi, I did what you said, but when I write that comand in the terminal I get this:

dd: opening '/dev/sda': Permission denied

Last edited by noxus; 09-18-2011 at 10:20 AM.
 
Old 09-18-2011, 10:17 AM   #5
noxus
LQ Newbie
 
Registered: Sep 2011
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by acid_kewpie View Post
on the boot screen, hit e to edit the options
I tried that too. Several times. I hit e, but nothing happens.

I have no data on this computer so I don't need to save anything. I just need to put win on it.
 
Old 09-18-2011, 10:26 AM   #6
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181
Quote:
Originally Posted by noxus View Post
Windows cs won't start when I put it in, even though I figured it out how to make it boot from cd first.
Was "cs" a typo for "cd"? Or is it some version of Windows I never heard of or what?

It is quite unlikely that the installed copy of Linux on the hard drive causes any problem for booting a Windows install CD or for installing Windows from that CD.

There are occasional reports describing situations in which an installed copy of Linux does interfere with installing Windows. My best guess is those are all operator error misunderstanding some other problem and blaming it on the installed copy of Linux. But I wasn't physically there, so I can't be sure.

If you really think an installed copy of Linux is interfering with booting a Windows CD, you can get any Linux liveCD (most Linux install CD's can be booted in liveCD mode), boot that, go into the GUI partitioning program, and delete all the partitions.

More likely, your Windows CD won't boot for some other reason.

Quote:
Originally Posted by noxus View Post
The are two accounts on it, one with the password and one without. The one without the password has limited acess.
None of that is relevant. You shouldn't be trying to uninstall a copy of Linux from inside that installed copy. If you want to uninstall Linux (which is questionable) you should be booted in your Linux liveCD.

I don't know what password might be required to run a GUI partitioning program (with root privilege) from a Ubuntu liveCD. I expect no password is required, but if one is required, it would be in Ubuntu online documentation and would not be related to any passwords you selected and forgot on your own installed copy.

Quote:
Originally Posted by noxus View Post
to just install windows over ubuntu with boot cd, but it doesn't work. I tried with making a special boot cd,
I think most of the confusion here relates to whatever you mean by "boot cd".

You need a Windows install CD.

Last edited by johnsfine; 09-18-2011 at 10:39 AM.
 
1 members found this post helpful.
Old 09-18-2011, 10:36 AM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
Quote:
Originally Posted by noxus View Post
Tobi, I did what you said, but when I write that comand in the terminal I get this:

dd: opening '/dev/sda': Permission denied
Sorry about that, I always forget that Ubuntu uses sudo for getting root privileges. The command has to be:
Code:
sudo dd if=/dev/zero of=/dev/sda bs=512 count=1
If your computer doesn't start from the CD then I would assume that the CD is faulty. Try to boot it in a different computer.
 
Old 09-18-2011, 10:37 AM   #8
noxus
LQ Newbie
 
Registered: Sep 2011
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by johnsfine View Post
Was "cs" a typo for "cd"?
Yes

I deleted them and I hope this will help. Thank you guys for your help!

---------- Post added 09-18-11 at 09:38 AM ----------

Quote:
Originally Posted by TobiSGD View Post
Sorry about that, I always forget that Ubuntu uses sudo for getting root privileges. The command has to be:
Code:
sudo dd if=/dev/zero of=/dev/sda bs=512 count=1
If your computer doesn't start from the CD then I would assume that the CD is faulty. Try to boot it in a different computer.
I tried with sudo too, it didn▀t work
 
Old 09-18-2011, 10:41 AM   #9
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
What error message did you get?
 
Old 09-18-2011, 10:52 AM   #10
noxus
LQ Newbie
 
Registered: Sep 2011
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TobiSGD View Post
What error message did you get?
I don't remember any more, but it▀s all ok now. I was able to start the win boot cd. Thanks guys!
 
Old 09-18-2011, 10:54 AM   #11
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
Quote:
Windows cd won't start when I put it in, even though I figured it out how to make it boot from cd first.
Then the CD is defect.
Can you boot from another live CD?

Kind regards
 
Old 09-18-2011, 10:58 AM   #12
noxus
LQ Newbie
 
Registered: Sep 2011
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by repo View Post
Then the CD is defect.
Can you boot from another live CD?

Kind regards
I don' know what was the problem, I was able to book Ubuntu live cd, but no windows boot cd. At the end, I deleted partitions using Ubuntu live cd and after that, windows boot cd worked
 
Old 09-18-2011, 11:10 AM   #13
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,027

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
does the windows cd boot on any other pc.

are you able to boot any other bootable cd from this pc.

i suspect you didnt change the boot order correctly in your bios (every manufacturer and model has a different key combination to enter bios at bootup).
is it possible possible the disk is faulty or the dvd-rom is broken ?
 
Old 09-18-2011, 11:27 AM   #14
wpeckham
Senior Member
 
Registered: Apr 2010
Location: USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 1,652

Rep: Reputation: 569Reputation: 569Reputation: 569Reputation: 569Reputation: 569Reputation: 569
Can we

Mark this thread SOLVED? NOXUS: is my understanding correct that you have recovered this device and it is functional and you need no more help from this thread?
 
  


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
I need help uninstalling ubuntu please ssccchef Linux - Newbie 19 09-27-2010 08:29 AM
uninstalling ubuntu j360 Linux - Wireless Networking 6 01-17-2010 05:47 AM
Uninstalling Ubuntu apche93 Linux - General 3 12-17-2007 11:16 PM
Uninstalling UBuntu ram20plus Linux - Newbie 3 07-29-2007 05:14 PM
Uninstalling Ubuntu... JuCa Ubuntu 16 03-12-2007 08:54 PM


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