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 ...
- 02-16-2007 #1Just 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?
- 02-16-2007 #2Just Joined!
- Join Date
- Feb 2007
- Posts
- 3
http://gparted.sourceforge.net/
Maybe this will help.
- 02-17-2007 #3boot up from any LiveCD, open terminal/konsole and execute this
Originally Posted by Shawz
this code will *wipe* your harddisk.Code:dd if=/dev/zero of=/dev/hda bs=521 count=1
CasperIt is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 02-19-2007 #4Just Joined!
- Join Date
- Feb 2007
- Posts
- 9
thanks - what does the bs=521 count=1 mean / do?
Originally Posted by devils_casper
- 02-19-2007 #5
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
CasperIt is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 02-19-2007 #6Just Joined!
- Join Date
- Feb 2007
- Posts
- 9
should the number not be '512' instead of '521' then?
Originally Posted by devils_casper
- 02-19-2007 #7
No. its 521 only. 513-521 contains Dos Compat (Windows) OR GRUB stage 1.5 (Linux) and you have to remove that too.
CasperIt is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 02-19-2007 #8Just Joined!
- Join Date
- Feb 2007
- Posts
- 9
Command doesn't work as the drive is saying
'dd: opening '/dev/hda': Read-only file system'
- 02-19-2007 #9
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
- 02-19-2007 #10Just Joined!
- Join Date
- Feb 2007
- Posts
- 9
"Disk /dev/sda: 80.0Gb 80026361856 bytes
Originally Posted by devils_casper
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sda doesn't contain a valid partition table"


Reply With Quote