LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-03-2006, 06:36 PM   #1
Infernolinux
Member
 
Registered: Dec 2005
Location: Florida
Distribution: Ubuntu, currently.
Posts: 36

Rep: Reputation: 15
Remove HD question


On my other computer I have two hard drive, the Master has only windows on it. The Slave has Ubuntu and Debian. How can I format the slave drive?
 
Old 01-03-2006, 06:57 PM   #2
mimithebrain
Member
 
Registered: Nov 2003
Location: ~
Distribution: Ubuntu 10.04
Posts: 843
Blog Entries: 1

Rep: Reputation: 30
assuming you are sure you want to delete Ubuntu and Debian to leave linux... or just install another linux distro hopefully:

You can do many things:
delete all the partition, then when you make another partition on top of them, format that partition.
OR
format the existing partitions.
OR
scrub that surface with zeros using dd if=/dev/zero of=/dev/harddrive_name

delete/create partitions using cfdisk or fdisk
format using mkfs.NameOfFS
 
Old 01-03-2006, 07:20 PM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
To amplify the remarks of Mimethebrain: use cfdisk to delete the partitions on the disk, re-write the partition table after removing all the partitions, then reboot before doing anything else. In my experience, you must re-boot before trying to create new partitions and format them. If you don't re-boot immediately, you may end up with inconsistent partitions (I struggled with that for a couple of days - SuSE 9.3 Pro).

After re-booting, make new partitions. After making the last partition, write the partition table, then re-boot again.

Then use the mkfs tools to format the partitions for the filesystem of choice.

Then install new distros or do whatever trips your trigger.
 
Old 01-05-2006, 04:03 PM   #4
Infernolinux
Member
 
Registered: Dec 2005
Location: Florida
Distribution: Ubuntu, currently.
Posts: 36

Original Poster
Rep: Reputation: 15
Alright, i'm not trying to install a new distribution to clear it up. I want to tottaly delete EVERYTHING on that hard drive. And remove it to put in my other PC. I'm a bit confused...could I format it from windows? Like get a copy of WipeXP and wipe it out? Ooooorrrr....

If I delete the partitions wouldn't it just automatically go into windows again?
----------------------------
And nooo! I'll never get rid of Linux.

Last edited by Infernolinux; 01-05-2006 at 04:06 PM.
 
Old 01-05-2006, 06:25 PM   #5
mimithebrain
Member
 
Registered: Nov 2003
Location: ~
Distribution: Ubuntu 10.04
Posts: 843
Blog Entries: 1

Rep: Reputation: 30
from windows... it's a bit more difficult, if you have XP, you can use the partition manager in there to delete them and make a new one. Other versions of windows will require Partition Magic. If you get a copy of windows, you could delete it from the install disk. If you delete the partitions, Windows won't install on it overnight.
 
Old 01-05-2006, 06:44 PM   #6
Infernolinux
Member
 
Registered: Dec 2005
Location: Florida
Distribution: Ubuntu, currently.
Posts: 36

Original Poster
Rep: Reputation: 15
theres a partition editor in XP? Where!?
 
Old 01-05-2006, 06:56 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
XP has graphical fdisk tool as well as the console command.
It does just the basic functions i.e. Create, format, delete. It will label linux partitions as unknown but you should be able to delete them.
http://www.theeldergeek.com/disk_management.htm
 
Old 01-05-2006, 07:07 PM   #8
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
In xp
click start,
then right click My computer
then click manage
then click storage
then click disk management
then right click whatever Linux partition not assigned a drive letter
then click delete partition

You can then create NTFS partitions and quick format them.

Should be able to do all the above in under 5 minutes.

Last edited by saikee; 01-06-2006 at 02:20 AM.
 
Old 01-05-2006, 07:13 PM   #9
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
If you have installed a bootloader to the Master disk's MBR, then you may run into problems on rebooting. Best to run "fixmbr" from within Windows too before rebooting.
 
Old 01-05-2006, 07:34 PM   #10
mimithebrain
Member
 
Registered: Nov 2003
Location: ~
Distribution: Ubuntu 10.04
Posts: 843
Blog Entries: 1

Rep: Reputation: 30
Norton Ghost recovery disk will fix the mbr is you copy zeros on top of it.
 
Old 01-05-2006, 08:01 PM   #11
Infernolinux
Member
 
Registered: Dec 2005
Location: Florida
Distribution: Ubuntu, currently.
Posts: 36

Original Poster
Rep: Reputation: 15
Nope. I installed everything on my slave. So once I format them I should be able to boot back right into my dads crummy windows.


YOU.GUYS.ROCK!!!!!!

Last edited by Infernolinux; 01-05-2006 at 08:06 PM.
 
Old 01-06-2006, 09:32 AM   #12
mimithebrain
Member
 
Registered: Nov 2003
Location: ~
Distribution: Ubuntu 10.04
Posts: 843
Blog Entries: 1

Rep: Reputation: 30
Yes, correct, format first, install after, and you can get back in the OS.
 
  


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
question about fc3 "install or remove packages" tool trempel Fedora 10 08-01-2005 05:10 AM
Question on Add/Remove apps, rpm file equivalents? Arodef Fedora 7 01-09-2005 11:56 AM
Quick Question: permanently remove modules? 000 Linux - Newbie 2 12-31-2003 06:26 PM
remove question ody1 Linux - Newbie 3 10-07-2003 08:48 AM
add/remove applications and rpm question abbasakhtar Linux - Newbie 6 10-06-2003 01:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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