Re: /dev/null > /dev/sdb1 !
On Tue, Apr 22, 2008 at 8:43 AM, Eduardo M KALINOWSKI <firstname.lastname@example.org> wrote:
> On Tue, Apr 22, 2008 at 10:35 AM, paragasu <email@example.com> wrote:
> > well, i just did an experiments on my old pentum III computer.
> > one of the slave hardisk listed as /dev/sdb1 (EXT2) and /dev/sdb2(SWAP)
> > i run the command /dev/null > /dev/sdb1 and suddently,
> > i cannot cannot read or mount my /dev/sdb1 anymore even after i restart my
> > computer few times. i have message saying media failure or disk I/O error.
> What exactly did you run?
> /dev/null is not executable, so you cannot run it and redirect the
> output somewhere else.
The problem is that the file is opened before the commands are executed.
thiscommanddoesnotexist > /tmp/test
ls -lha /tmp/test
Perhaps an EOF was written?