Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 15
I have a new laptop with Vista on I want to delete this and install Linux but the disk is totally write protected. I have been trying using cfdisk and ...
  1. #1
    Just Joined!
    Join Date
    Feb 2007
    Posts
    9

    removing write protection from a disk

    I have a new laptop with Vista on I want to delete this and install Linux but the disk is totally write protected. I have been trying using cfdisk and fdisk but it can't seem to remove the write protection. How can I just make a blanked writable disk?

  2. #2
    Just Joined!
    Join Date
    Feb 2007
    Posts
    3
    http://gparted.sourceforge.net/

    Maybe this will help.

  3. #3
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Quote Originally Posted by Shawz
    I have a new laptop with Vista on I want to delete this and install Linux but the disk is totally write protected. I have been trying using cfdisk and fdisk but it can't seem to remove the write protection. How can I just make a blanked writable disk?
    boot up from any LiveCD, open terminal/konsole and execute this
    Code:
    dd if=/dev/zero of=/dev/hda bs=521 count=1
    this code will *wipe* your harddisk.





    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  4. #4
    Just Joined!
    Join Date
    Feb 2007
    Posts
    9
    Quote Originally Posted by devils_casper
    boot up from any LiveCD, open terminal/konsole and execute this
    Code:
    dd if=/dev/zero of=/dev/hda bs=521 count=1
    this code will *wipe* your harddisk.





    Casper
    thanks - what does the bs=521 count=1 mean / do?

  5. #5
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    bs = Bytes and count = number of BLOCKS to be written.
    Harddisk stores Master Boot Record, Partition Table and Harddisk signature in first 512 bytes of first Sector. this code will remove all those entries and your Harddisk will be blank as brand new.
    check manual of 'dd' command.
    man dd




    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #6
    Just Joined!
    Join Date
    Feb 2007
    Posts
    9
    Quote Originally Posted by devils_casper
    bs = Bytes and count = number of BLOCKS to be written.
    Harddisk stores Master Boot Record, Partition Table and Harddisk signature in first 512 bytes of first Sector. this code will remove all those entries and your Harddisk will be blank as brand new.
    check manual of 'dd' command.
    man dd




    Casper
    should the number not be '512' instead of '521' then?

  7. #7
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    No. its 521 only. 513-521 contains Dos Compat (Windows) OR GRUB stage 1.5 (Linux) and you have to remove that too.






    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  8. #8
    Just Joined!
    Join Date
    Feb 2007
    Posts
    9
    Command doesn't work as the drive is saying

    'dd: opening '/dev/hda': Read-only file system'

  9. #9
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    post the output of fdisk -l command.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  10. #10
    Just Joined!
    Join Date
    Feb 2007
    Posts
    9
    Quote Originally Posted by devils_casper
    post the output of fdisk -l command.
    "Disk /dev/sda: 80.0Gb 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Disk /dev/sda doesn't contain a valid partition table"

Page 1 of 2 1 2 LastLast

Posting Permissions

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