# Mount new file system by label from command line fails. Help

**URL:** <https://forums.suse.com/t/mount-new-file-system-by-label-from-command-line-fails-help/23402>\
**Category:** SLES Configure-Administer\
**Created:** [December 12, 2012, 3:39pm UTC](https://forums.suse.com/t/mount-new-file-system-by-label-from-command-line-fails-help/23402 "2012-12-12T15:39:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stumacgee](https://avatars.discourse-cdn.com/v4/letter/s/258eb7/32.png) [@stumacgee](https://forums.suse.com/u/stumacgee)\
**Post date:** [December 12, 2012, 3:39pm UTC](https://forums.suse.com/t/mount-new-file-system-by-label-from-command-line-fails-help/23402/1 "2012-12-12T15:39:05Z")

</div>

Need some command line help. Simple request really. I want to perform the operation of adding new disk into SLES 11 SP1. Thereafter partitioning the whole disk and giving it a label and use this as the mount option in /etc/fstab. And do it all from the command line.  
These are my steps and what results with

mount: special device LABEL=sapdatan does not exist

```
1. Add disk hardware to the server OS and display the hardware

	 # dmesg | tail -100 | grep Attached
	 # fdisk -l

2. Create a partition using the whole disk as partition 1

	 # fdisk /dev/sdx
	 n
	 p
	 1
	 [ENTER] [ENTER]
	 w

3. Make a filesystem and label it at the same time and do not reserve any blocks for superuser (-m)

	 # mkfs -t ext3 -L sapdatan /dev/sdx1 -m 0

4. Create a directory to mount the filesystem on

	 # mkdir /oracle/SID/sapdatan

5. Edit /etc/fstab and put the entry

	 LABEL=sapdatan /oracle/SID/sapdatan ext3 acl,user_xattr 1 2

6. Mount the filesystem

	 # mount -t ext3 LABEL=sapdatan /oracle/SID/sapdatan

```

root\> mount /oracle/SID/sapdatan  
mount: special device LABEL=sapdatan does not exist

At this point I have checked /dev/disk/by-label/ and there exists no symlink entry for sapdatan, of which I would expect for this to work. So what is populating this device tree structure and how to do at the CLI.

root\> blkid  
The output of this command shows that the device has LABEL=sapdatan

root\> tune2fs -l /dev/sdx1  
This shows that the filesystem volume name field : sapdatan

root\> findfs LABEL=sapdatan  
This command returns that its unable to find also.

How can I complete this at the command line so I can mount the filesystem by label.

I have to resort to using the partitioner GUI to get this final piece done. Pain.

Is it to do with running “udevadm trigger” command and if so what options should I use?

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [December 12, 2012, 5:23pm UTC](https://forums.suse.com/t/mount-new-file-system-by-label-from-command-line-fails-help/23402/2 "2012-12-12T17:23:53Z")

</div>

> [@](#):
>
> On Wed 12 Dec 2012 01:44:01 PM CST, stumacgee wrote:
> 
> Need some command line help. Simple request really. I want to perform  
> the operation of adding new disk into SLES 11 SP1. Thereafter  
> partitioning the whole disk and giving it a label and use this as the  
> mount option in /etc/fstab. And do it all from the command line.  
> These are my steps and what results with
> 
> MOUNT: SPECIAL DEVICE LABEL=SAPDATAN DOES NOT EXIST
> 
> 1. Add disk hardware to the server OS and display the hardware
> 
> # dmesg | tail -100 | grep Attached
> 
> # fdisk -l
> 
> 1. Create a partition using the whole disk as partition 1
> 
> # fdisk /dev/sdx
> 
> n  
> p  
> 1  
> [ENTER] [ENTER]  
> w
> 
> 1. Make a filesystem and label it at the same time and do not  
> reserve any blocks for superuser (-m)
> 
> # mkfs -t ext3 -L sapdatan /dev/sdx1 -m 0
> 
> 1. Create a directory to mount the filesystem on
> 
> # mkdir /oracle/SID/sapdatan
> 
> 1. Edit /etc/fstab and put the entry
> 
> LABEL=sapdatan /oracle/SID/sapdatan ext3  
> acl,user\_xattr 1 2
> 
> 1. Mount the filesystem
> 
> # mount -t ext3 LABEL=sapdatan /oracle/SID/sapdatan
> 
> root\> mount /oracle/SID/sapdatan  
> mount: special device LABEL=sapdatan does not exist
> 
> At this point I have checked /dev/disk/by-label/ and there exists no  
> symlink entry for sapdatan, of which I would expect for this to work. So  
> what is populating this device tree structure and how to do at the CLI.
> 
> root\> blkid  
> The output of this command shows that the device has LABEL=sapdatan
> 
> root\> tune2fs -l /dev/sdx1  
> This shows that the filesystem volume name field : sapdatan
> 
> root\> findfs LABEL=sapdatan  
> This command returns that its unable to find also.
> 
> How can I complete this at the command line so I can mount the  
> filesystem by label.
> 
> I have to resort to using the partitioner GUI to get this final piece  
> done. Pain.
> 
> Is it to do with running “udevadm trigger” command and if so what  
> options should I use?

Hi  
Mount via the device name, when/if you reboot the system it will come  
up as the label.

Run the mount command it will show the device label.  
eg;

```auto
mount /dev/sdc1 /oracle/SID/sapdatan
mount -l
/dev/sdc1 on /oracle/SID/sapdatan type ext3 (rw,acl,user_xattr) [sapdatan]
```

–  
Cheers Malcolm Â°Â¿Â° (Linux Counter #276890)  
openSUSE 12.2 (x86\_64) Kernel 3.4.11-2.16-desktop  
up 13:59, 3 users, load average: 0.13, 0.06, 0.05  
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU
