User Tools

Site Tools


faq:0136ex

Q: Can I mount disks/file systems using labels instead of device names?

A: Yes you can, but not entirely through the WebGUI, please read Mounting removable disk(filesystem) using label[Solved]. to learn when this may be appropriate and for more details.

I'll try to walk you through, in this example I'll use disk ad1, formated using NAS4Free WebGUI and having one partition p1. 1. You need to get the label for the file system on partition ad1p1: glabel list ad1p1 Geom name: ad1p1 Providers: 1. Name: ufsid/4bd57b7a8fd27a9e

 Mediasize: 250059315712 (233G)
 Sectorsize: 512
 Mode: r0w0e0
 secoffset: 0
 offset: 0
 seclength: 488397101
 length: 250059315712
 index: 0

Consumers: 1. Name: ad1p1

 Mediasize: 250059315712 (233G)
 Sectorsize: 512
 Mode: r0w0e0

The label is ufsid/4bd57b7a8fd27a9e

2. Create a mount point for this partition via NAS4Free WebGUI, disk: ad1, partition type: EFI/GPT, partition number 1.

3. Go to Advanced|File Editor and load /conf/config.xml

4. Look for your mount point: <mount>

 <uuid>9b04de04-5aa8-4ea0-af11-397a66a72911</uuid>
 <type>disk</type>
 <mdisk>/dev/ad1</mdisk>
 <partition>p1</partition>
 <fstype>ufs</fstype>
 <devicespecialfile>/dev/ad1p1</devicespecialfile>
 <sharename>data</sharename>
 <desc/>
 <accessrestrictions>
    <owner>root</owner>
    <group>wheel</group>
    <mode>0777</mode>
 </accessrestrictions>

</mount> 5. Replace the entry for <devicespecialfile> with the label: <mount>

 <uuid>9b04de04-5aa8-4ea0-af11-397a66a72911</uuid>
 <type>disk</type>
 <mdisk>/dev/ad1</mdisk>
 <partition>p1</partition>
 <fstype>ufs</fstype>
 <devicespecialfile>/dev/ufsid/4bd57b7a8fd27a9e</devicespecialfile>
 <sharename>data</sharename>
 <desc/>
 <accessrestrictions>
    <owner>root</owner>
    <group>wheel</group>
    <mode>0777</mode>
 </accessrestrictions>

</mount> 6. Save the config.xml file.

7. Go to Advanced|Execute command and umount your file system
umount /mnt/data 8. Go to Disks|Mount Point|Management where you will see the status for your mount is “Error-Retry”, click on “Error-Retry” and the file system should once again be mounted.

If you use decide to use this method, it is a good idea to do the same for all devices (disks) in your system.

faq/0136ex.txt · Last modified: 2018/07/08 17:29 (external edit)