Skip to content

Installing DSM 6.0 Bare Metal

fonix232 edited this page Mar 23, 2017 · 2 revisions

Installing DSM 6.0 on bare-metal builds using the loader is a simple process, but can mean a challenge for a beginner. Make sure that you read the tutorial before beginning!

Requirements

A few tools are required for a successful installation. Please see below, according to your OS.

On all platforms

Windows

Linux/macOS

  • dd
  • Any text editor

Steps for Windows

0. Preparation

In this step we're going to prepare all the information needed to create the loader USB drive.

Extracting the loader

The loader is distributed in ZIP archives, with extra files for VM installs. Unzip it using Windows' built-in archive manager, and copy synoboot.img to a folder where you'll be working with it.

Generating a serial number and MAC address

There are many sites that provide SN and MAC generator services, and as such, I felt the obligation to provide one that is hosted under our page. Click here to go to our generator, and press "Generate" (at the moment it's a pretty basic one that only generates serials for DS3615xs). Save the serial and MAC address to someplace safe, as we'll be using that from now on.

Getting your USB drive's Vendor ID and Product ID

There are multiple ways of getting these IDs under Windows. The most straight-forward method is to open the Device Manager.

In Windows 8 and above, right click the Start Menu and select Device Manager, on Windows 7, open the Start Menu, right click My Computer and select Manage. It will open a new window and on the right side you'll find a list item with the name Device Manager, select it.

Now that you have it open, scroll down to the bottom where it says Universal Serial Bus Controllers. Using the triangle on the left, open the option. You should see multiple items, with one being USB Mass Storage Device. If you see multiple devices, remove all other USB storage devices for the few moments while we get the IDs we need.

Right click this item and select Properties. It will open a new window, where you should go to the third tab, called Details. Click the Property drow-down list and select Hardware Ids - it should be the third option.

As a result you'll see the Value text field change, and you'll have multiple lines, with mostly the same content. What we need is the beginning of those, saying USB\\VID_xxxx&PID_xxxx. Make note of the values marked by x's here - those are the IDs we're looking for!

(Optional) editing the IMG file

Mounting the image

You can pre-edit the image to make deployment easier in the future. For that, you'll require OSFMount (see in the requirements part). Download and install it.

After launching OSFMount, you're greeted by a window with a large list and four buttons. Right now our interest is on the first button, Mount new.... Click it. A popup comes up, set up the following:

  • Source to Image file
  • Image file (below source) to the synoboot.img from the release you downloaded (click the ... button at the end of the line)
  • After selecting your synoboot.img, a new window will open. Make sure Use entire image file is selected, and click OK
  • Mount all partitions
  • Under Mount options uncheck Read-only drive so you can edit it

Make sure all these settings are selected proper, then click OK. Three new drives will appear, but we're only interested in the first one. It will be mounted as the drive letter you saw on the previous screen (in my case, E:). Go to the Editing the configuration part to continue, then return here.

Unmounting the image, after finished editing

To unmount, simply go to OSFMount and click Dismount all & Exit. It will dismount the partitions, and save the changes to the IMG file.

After doing so, proceed to the Flashing the USB drive part, and leave out the editing part afterwards.

1. Flashing the USB drive

Install and launch Win32Imager, and make sure the USB key you read the PID and VID of is inserted in your computer.

Select the drive letter assigned to your USB drive, browse your synoboot.img and click Write. Click OK, and wait till it finishes.

If you previously set up the image, proceed to Installing DSM. Otherwise continue with Editing the configuration

2. Editing the configuration

This loader requires you to do some tinkering before you're ready to install. After mounting the primary partition of the loader, check the drive letter (in the tutorial I'm going to use X:). Go to X:\grub\ and open grub.cfg using Notepad++.

You'll see lots of code, and within that code you'll find the serial number, MAC address and PID/VID variables the loader uses. In v1.01 you'll find these on lines 22-25, as seen below:

set vid=0x058f
set pid=0x6387
set sn=C7LWN09761
set mac1=0011322CA785

First thing to replace is the vid and pid values. Get your USB drive's values, and replace the part after 0x. So if your USB VID was 1111 and PID vas FFFF, your lines will look like this:

set vid=0x1111
set pid=0xFFFF
set sn=C7LWN09761
set mac1=0011322CA785

Then the same way, replace the sn and mac1. If you have more than one LAN interfaces in your NAS, feel free to add further lines with the same MAC address increased by one:

set vid=0x1111
set pid=0xFFFF
set sn=C7LWN09761
set mac1=0011322CA785
set mac2=0011322CA786
set mac3=0011322CA787
set mac4=0011322CA788

Do not forget that a MAC address is a hexadecimal value, so it does not go from 1 to 9, but from 1 to F!

After these steps, we're finished with the config file, so save it, and unmount!

3. Installing DSM

Now comes the fun part! Plug the USB drive you just created into your NAS, and boot. It should show you a screen detailing the loader and how it will stop updating after a time. It means you succeeded in creating a bootloader. Good!

In your browser, go to Synology's Online Assistant (or download Synology Assistant from their website if your network is not connected to the internet), and wait until it finds your device. If it is found, click Install Now.

You'll be offered to let the system handle the installation automatically. Since it will try to install 6.1, a version this loader does not support, click on the Manual Install button. On the upcoming screen, you're given the choice to upload a file. Select and upload the DSM_DS3615xs_8451.pat file, and click Install.

Installation will take somewhere between 2 and 10 minutes, depending on your hardware. Once it's installed, the page will refresh, and you'll be greeted by the initial Synology wizard. Name your brand new XPenology NAS, set it up to your liking, and you're done!

WARNING

- Make sure you leave the USB drive in the NAS, as it is required at every boot.

Steps for Linux/macOS

WIP