Results 1 to 2 of 2

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

Threaded View

  1. #1

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

    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

    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?
    Last edited by stumacgee; 12-Dec-2012 at 14:40.

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts