Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
Lars Ellenberg wrote: > [dionysos]-root# perl -e '$offset = sysseek STDOUT, -(128*1024*1024), 2; >> >die unless $offset == 58538276*1024> >$zero = "\x00" x 1024; >> >syswrite(STDOUT,$zero) == 1024 or warn "oops? $!"; >> >' > /dev/sda6 > > > Died at -e line 2. > try die "$!\n" instead... > sysseek returns the new position, or the undefined value > if the seek did not work. > maybe dd does work, instead? > dd if=/dev/zero bs=1024 seek=58538276 count=1 of=/dev/sda6 perl -e '....... die "$!\n"; returns nothing, but does'nt work! dd if=/dev/zero bs=1024 seek=58538276 count=1 of=/dev/sda6 work fine. [bacchus]-root# /etc/init.d/drbd status drbd driver loaded OK; device status: version: 0.7.15 (api:77/proto:74) SVN Revision: 2020 build by root at bacchus.ujf-grenoble.fr, 2006-03-02 18:02:55 0: cs:SyncSource st:Primary/Secondary ld:Consistent ns:10131820 nr:0 dw:9030344 dr:10252133 al:42 bm:637 lo:0 pe:34 ua:146 ap:0 [===>................] sync'ed: 17.3% (47281/57166)M finish: 1:04:33 speed: 12,428 (10,068) K/sec [bacchus]-root# Thank you very much for your help Sincerely -- ================================================================== | Régis Gras | http://www-ledss.ujf-grenoble.fr | | L.E.D.S.S. | mailto:Regis.Gras at ujf-grenoble.fr | | 301, rue de la chimie | -------------- | | DU BP 53 | Tel 04 76 51 41 76 | | 38041 Grenoble Cedex 9 | Fax 04 76 51 40 89 | ==================================================================