{"id":141,"date":"2003-11-14T19:01:44","date_gmt":"2003-11-15T00:01:44","guid":{"rendered":"http:\/\/ywwg.com\/wordpress\/?p=141"},"modified":"2003-11-14T19:01:44","modified_gmt":"2003-11-15T00:01:44","slug":"tip-getting-a-firewire-drive-to-automount","status":"publish","type":"post","link":"https:\/\/ywwg.com\/wordpress\/archives\/141","title":{"rendered":"tip: Getting a firewire drive to automount"},"content":{"rendered":"<p>These instructions apply to fedora core 1.<br \/>\n<!--more--><br \/>\ndevlabel is your friend.  With hot-pluggable drives, you never know quite where your device is going to end up.  You attach your firewire drive to your computer, it might get \/dev\/sda.  But if you hook up your digital camera first, your drive will end up with \/dev\/sdb and the camera will get \/dev\/sda.  To make things consistant, use devlabel.  <\/p>\n<p>Devlabel creates symlinks that always point to the proper device.  So for my maxtor drive with three partitions, I want \/dev\/maxtor1, \/dev\/maxtor2, and \/dev\/maxtor3 to point to the proper devices no matter what order I do things.<\/p>\n<p>To set up devlabel, plug in your drives and figure out where they got mounted.  \/var\/log\/messages is a good place to start.  Then type:<\/p>\n<p>\/sbin\/devlabel add -d \/dev\/sd?1 -s \/dev\/maxtor 1 &#8211;automount<\/p>\n<p>do this for each partition of your drive.  The &#8211;automount option means that when you plug in the drive, it should mount.  <\/p>\n<p>Only that didn&#8217;t work for me.  I had to edit \/etc\/hotplug\/ieee1394.agent and change the following:<\/p>\n<blockquote><p>add)<br \/>\n    LABEL=&#8221;IEEE1394 product 0x$VENDOR_ID\/0x$SPECIFIER_ID\/0x$VERSION&#8221;<\/p>\n<p>    # on 2.4 systems, modutils maintains MAP_CURRENT<br \/>\n    if [ -r $MAP_CURRENT ]; then<br \/>\n    \tload_drivers ieee1394 $MAP_CURRENT &#8220;$LABEL&#8221;<br \/>\n    fi<\/p>\n<p>    if [ &#8220;$DRIVERS&#8221; == &#8220;&#8221; ]; then<br \/>\n\tmesg &#8220;&#8230; no drivers for $LABEL&#8221;<br \/>\n\texit 2<br \/>\n    fi<\/p>\n<p>    if [ -x \/sbin\/devlabel ]; then<br \/>\n        \/sbin\/devlabel restart<br \/>\n    fi<br \/>\n    ;;\n<\/p><\/blockquote>\n<p>to this:<\/p>\n<blockquote><p>add)<br \/>\n    LABEL=&#8221;IEEE1394 product 0x$VENDOR_ID\/0x$SPECIFIER_ID\/0x$VERSION&#8221;<\/p>\n<p>    # on 2.4 systems, modutils maintains MAP_CURRENT<br \/>\n    if [ -r $MAP_CURRENT ]; then<br \/>\n    \tload_drivers ieee1394 $MAP_CURRENT &#8220;$LABEL&#8221;<br \/>\n    fi<\/p>\n<p>    if [ &#8220;$DRIVERS&#8221; == &#8220;&#8221; ]; then<br \/>\n\tmesg &#8220;&#8230; no drivers for $LABEL&#8221;<br \/>\n\texit 2<br \/>\n    fi<\/p>\n<p>    <b>#OWEN EDIT put in bus rescan<br \/>\n    sleep 5<br \/>\n    \/usr\/local\/sbin\/rescan-scsi-bus.sh<\/b><\/p>\n<p>    if [ -x \/sbin\/devlabel ]; then<br \/>\n        \/sbin\/devlabel restart<br \/>\n    fi<br \/>\n    ;;\n<\/p><\/blockquote>\n<p>Of course you need <a href=\"http:\/\/linux1394.org\/scripts\/rescan-scsi-bus.sh\">rescan-scsi-bus.sh<\/a>(<a href=\"http:\/\/ywwg.com\/rescan-scsi-bus.sh\">local copy<\/a>) for this to work.<\/p>\n<p>This is what worked for me.  If you have trouble reproducing my results please reply in the comments and I can tweak the instructions.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>These instructions apply to fedora core 1.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"_links":{"self":[{"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/posts\/141"}],"collection":[{"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/comments?post=141"}],"version-history":[{"count":0,"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/posts\/141\/revisions"}],"wp:attachment":[{"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/media?parent=141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/categories?post=141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/tags?post=141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}