Monday, October 13, 2014

Checking dd(1) progress on Solaris

On most operating systems you can send a sig user to a dd(1) process to check on its progress, but on Solaris (and its derivatives) this ends up killing it. Fret not, pfiles(1) is at hand:
# pfiles 2267
2267:    dd if=iso.img of=/dev/rdsk/c6t0d0p0 bs=10M
   Current rlimit: 256 file descriptors
   0: S_IFREG mode:0644 dev:175,65548 ino:558453 uid:101 gid:10 size:15610576896
      O_RDONLY|O_LARGEFILE
      /home/admin/iso.img
      offset:6219104256
The offset field above is in bytes, so this particular dd(1) just passed 6.2Gb.

No comments:

Post a Comment