Skip to contentSkip to conversation

Bug in EZ-Drive remapping code (ide.c)

DISCUSSION [email protected] 2 participants 2 messages Apr 16, 2001

lore
Share & tools
lore
#0 lore raw

From [email protected] Mon Apr 16 08:35:09 2001

Andries.Brouwer writes:

> What one wants is to remap access to sector 0 to sector 1, > and leave all other sectors alone. Thus, if someone asks > for sectors 0 1 2 3 4, she should get sectors 1 1 2 3 4.

No, because then you can't write to the real first sector. Assuming translation is good, 1 0 2 3 4 is a better order. Then "dd if=/dev/zero of=/dev/hda bs=1k count=999" will get rid of all this crap. Otherwise, killing it is difficult.

If you use EZdrive and damage its code, then probably you cannot boot anymore, or lose access to your data. Killing it must be difficult.

EZdrive provides uninstall code itself, but if you really want, boot with "hda=noremap", and then your dd command will erase both EZdrive and your precious data.

Andries

#1 lore raw
Quoted 7 lines · Andries.Brouwer

From [email protected] Mon Apr 16 08:35:09 2001

Quoted 6 lines
Quoted 3 lines · Andries.Brouwer

What one wants is to remap access to sector 0 to sector 1, and leave all other sectors alone. Thus, if someone asks for sectors 0 1 2 3 4, she should get sectors 1 1 2 3 4.

Quoted 8 lines
Quoted 4 lines

No, because then you can't write to the real first sector. Assuming translation is good, 1 0 2 3 4 is a better order. Then "dd if=/dev/zero of=/dev/hda bs=1k count=999" will get rid of all this crap. Otherwise, killing it is difficult.

If you use EZdrive and damage its code, then probably you cannot boot anymore, or lose access to your data. Killing it must be difficult.

The above dd command wipes out out the partition table anyway, with or without EZdrive. I think it also kills the EZdrive code.

EZdrive tends to come installed by default, to support DOS and similar crufty Microsoft bits. For a pure Linux system it should be removed.

What you are arguing for is protecting root from himself. You want to limit the rope, but this is silly as the partitions themselves are still completely unprotected.

The "1 0 2 3 4" order is nicely 1-to-1, unlike the other orders.

Quoted 3 lines

EZdrive provides uninstall code itself, but if you really want, boot with "hda=noremap", and then your dd command will erase both EZdrive and your precious data.

This is a pain. The fdisk program ought to have a "wipe EZdisk" option. More generally, it ought to let the user wipe everything of a similar nature, by both brute force and by copying the second sector over the first.