No announcement yet.

Adding a Second Drive already Containing Data.

  • Filter
  • Time
  • Show
Clear All
new posts

  • Adding a Second Drive already Containing Data.

    To add an existing drive that already contains data , would one follow the directions in the Wiki for adding a second drive?

    Does the following command overwrite the existing data?

    " /dev/sdb"
    Or, should the second command command be used alone to add to the drive to file system? /dev/sdb1

  • #2
    If you second drive already contains data it cannot be married to an existing LVM group/volume without the losing all of the data. Here's an alternative. If the data consists of music/media, physically install the drive and then mount it as an entirely separate volume. Then add that directory path as an additional search path for media under LMS.


    • #3
      Any help with the process, commands, syntax would be much appreciated; my system has been down for over 3 weeks now. It seems that the little bit of Linux knowledge I had has been eroded with the the release of Fedora 23.

      Thanks in advance.


      • #4
        Once you physically add the drive to the system you need to see what device was assigned.
        For the sake of example, let’s say the device is /dev/sdc, there is one partition on the disk containing your data, and it can be found at /dev/sdc1

        You need to create a mount point for this drive. Create one at the root directory and call it data.

        cd /
        mkdir data

        Now add the following line to the end of the file /etc/fstab.

        /dev/sdc1 /data ext4 default 1 2

        If the disk is formatted something other than ext4 the permissible format type must be added.
        The most likely types are:

        ntfs (Windows)

        hfsplus (Mac) – be sure to add the hfstools package to handle this. To make sure you have this package issue the command

        dnf -y install hfstools

        If you have the package already the system will tell you so. Otherwise it will proceed. If the hfsplus partition is set to “jouraled”, you may need to turn that off. To do so, mount the disk on a Mac, run the disk utility. Right-click on the partition and turn journaling off.

        One the line is added to fstab the disk will automatically mount upon boot. To mount it immediately, issue the command

        mount -a

        Then run the command


        You should see the disk listed.

        Once the disk is mounted pull up LMS settings from the web menu. Under the first tab “Basic Settings” you will see two lines for setting the location of media folders. The first is set by default on VortexBox systems to


        Set the second line to


        or whatever the full subdirectory path is of your music library. Hit the “Apply” button. Be sure to recan your entire library (choose the drop-down “Clear Library and Rescan Everything”). Sit back, have a cup of coffee, and depending on the size of your library and your hardware the rescan should complete in a few minutes to a few hours and the media on your drive should now by accessible from LMS.

        Good luck!