Clearing the System Drive

If you find yourself with two instances of Volume1 because you had a mirror drive and did a hard reset while troubleshooting before you ran Nasload, or because HP shipped you a pre-imaged drive, or for any other reason, don't worry, it is possible to fix it.

First, if the data on your mirror drive is very important, you should move it to a PC or some other safe location by dragging and dropping the files there before you perform these steps just to make sure you don't lose it.   If you have two instances of Volume1, you'll notice that the shares on the mirror drive will have numbers on the end of them, for example, FileShare2, Backup2, etc., and so you can drag and drop files in those shared folders from the Media Vault on to a new location to keep them safe.

It's not possible to delete Volume1 due to restrictions in the web user interface and it's also not possible to erase the System Drive, so you'll need to remove this Volume1 using commands via telnet that will erase the System drive.  The instructions for using telnet into the Media Vault are given here.

After you have moved your data to a safe location,  telnet into the Media Vault, and execute these commands to blank the internal drive:

dd if=/dev/zero of=/dev/scsi/host1/bus0/target0/lun0/disc bs=512 count=1000

sync

reboot

The first command wipes out the boot block on the internal system drive.  The second command makes sure the wipe is committed to disk, and the third reboots the system. 

After you've done this, you'll need to use Nasload to re-image the system again, but this time because the Media Vault has already been booted with a Volume1 recognized, it will install only the OS and not try to recreate another instance of Volume1.  The SYSTEM drive should have just the OS and unallocated space on it and this will allow you to re-mirror the Volume1 that is on the drive in the mobile rack back on to the system drive. 

If for any reason you want to blank the second drive, you should be able to reformat it from the web UI.  Then you can delete the Volume on it that formatting it will have created if you need to have unallocated space.  The other alternative, which is faster, is this method from telnet:

dd if=/dev/zero of=/dev/scsi/host2/bus0/target0/lun0/disc bs=512 count=1000

sync

reboot

Then reboot and you should see a blank drive in that location.  The Media Vault has to have a Volume1 set up or it won't be happy.  You could do it manually, but Nasload will take care of it provided you perform a hard reset and it has not successfully booted with a Volume1 drive installed.

Return to the Media Vault FAQ