|
![](/i/fill.gif) |
>> 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
|
![](/i/fill.gif) |