How to reliably mount UDF partition with /etc/fstab

Clash 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.
fstab udf
add a comment |Â
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.
fstab udf
add a comment |Â
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.
fstab udf
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
fstab udf
edited Sep 8 at 7:46
asked Sep 8 at 6:45
neckTwi
3172614
3172614
add a comment |Â
add a comment |Â
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
that didn't work.lsblkshows 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, runfind /dev/disk. You'll see paths corresponding to your disks and partitions. Look through the directoriesby-label,by-partlabel, andby-id. Those are reliable paths, one of which may correspond to the UDF partition. To use filesystem or partition ID's, you can runlsblk -o NAME,FSTYPE,LABEL,PARTLABEL,PARTUUIDand match those ID's with the appropriate path from thefindcommand above, by looking for device files in theby-uidandby-uuiddirectories. Then in /etc/fstab` substitute/dev/sdb5with the reliable path of your choice.
â Emmanuel Rosa
Sep 9 at 3:20
lsblkfor my udf partition reports noFSTYPE,LABEL,PARTLABELandPARTUUID
â 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 stillmkudffs --media-type=hd --vid=UDFStore /dev/sdb5? Does it destroy data?
â neckTwi
Sep 9 at 6:55
 |Â
show 3 more comments
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
that didn't work.lsblkshows 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, runfind /dev/disk. You'll see paths corresponding to your disks and partitions. Look through the directoriesby-label,by-partlabel, andby-id. Those are reliable paths, one of which may correspond to the UDF partition. To use filesystem or partition ID's, you can runlsblk -o NAME,FSTYPE,LABEL,PARTLABEL,PARTUUIDand match those ID's with the appropriate path from thefindcommand above, by looking for device files in theby-uidandby-uuiddirectories. Then in /etc/fstab` substitute/dev/sdb5with the reliable path of your choice.
â Emmanuel Rosa
Sep 9 at 3:20
lsblkfor my udf partition reports noFSTYPE,LABEL,PARTLABELandPARTUUID
â 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 stillmkudffs --media-type=hd --vid=UDFStore /dev/sdb5? Does it destroy data?
â neckTwi
Sep 9 at 6:55
 |Â
show 3 more comments
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
that didn't work.lsblkshows 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, runfind /dev/disk. You'll see paths corresponding to your disks and partitions. Look through the directoriesby-label,by-partlabel, andby-id. Those are reliable paths, one of which may correspond to the UDF partition. To use filesystem or partition ID's, you can runlsblk -o NAME,FSTYPE,LABEL,PARTLABEL,PARTUUIDand match those ID's with the appropriate path from thefindcommand above, by looking for device files in theby-uidandby-uuiddirectories. Then in /etc/fstab` substitute/dev/sdb5with the reliable path of your choice.
â Emmanuel Rosa
Sep 9 at 3:20
lsblkfor my udf partition reports noFSTYPE,LABEL,PARTLABELandPARTUUID
â 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 stillmkudffs --media-type=hd --vid=UDFStore /dev/sdb5? Does it destroy data?
â neckTwi
Sep 9 at 6:55
 |Â
show 3 more comments
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
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
answered Sep 8 at 10:27
Emmanuel Rosa
2,5701411
2,5701411
that didn't work.lsblkshows 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, runfind /dev/disk. You'll see paths corresponding to your disks and partitions. Look through the directoriesby-label,by-partlabel, andby-id. Those are reliable paths, one of which may correspond to the UDF partition. To use filesystem or partition ID's, you can runlsblk -o NAME,FSTYPE,LABEL,PARTLABEL,PARTUUIDand match those ID's with the appropriate path from thefindcommand above, by looking for device files in theby-uidandby-uuiddirectories. Then in /etc/fstab` substitute/dev/sdb5with the reliable path of your choice.
â Emmanuel Rosa
Sep 9 at 3:20
lsblkfor my udf partition reports noFSTYPE,LABEL,PARTLABELandPARTUUID
â 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 stillmkudffs --media-type=hd --vid=UDFStore /dev/sdb5? Does it destroy data?
â neckTwi
Sep 9 at 6:55
 |Â
show 3 more comments
that didn't work.lsblkshows 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, runfind /dev/disk. You'll see paths corresponding to your disks and partitions. Look through the directoriesby-label,by-partlabel, andby-id. Those are reliable paths, one of which may correspond to the UDF partition. To use filesystem or partition ID's, you can runlsblk -o NAME,FSTYPE,LABEL,PARTLABEL,PARTUUIDand match those ID's with the appropriate path from thefindcommand above, by looking for device files in theby-uidandby-uuiddirectories. Then in /etc/fstab` substitute/dev/sdb5with the reliable path of your choice.
â Emmanuel Rosa
Sep 9 at 3:20
lsblkfor my udf partition reports noFSTYPE,LABEL,PARTLABELandPARTUUID
â 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 stillmkudffs --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
 |Â
show 3 more comments
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password