{"action":"created","issue":{"url":"https://api.github.com/repos/RafaelAybar/Charla-bash-nivel-medio/issues/2","repository_url":"https://api.github.com/repos/RafaelAybar/Charla-bash-nivel-medio","labels_url":"https://api.github.com/repos/RafaelAybar/Charla-bash-nivel-medio/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/RafaelAybar/Charla-bash-nivel-medio/issues/2/comments","events_url":"https://api.github.com/repos/RafaelAybar/Charla-bash-nivel-medio/issues/2/events","html_url":"https://github.com/RafaelAybar/Charla-bash-nivel-medio/issues/2","id":181195984,"number":2,"title":"Error en la intrucción dd","user":{"login":"RafaelAybar","id":21227176,"avatar_url":"https://avatars.githubusercontent.com/u/21227176?v=3","gravatar_id":"","url":"https://api.github.com/users/RafaelAybar","html_url":"https://github.com/RafaelAybar","followers_url":"https://api.github.com/users/RafaelAybar/followers","following_url":"https://api.github.com/users/RafaelAybar/following{/other_user}","gists_url":"https://api.github.com/users/RafaelAybar/gists{/gist_id}","starred_url":"https://api.github.com/users/RafaelAybar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RafaelAybar/subscriptions","organizations_url":"https://api.github.com/users/RafaelAybar/orgs","repos_url":"https://api.github.com/users/RafaelAybar/repos","events_url":"https://api.github.com/users/RafaelAybar/events{/privacy}","received_events_url":"https://api.github.com/users/RafaelAybar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-05T15:58:32Z","updated_at":"2016-10-06T14:35:59Z","closed_at":null,"body":"Todo el script va bien pero me falla la instrucción ```dd```\r\n\r\n\r\nhttps://github.com/RafaelAybar/Charla-bash-nivel-medio/blob/master/instalacionisos.sh\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/RafaelAybar/Charla-bash-nivel-medio/issues/comments/251981828","html_url":"https://github.com/RafaelAybar/Charla-bash-nivel-medio/issues/2#issuecomment-251981828","issue_url":"https://api.github.com/repos/RafaelAybar/Charla-bash-nivel-medio/issues/2","id":251981828,"user":{"login":"jorgesumle","id":14212780,"avatar_url":"https://avatars.githubusercontent.com/u/14212780?v=3","gravatar_id":"","url":"https://api.github.com/users/jorgesumle","html_url":"https://github.com/jorgesumle","followers_url":"https://api.github.com/users/jorgesumle/followers","following_url":"https://api.github.com/users/jorgesumle/following{/other_user}","gists_url":"https://api.github.com/users/jorgesumle/gists{/gist_id}","starred_url":"https://api.github.com/users/jorgesumle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorgesumle/subscriptions","organizations_url":"https://api.github.com/users/jorgesumle/orgs","repos_url":"https://api.github.com/users/jorgesumle/repos","events_url":"https://api.github.com/users/jorgesumle/events{/privacy}","received_events_url":"https://api.github.com/users/jorgesumle/received_events","type":"User","site_admin":false},"created_at":"2016-10-06T14:35:59Z","updated_at":"2016-10-06T14:35:59Z","body":"dd if=$rutapen of=$ruta bs=4094 conv=noerror\r\n\r\nPrimero, ¿por qué 4094? \r\nLos tamaños de los bloques en cualquier ordenador suelen ser múltiplos de 2. Como tú lo quieres hacer es creo con 2<sup>12</sup> (4084).\r\n\r\n> bs=size \r\n> \r\n>     sets both input and output block sizes to size bytes. You can suffix this decimal number with w, b, k, or xnumber to multiply it by 2, 512, 1024, or number respectively. \r\n\r\n¿Lo de conv=noerror qué hace? No entiendo muy bien lo que dice en la página de manual de `dd`. Parece que ignora los érrores. ¿Por qué lo has puesto?\r\n\r\n>  conv=CONVS\r\n>               convert the file as per the comma separated symbol list\r\n\r\n\r\n> \r\n>        noerror\r\n>               continue after read errors\r\n\r\n\r\n¿Cómo lo estás probando? Si los estás probando en un USB (/dev/sdb o similares) te va a pedir el permiso del superusuario sudo y te saltará un error diciendo que no tienes permisos para ejecutar esa instrucción.\r\n\r\n> echo \"Ahora introduce la ruta donde está el pendrive\"\r\n>                 read rutapen\r\n>                 if [[ ( -n \"$rutapen\" ) && ( -d \"$rutapen\" ) ]]\r\n>                 then\r\n>                         # Aquí ejecutamos la instrucción que permite grabar las isos booteables\r\n>                         dd if=$rutapen of=$ruta bs=4094 conv=noerror\r\n>                 else\r\n>                         echo \"La ruta no es correcta\"\r\n>                 fi\r\n\r\nOtra cosa. Compruebas si la ruta del pendrive es un directorio. No has llegado siquiera a ejecutar la instrucción `dd`, según el código actual, porque la condición nunca se cumple. Lo de `-n \"$rutapen\" `sobra. Un pendrive es un dispositivo de bloque. Fijate en primera letra de la salida de la instrucción ls -l, la b quiere decir que es un dispositivo de bloque.\r\n\r\n$ ls -l sdb\r\nbrw-rw---- 1 root disk 8, 16 oct  6 15:42 sdb"}}
{"actor":{"display_login":"jorgesumle"}}