Find the answer to your Linux question:
Results 1 to 4 of 4
hello everyone I had installed linux on one of my hard disk with the usual /(root) /boot and partition .Now I want to remove it and make it dual boot ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2008
    Posts
    1

    Question how to remove linux partitions


    hello everyone
    I had installed linux on one of my hard disk with the usual /(root) /boot and partition .Now I want to remove it and make it dual boot with windows and linux .but the problem is I am not able to remove the linux partitions .I attached it to another xp machine and tried to delete partition but they cannot be removed please help

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Boot up from any LiveCD ( Or boot up in Recovery Mode using Linux Installation CD/DVD ). Open Terminal and execute this
    Code:
    dd if=/dev/zero of=/dev/sda bs=521 count=1
    It will remove all partitions and wipe out your Harddisk.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Quote Originally Posted by devils casper View Post
    Code:
    dd if=/dev/zero of=/dev/sda bs=521 count=1
    Hi, Casper

    Shouldn't that command be with a 512 rather than 521?

    Code:
    dd if=/dev/zero of=/dev/sda bs=512 count=1
    I do think it will still work as you have it written, though.
    oz

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Hi oz !

    Good catch ! You are right.
    It should be 512 only. First 512bytes contain MBR and overwriting it with zeros is enough. 521 wont do any harm but again, 512 is enough.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •