How to reliably mount UDF partition with /etc/fstab

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
-1
down vote

favorite












My HDD



Disk /dev/sdb: 927.5 GiB, 995875618816 bytes, 1945069568 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xc4094bc2

Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 718847 716800 350M c W95 FAT32 (LBA)
/dev/sdb2 718848 269154303 268435456 128G 7 HPFS/NTFS/exFAT
/dev/sdb4 269156350 1945067519 1675911170 799.1G f W95 Ext'd (LBA)
/dev/sdb5 403374080 1945067519 1541693440 735.1G 6 FAT16
/dev/sdb6 269156352 403374079 134217728 64G 83 Linux


I have formatted /dev/sdb5 as udf with



mkfs.udf --utf8 -l UDFStore /dev/sdb5


on Gentoo. But blkid doesn't list /dev/sdb5. How can I reliably mount my UDF partition at startup in /etc/fstab when device enumeration changes due to additional connected USB devices at startup.










share|improve this question



























    up vote
    -1
    down vote

    favorite












    My HDD



    Disk /dev/sdb: 927.5 GiB, 995875618816 bytes, 1945069568 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: dos
    Disk identifier: 0xc4094bc2

    Device Boot Start End Sectors Size Id Type
    /dev/sdb1 2048 718847 716800 350M c W95 FAT32 (LBA)
    /dev/sdb2 718848 269154303 268435456 128G 7 HPFS/NTFS/exFAT
    /dev/sdb4 269156350 1945067519 1675911170 799.1G f W95 Ext'd (LBA)
    /dev/sdb5 403374080 1945067519 1541693440 735.1G 6 FAT16
    /dev/sdb6 269156352 403374079 134217728 64G 83 Linux


    I have formatted /dev/sdb5 as udf with



    mkfs.udf --utf8 -l UDFStore /dev/sdb5


    on Gentoo. But blkid doesn't list /dev/sdb5. How can I reliably mount my UDF partition at startup in /etc/fstab when device enumeration changes due to additional connected USB devices at startup.










    share|improve this question

























      up vote
      -1
      down vote

      favorite









      up vote
      -1
      down vote

      favorite











      My HDD



      Disk /dev/sdb: 927.5 GiB, 995875618816 bytes, 1945069568 sectors
      Units: sectors of 1 * 512 = 512 bytes
      Sector size (logical/physical): 512 bytes / 512 bytes
      I/O size (minimum/optimal): 512 bytes / 512 bytes
      Disklabel type: dos
      Disk identifier: 0xc4094bc2

      Device Boot Start End Sectors Size Id Type
      /dev/sdb1 2048 718847 716800 350M c W95 FAT32 (LBA)
      /dev/sdb2 718848 269154303 268435456 128G 7 HPFS/NTFS/exFAT
      /dev/sdb4 269156350 1945067519 1675911170 799.1G f W95 Ext'd (LBA)
      /dev/sdb5 403374080 1945067519 1541693440 735.1G 6 FAT16
      /dev/sdb6 269156352 403374079 134217728 64G 83 Linux


      I have formatted /dev/sdb5 as udf with



      mkfs.udf --utf8 -l UDFStore /dev/sdb5


      on Gentoo. But blkid doesn't list /dev/sdb5. How can I reliably mount my UDF partition at startup in /etc/fstab when device enumeration changes due to additional connected USB devices at startup.










      share|improve this question















      My HDD



      Disk /dev/sdb: 927.5 GiB, 995875618816 bytes, 1945069568 sectors
      Units: sectors of 1 * 512 = 512 bytes
      Sector size (logical/physical): 512 bytes / 512 bytes
      I/O size (minimum/optimal): 512 bytes / 512 bytes
      Disklabel type: dos
      Disk identifier: 0xc4094bc2

      Device Boot Start End Sectors Size Id Type
      /dev/sdb1 2048 718847 716800 350M c W95 FAT32 (LBA)
      /dev/sdb2 718848 269154303 268435456 128G 7 HPFS/NTFS/exFAT
      /dev/sdb4 269156350 1945067519 1675911170 799.1G f W95 Ext'd (LBA)
      /dev/sdb5 403374080 1945067519 1541693440 735.1G 6 FAT16
      /dev/sdb6 269156352 403374079 134217728 64G 83 Linux


      I have formatted /dev/sdb5 as udf with



      mkfs.udf --utf8 -l UDFStore /dev/sdb5


      on Gentoo. But blkid doesn't list /dev/sdb5. How can I reliably mount my UDF partition at startup in /etc/fstab when device enumeration changes due to additional connected USB devices at startup.







      fstab udf






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 8 at 7:46

























      asked Sep 8 at 6:45









      neckTwi

      3172614




      3172614




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote













          Aside from device names, you can mount filesystems using their UUID or label.



          For example, if when you created the filesystem you labeled it UDFStore, you can add an /etc/fstab entry like this: LABEL=UDFStore /data udf defaults 0 0






          share|improve this answer




















          • that didn't work. lsblk shows no label for /dev/sdb5. Stupid of me for voting up without testing. Ur answer felt very obvious! huh!
            – neckTwi
            Sep 8 at 16:41











          • Plug in the device, then, run find /dev/disk. You'll see paths corresponding to your disks and partitions. Look through the directories by-label, by-partlabel, and by-id. Those are reliable paths, one of which may correspond to the UDF partition. To use filesystem or partition ID's, you can run lsblk -o NAME,FSTYPE,LABEL,PARTLABEL,PARTUUID and match those ID's with the appropriate path from the find command above, by looking for device files in the by-uid and by-uuid directories. Then in /etc/fstab` substitute /dev/sdb5 with the reliable path of your choice.
            – Emmanuel Rosa
            Sep 9 at 3:20










          • lsblk for my udf partition reports no FSTYPE,LABEL,PARTLABEL and PARTUUID
            – neckTwi
            Sep 9 at 3:40










          • See if this helps: unix.stackexchange.com/questions/35973/…
            – Emmanuel Rosa
            Sep 9 at 6:35










          • Though the solution mentioned there is for entire hard disk, can I still mkudffs --media-type=hd --vid=UDFStore /dev/sdb5? Does it destroy data?
            – neckTwi
            Sep 9 at 6:55










          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f467671%2fhow-to-reliably-mount-udf-partition-with-etc-fstab%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          1
          down vote













          Aside from device names, you can mount filesystems using their UUID or label.



          For example, if when you created the filesystem you labeled it UDFStore, you can add an /etc/fstab entry like this: LABEL=UDFStore /data udf defaults 0 0






          share|improve this answer




















          • that didn't work. lsblk shows no label for /dev/sdb5. Stupid of me for voting up without testing. Ur answer felt very obvious! huh!
            – neckTwi
            Sep 8 at 16:41











          • Plug in the device, then, run find /dev/disk. You'll see paths corresponding to your disks and partitions. Look through the directories by-label, by-partlabel, and by-id. Those are reliable paths, one of which may correspond to the UDF partition. To use filesystem or partition ID's, you can run lsblk -o NAME,FSTYPE,LABEL,PARTLABEL,PARTUUID and match those ID's with the appropriate path from the find command above, by looking for device files in the by-uid and by-uuid directories. Then in /etc/fstab` substitute /dev/sdb5 with the reliable path of your choice.
            – Emmanuel Rosa
            Sep 9 at 3:20










          • lsblk for my udf partition reports no FSTYPE,LABEL,PARTLABEL and PARTUUID
            – neckTwi
            Sep 9 at 3:40










          • See if this helps: unix.stackexchange.com/questions/35973/…
            – Emmanuel Rosa
            Sep 9 at 6:35










          • Though the solution mentioned there is for entire hard disk, can I still mkudffs --media-type=hd --vid=UDFStore /dev/sdb5? Does it destroy data?
            – neckTwi
            Sep 9 at 6:55














          up vote
          1
          down vote













          Aside from device names, you can mount filesystems using their UUID or label.



          For example, if when you created the filesystem you labeled it UDFStore, you can add an /etc/fstab entry like this: LABEL=UDFStore /data udf defaults 0 0






          share|improve this answer




















          • that didn't work. lsblk shows no label for /dev/sdb5. Stupid of me for voting up without testing. Ur answer felt very obvious! huh!
            – neckTwi
            Sep 8 at 16:41











          • Plug in the device, then, run find /dev/disk. You'll see paths corresponding to your disks and partitions. Look through the directories by-label, by-partlabel, and by-id. Those are reliable paths, one of which may correspond to the UDF partition. To use filesystem or partition ID's, you can run lsblk -o NAME,FSTYPE,LABEL,PARTLABEL,PARTUUID and match those ID's with the appropriate path from the find command above, by looking for device files in the by-uid and by-uuid directories. Then in /etc/fstab` substitute /dev/sdb5 with the reliable path of your choice.
            – Emmanuel Rosa
            Sep 9 at 3:20










          • lsblk for my udf partition reports no FSTYPE,LABEL,PARTLABEL and PARTUUID
            – neckTwi
            Sep 9 at 3:40










          • See if this helps: unix.stackexchange.com/questions/35973/…
            – Emmanuel Rosa
            Sep 9 at 6:35










          • Though the solution mentioned there is for entire hard disk, can I still mkudffs --media-type=hd --vid=UDFStore /dev/sdb5? Does it destroy data?
            – neckTwi
            Sep 9 at 6:55












          up vote
          1
          down vote










          up vote
          1
          down vote









          Aside from device names, you can mount filesystems using their UUID or label.



          For example, if when you created the filesystem you labeled it UDFStore, you can add an /etc/fstab entry like this: LABEL=UDFStore /data udf defaults 0 0






          share|improve this answer












          Aside from device names, you can mount filesystems using their UUID or label.



          For example, if when you created the filesystem you labeled it UDFStore, you can add an /etc/fstab entry like this: LABEL=UDFStore /data udf defaults 0 0







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Sep 8 at 10:27









          Emmanuel Rosa

          2,5701411




          2,5701411











          • that didn't work. lsblk shows no label for /dev/sdb5. Stupid of me for voting up without testing. Ur answer felt very obvious! huh!
            – neckTwi
            Sep 8 at 16:41











          • Plug in the device, then, run find /dev/disk. You'll see paths corresponding to your disks and partitions. Look through the directories by-label, by-partlabel, and by-id. Those are reliable paths, one of which may correspond to the UDF partition. To use filesystem or partition ID's, you can run lsblk -o NAME,FSTYPE,LABEL,PARTLABEL,PARTUUID and match those ID's with the appropriate path from the find command above, by looking for device files in the by-uid and by-uuid directories. Then in /etc/fstab` substitute /dev/sdb5 with the reliable path of your choice.
            – Emmanuel Rosa
            Sep 9 at 3:20










          • lsblk for my udf partition reports no FSTYPE,LABEL,PARTLABEL and PARTUUID
            – neckTwi
            Sep 9 at 3:40










          • See if this helps: unix.stackexchange.com/questions/35973/…
            – Emmanuel Rosa
            Sep 9 at 6:35










          • Though the solution mentioned there is for entire hard disk, can I still mkudffs --media-type=hd --vid=UDFStore /dev/sdb5? Does it destroy data?
            – neckTwi
            Sep 9 at 6:55
















          • that didn't work. lsblk shows no label for /dev/sdb5. Stupid of me for voting up without testing. Ur answer felt very obvious! huh!
            – neckTwi
            Sep 8 at 16:41











          • Plug in the device, then, run find /dev/disk. You'll see paths corresponding to your disks and partitions. Look through the directories by-label, by-partlabel, and by-id. Those are reliable paths, one of which may correspond to the UDF partition. To use filesystem or partition ID's, you can run lsblk -o NAME,FSTYPE,LABEL,PARTLABEL,PARTUUID and match those ID's with the appropriate path from the find command above, by looking for device files in the by-uid and by-uuid directories. Then in /etc/fstab` substitute /dev/sdb5 with the reliable path of your choice.
            – Emmanuel Rosa
            Sep 9 at 3:20










          • lsblk for my udf partition reports no FSTYPE,LABEL,PARTLABEL and PARTUUID
            – neckTwi
            Sep 9 at 3:40










          • See if this helps: unix.stackexchange.com/questions/35973/…
            – Emmanuel Rosa
            Sep 9 at 6:35










          • Though the solution mentioned there is for entire hard disk, can I still mkudffs --media-type=hd --vid=UDFStore /dev/sdb5? Does it destroy data?
            – neckTwi
            Sep 9 at 6:55















          that didn't work. lsblk shows no label for /dev/sdb5. Stupid of me for voting up without testing. Ur answer felt very obvious! huh!
          – neckTwi
          Sep 8 at 16:41





          that didn't work. lsblk shows no label for /dev/sdb5. Stupid of me for voting up without testing. Ur answer felt very obvious! huh!
          – neckTwi
          Sep 8 at 16:41













          Plug in the device, then, run find /dev/disk. You'll see paths corresponding to your disks and partitions. Look through the directories by-label, by-partlabel, and by-id. Those are reliable paths, one of which may correspond to the UDF partition. To use filesystem or partition ID's, you can run lsblk -o NAME,FSTYPE,LABEL,PARTLABEL,PARTUUID and match those ID's with the appropriate path from the find command above, by looking for device files in the by-uid and by-uuid directories. Then in /etc/fstab` substitute /dev/sdb5 with the reliable path of your choice.
          – Emmanuel Rosa
          Sep 9 at 3:20




          Plug in the device, then, run find /dev/disk. You'll see paths corresponding to your disks and partitions. Look through the directories by-label, by-partlabel, and by-id. Those are reliable paths, one of which may correspond to the UDF partition. To use filesystem or partition ID's, you can run lsblk -o NAME,FSTYPE,LABEL,PARTLABEL,PARTUUID and match those ID's with the appropriate path from the find command above, by looking for device files in the by-uid and by-uuid directories. Then in /etc/fstab` substitute /dev/sdb5 with the reliable path of your choice.
          – Emmanuel Rosa
          Sep 9 at 3:20












          lsblk for my udf partition reports no FSTYPE,LABEL,PARTLABEL and PARTUUID
          – neckTwi
          Sep 9 at 3:40




          lsblk for my udf partition reports no FSTYPE,LABEL,PARTLABEL and PARTUUID
          – neckTwi
          Sep 9 at 3:40












          See if this helps: unix.stackexchange.com/questions/35973/…
          – Emmanuel Rosa
          Sep 9 at 6:35




          See if this helps: unix.stackexchange.com/questions/35973/…
          – Emmanuel Rosa
          Sep 9 at 6:35












          Though the solution mentioned there is for entire hard disk, can I still mkudffs --media-type=hd --vid=UDFStore /dev/sdb5? Does it destroy data?
          – neckTwi
          Sep 9 at 6:55




          Though the solution mentioned there is for entire hard disk, can I still mkudffs --media-type=hd --vid=UDFStore /dev/sdb5? Does it destroy data?
          – neckTwi
          Sep 9 at 6:55

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f467671%2fhow-to-reliably-mount-udf-partition-with-etc-fstab%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Displaying single band from multi-band raster using QGIS

          How many registers does an x86_64 CPU actually have?