POV-Ray : Newsgroups : povray.off-topic : Funniest bug ever : Re: Funniest bug ever Server Time
29 Jul 2024 04:29:42 EDT (-0400)
  Re: Funniest bug ever  
From: Orchid Win7 v1
Date: 25 Feb 2013 13:58:41
Message: <512bb461$1@news.povray.org>
>> Ooo, here's an interesting question - what is the size of /dev/sda? Is
>> it the size of the special file, or the device to which it refers?
>
> It's the size of the special file.

Figures.

> If you want to know the size on the
> device, you'll have to parse the output of df.

Only if the device is *mounted*. ;-)

I believe we used sdisk to do the job.

> Come to think of it, you should also test that /dev/sba is a block
> device before trying to dd to it using [ -b /dev/sda ]

Yes, that was the solution I chose in the end. It's an easy fix.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.