{"id":63686,"date":"2016-02-29T16:06:10","date_gmt":"2016-03-01T00:06:10","guid":{"rendered":"http:\/\/www.transterrestrial.com\/?p=63686"},"modified":"2016-03-01T09:40:20","modified_gmt":"2016-03-01T17:40:20","slug":"linux-problem-3","status":"publish","type":"post","link":"https:\/\/www.transterrestrial.com\/wordpress\/2016\/02\/29\/linux-problem-3\/","title":{"rendered":"Linux Problem"},"content":{"rendered":"<p>I&#8217;m trying to format a micro-SD to install Fedora on my Raspberry Pi 2. I&#8217;m following the instructions <a href=\"https:\/\/fedoraproject.org\/wiki\/Raspberry_Pi\" target=\"_blank\">here<\/a>.<\/p>\n<p>But when I get to the part about building the swap partition, I&#8217;m getting an error message. This is the output of fdisk:<\/p>\n<blockquote><p>Command (m for help): p<br \/>\nDisk \/dev\/sdd: 29.7 GiB, 31914983424 bytes, 62333952 sectors<br \/>\nUnits: sectors of 1 * 512 = 512 bytes<br \/>\nSector size (logical\/physical): 512 bytes \/ 512 bytes<br \/>\nI\/O size (minimum\/optimal): 512 bytes \/ 512 bytes<br \/>\nDisklabel type: dos<br \/>\nDisk identifier: 0x0002ce31<\/p>\n<p>Device     Boot   Start      End  Sectors  Size Id Type<br \/>\n\/dev\/sdd1          2048   264191   262144  128M  b W95 FAT32<br \/>\n\/dev\/sdd2        264192  1312767  1048576  512M 82 Linux swap \/ Solaris<br \/>\n\/dev\/sdd3       1312768 62333951 61021184 29.1G 83 Linux<\/p><\/blockquote>\n<p>Now here&#8217;s what happens when I run mkswap:<\/p>\n<blockquote><p>[root@new-host-5 raspberry]# mkswap \/dev\/sdd2<br \/>\nmkswap: error: swap area needs to be at least 40 KiB<\/p><\/blockquote>\n<p>I&#8217;ve tried searching for a similar issue, but am coming up empty. Anyone have any ideas?<\/p>\n<p>[Update a while later]<\/p>\n<p>OK, I&#8217;ve decided that it&#8217;s a bad SD. But now I&#8217;ve got a new problem; I can&#8217;t mount the W95 FAT32 boot partition:<\/p>\n<blockquote><p>Disk \/dev\/sdd: 14.5 GiB, 15560867840 bytes, 30392320 sectors<br \/>\nUnits: sectors of 1 * 512 = 512 bytes<br \/>\nSector size (logical\/physical): 512 bytes \/ 512 bytes<br \/>\nI\/O size (minimum\/optimal): 512 bytes \/ 512 bytes<br \/>\nDisklabel type: dos<br \/>\nDisk identifier: 0x00000000<\/p>\n<p>Device     Boot  Start      End  Sectors  Size Id Type<br \/>\n\/dev\/sdd1         2048   264191   262144  128M  b W95 FAT32<br \/>\n\/dev\/sdd2       264192   772095   507904  248M 82 Linux swap \/ Solaris<br \/>\n\/dev\/sdd3       772096 30392319 29620224 14.1G 83 Linux<\/p>\n<p>Command (m for help): q<\/p>\n<p>[root@new-host-5 raspberry]# mount -t fat32 \/dev\/sdd1 \/tmp\/rpi\/boot\/<br \/>\nmount: unknown filesystem type &#8216;fat32&#8217;<br \/>\n[root@new-host-5 raspberry]# mount -t auto \/dev\/sdd1 \/tmp\/rpi\/boot\/<br \/>\nmount: \/dev\/sdd1 is write-protected, mounting read-only<br \/>\nmount: wrong fs type, bad option, bad superblock on \/dev\/sdd1,<br \/>\n       missing codepage or helper program, or other error<\/p>\n<p>       In some cases useful info is found in syslog &#8211; try<br \/>\n       dmesg | tail or so.\n<\/p><\/blockquote>\n<p>It doesn&#8217;t work with &#8220;auto&#8221; or &#8220;vfat&#8221; either.<\/p>\n<p>[Tuesday-morning update]<\/p>\n<p>OK, not sure what the problem was, but after rebooting the machine, I managed to get it all to work. I haven&#8217;t actually tried booting the Pi, yet, though.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m trying to format a micro-SD to install Fedora on my Raspberry Pi 2. I&#8217;m following the instructions here. But when I get to the part about building the swap partition, I&#8217;m getting an error message. This is the output of fdisk: Command (m for help): p Disk \/dev\/sdd: 29.7 GiB, 31914983424 bytes, 62333952 sectors &hellip; <a href=\"https:\/\/www.transterrestrial.com\/wordpress\/2016\/02\/29\/linux-problem-3\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Linux Problem<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27,3,18],"tags":[],"class_list":["post-63686","post","type-post","status-publish","format-standard","hentry","category-mathematics","category-technology-and-society","category-weird"],"_links":{"self":[{"href":"https:\/\/www.transterrestrial.com\/wordpress\/wp-json\/wp\/v2\/posts\/63686","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.transterrestrial.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.transterrestrial.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.transterrestrial.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.transterrestrial.com\/wordpress\/wp-json\/wp\/v2\/comments?post=63686"}],"version-history":[{"count":4,"href":"https:\/\/www.transterrestrial.com\/wordpress\/wp-json\/wp\/v2\/posts\/63686\/revisions"}],"predecessor-version":[{"id":63690,"href":"https:\/\/www.transterrestrial.com\/wordpress\/wp-json\/wp\/v2\/posts\/63686\/revisions\/63690"}],"wp:attachment":[{"href":"https:\/\/www.transterrestrial.com\/wordpress\/wp-json\/wp\/v2\/media?parent=63686"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.transterrestrial.com\/wordpress\/wp-json\/wp\/v2\/categories?post=63686"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.transterrestrial.com\/wordpress\/wp-json\/wp\/v2\/tags?post=63686"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}