Changes between Version 17 and Version 18 of BadBlockHowto
- Timestamp:
- Mar 30, 2017, 11:40:08 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BadBlockHowto
v17 v18 1012 1012 [=#footnote10 [10]] In this case the corruption was manufactured by using the `WRITE LONG SCSI` command. See `sg_write_long` in `sg3_utils`. 1013 1013 1014 [=#footnote11 [11]] Most window managers have a handy calculator that will do hex to decimal conversions. On the shell command level, the [http://pubs.opengroup.org/onlinepubs/9699919799/utilities/printf.html printf] command or [http://pubs.opengroup.org/onlinepubs/ 009695399/utilities/xcu_chap02.html#tag_02_06_04 Arithmetic Expansion] could be used: `printf '%d\n' 0xC0DEBA5E` and `echo $((0xC0DEBA5E))` print `3235822174`. The command `printf '0x%X\n' 3235822174` prints `0xC0DEBA5E`. At least recent versions of `bash`, `busybox`, `dash` and `zsh` support 64-bit signed integer arithmetic, other shells may be limited to 32-bit.1014 [=#footnote11 [11]] Most window managers have a handy calculator that will do hex to decimal conversions. On the shell command level, the [http://pubs.opengroup.org/onlinepubs/9699919799/utilities/printf.html printf] command or [http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_04 Arithmetic Expansion] could be used: `printf '%d\n' 0xC0DEBA5E` and `echo $((0xC0DEBA5E))` print `3235822174`. The command `printf '0x%X\n' 3235822174` prints `0xC0DEBA5E`. At least recent versions of `bash`, `busybox`, `dash` and `zsh` support 64-bit signed integer arithmetic, other shells may be limited to 32-bit. 1015 1015 1016 1016 [=#footnote12 [12]] See [https://cygwin.com/].