{"id":140,"date":"2014-09-03T16:01:48","date_gmt":"2014-09-03T16:01:48","guid":{"rendered":"https:\/\/www.n2lrb.info\/?p=140"},"modified":"2021-01-30T13:54:14","modified_gmt":"2021-01-30T13:54:14","slug":"she-is-mounted","status":"publish","type":"post","link":"https:\/\/www.n2lrb.info\/index.php\/2014\/09\/03\/she-is-mounted\/","title":{"rendered":"She Is Mounted!"},"content":{"rendered":"<p>September 3, 2014 \u2013 I was finally able to figure out how to mount my micro sd card yesterday. It turns out it was a combination of \u00a0adding a text file to the micro sd card (see below) and using the right parameters in the mount command. I am indebted to those who post parts of this online. It was a lot of trial and error.<\/p>\n<p>Text file<br \/>\nI added the following to a text file named uEnv.txt which I created inside the micro sd card while is was only visible as mmcblk0p1:<br \/>\n<code>mmcdev=1<br \/>\nbootpart=1:2<br \/>\nmmcroot=\/dev\/mmcblk1p2 ro<br \/>\noptargs=quiet<\/code><\/p>\n<p>I was then able to see the micro sd card as sda1 on \/dev.<\/p>\n<p>Mounting<br \/>\nI then created a \u2018mount point\u2019 on the directory where I will mount sda1. I created a folder named \u2018external\u2019 in my \/media folder. I then typed in the following command in the command line:<\/p>\n<p><code>sudo mount -t vfat \/dev\/sda1 \/media\/external -o uid=1000,gid=1000,utf8,dmask=027,fmask=137<\/code><\/p>\n<p>And the card mounted to external. When I cd over to \/media\/external I could view the contents of the uEnv.txt file. I then tried adding files to the \/external folder via ftp and was told I did not have persmission. After some research it turns out I needed to unmount and then remount the sd card with the following command:<\/p>\n<p><code>sudo mount -t vfat \/dev\/sdb1 \/media\/external -o uid=1001,gid=1001,utf8,dmask=027,fmask=137<\/code><\/p>\n<p>Since I am user 1001 in group 1001 I now had permission to add files to the \/external directory. I then moved this WordPress blog and my student pay mysql\/php program to the \/external directory using the\u00a0<code><strong>mv -v mv -v \/home\/blog \u00a0\/home\/html\/blog<\/strong><\/code>. I then unmounted the \/dev\/sda1 from the \/media\/external directory and mounted it to \/var\/www\/ under a new directory called html, so altogether it was \/var\/www\/html. When I looked the previously moved blog and program were still in the sda1 (\/var\/www\/html). I was not able to see the files in this configuration, trying different suggestions for those having these same \u2018permission\u2019 problems.<\/p>\n<p>I umounted my sda1 from \/var\/www\/html and attached it to a file called \/html in my home directory. Unfortunately, that did not work either (after creating symbolic links to \/var\/www\/).<\/p>\n<p>I then decided to put everything back the way it was with my blog and mysql\/php program back in my \/home directory(not the \/html directory) with symbolic links to \/var\/www\/. It did not work! I was still having permission problems. I eventually gave my blog and program folders 755 file settings and they both came back to life and I am now able to add to his blog.<\/p>\n<p>I will have to inquire about how to use this micro sd as a web server directory online. For now I am happy I was able to get my blog and program up and running again. I think the problem has to do with permissions.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>September 3, 2014 \u2013 I was finally able to figure out how to mount my micro sd card yesterday. It turns out it was a combination of \u00a0adding a text &hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-140","post","type-post","status-publish","format-standard","hentry","category-computing"],"_links":{"self":[{"href":"https:\/\/www.n2lrb.info\/index.php\/wp-json\/wp\/v2\/posts\/140","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.n2lrb.info\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.n2lrb.info\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.n2lrb.info\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.n2lrb.info\/index.php\/wp-json\/wp\/v2\/comments?post=140"}],"version-history":[{"count":1,"href":"https:\/\/www.n2lrb.info\/index.php\/wp-json\/wp\/v2\/posts\/140\/revisions"}],"predecessor-version":[{"id":141,"href":"https:\/\/www.n2lrb.info\/index.php\/wp-json\/wp\/v2\/posts\/140\/revisions\/141"}],"wp:attachment":[{"href":"https:\/\/www.n2lrb.info\/index.php\/wp-json\/wp\/v2\/media?parent=140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.n2lrb.info\/index.php\/wp-json\/wp\/v2\/categories?post=140"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.n2lrb.info\/index.php\/wp-json\/wp\/v2\/tags?post=140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}