{"id":569,"date":"2010-01-25T10:58:21","date_gmt":"2010-01-25T10:58:21","guid":{"rendered":"http:\/\/www.codingfriends.com\/?p=569"},"modified":"2010-01-25T10:58:21","modified_gmt":"2010-01-25T10:58:21","slug":"mounting-linux","status":"publish","type":"post","link":"https:\/\/www.codingfriends.com\/index.php\/2010\/01\/25\/mounting-linux\/","title":{"rendered":"Mounting &#8211; Linux"},"content":{"rendered":"<p>Sometimes a USB external drive may not mount in Linux, could be because the the harddrive is getting to that point of I am going to give up soon so you better copy off all of the data!!!!.. <\/p>\n<p>Anyway, here are some basic guides to mount a external harddrive if it has not been auto mounted by <a href=\"http:\/\/en.wikipedia.org\/wiki\/Udev\">udev<\/a><\/p>\n<p>If you do a dmesg on the command line<\/p>\n<pre lang=\"bash\">\r\ndmesg \r\n\r\n[ 4454.972580] scsi 6:0:0:0: Direct-Access     Maxtor 4 D040H2           0811 PQ: 0 ANSI: 0                                                            \r\n[ 4454.973682] sd 6:0:0:0: Attached scsi generic sg3 type 0                                                                                            \r\n[ 4454.980992] sd 6:0:0:0: [sdc] 80043264 512-byte logical blocks: (40.9 GB\/38.1 GiB)                                                                  \r\n[ 4454.983014] sd 6:0:0:0: [sdc] Test WP failed, assume Write Enabled                                                                                  \r\n[ 4454.983021] sd 6:0:0:0: [sdc] Assuming drive cache: write through                                                                                   \r\n[ 4454.985201] sd 6:0:0:0: [sdc] Test WP failed, assume Write Enabled                                                                                  \r\n[ 4454.985205] sd 6:0:0:0: [sdc] Assuming drive cache: write through                                                                                   \r\n[ 4454.985209]  sdc: sdc1                                                                                                                              \r\n[ 4455.022214] sd 6:0:0:0: [sdc] Test WP failed, assume Write Enabled                                                                                  \r\n[ 4455.022218] sd 6:0:0:0: [sdc] Assuming drive cache: write through                                                                                   \r\n[ 4455.022224] sd 6:0:0:0: [sdc] Attached SCSI disk \r\n\r\n<\/pre>\n<p>and get something like the above, the most interesting part is the sdc:sdc1, because this tells you where the device has been placed onto the \/dev directory structure.   You could also use the <\/p>\n<pre lang=\"bash\">\r\nlsusb\r\n<\/pre>\n<p>to find out where it was placed in the USB structure as well and try to mount from that device entry, but I just use the \/dev\/sdc ones normally, both will work through.<\/p>\n<p>To mount a external drive, you need to find somewhere to place it, e.g. \/mnt and then create a directory (that is not there already)<\/p>\n<pre lang=\"bash\">\r\ncd \/mnt\r\nmkdir USBEXT\r\n<\/pre>\n<p>and then mount the USB external drive, most are the type of <a href=\"http:\/\/en.wikipedia.org\/wiki\/File_Allocation_Table\">V\/FAT<\/a> types so you just specify that in the type (-t) parameter<\/p>\n<pre lang=\"bash\">\r\nmount -t vfat \/dev\/sdc1 \/mnt\/USBEXT\r\n<\/pre>\n<p>the \/dev\/sdc1 is where it was placed and the \/mnt\/USBEXT was where I want it mounted and the -t was VFAT.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes a USB external drive may not mount in Linux, could be because the the harddrive is getting to that point of I am going to give up soon so you better copy off all of the data!!!!.. Anyway, here are some basic guides to mount a external harddrive if it has not been auto &hellip; <a href=\"https:\/\/www.codingfriends.com\/index.php\/2010\/01\/25\/mounting-linux\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Mounting &#8211; Linux<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-569","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/posts\/569","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/comments?post=569"}],"version-history":[{"count":1,"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/posts\/569\/revisions"}],"predecessor-version":[{"id":570,"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/posts\/569\/revisions\/570"}],"wp:attachment":[{"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/media?parent=569"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/categories?post=569"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/tags?post=569"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}