torsdag 15. juni 2006, 13:42, skrev Falko Trojahn: > Nils Olav Fossum schrieb: > > onsdag 14. juni 2006, 17:38, skrev Peter Huber: > >>> this will do only on blank drives, and according to this > >>> http://lists.gnu.org/archive/html/bug-parted/2004-07/msg00030.html > >> > >> as I see here, parted uses /proc/ide/hda/settings to overwrite the > >> values returned by HDIO_GETGEO. > > > > My understanding: > > ..and this is what parted uses to set the geometry when there is a blank > > disk. > > > > So now I wonder what would happen if we do not blank the drive..?? > > ..will parted read geometry from the drive??.. > > Yes. This seems to be the main problem, since any former software could > have formatted the disk it's way. According to Patrick, parted uses the > partition table to get some informations.
Or, we can use whats already on disk (as parted do?) if no /proc/ide/$sys_hda/settings file = do not erase disk before we run parted. (im trying to find where the first erasing is done in the script..) > What we could do here is getting an bootsector from this manual install on > this specific device, save it then - having booted Knoppix or other live CD > - eg. with dd if=/dev/sda of=mybootsec count=1 > and put this file to /z/site/mybootsec > > When installing with unattended, throw it with > dd if=/z/site/mybootsec of=/dev/sda > on the disk before parted is first time started (you know, it's the same as > erasing all data on the disk, so be careful). or, is it possible to 'patch' mbr' direct on disk? _______________________________________________ unattended-devel mailing list unattended-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/unattended-devel