Jump to content
XPEnology Community
  • 0

XPEnology in PC - Change Serial Number


Question

Posted

Hello all!

It's possible to change serial number?

I tried to edit some files (vendor and checksum.syno on the boot usb stick) but I failed... XPEnology boot up, but without serial number.

 

Thanks!

Bye

 

ema

20 answers to this question

Recommended Posts

  • 0
Posted

Change the boot loader by adding parameters to the kernel and comment cksum, vender and hw_model.

title SYNOLOGY
       root (hd0,1)
#       cksum /grub_cksum.syno
#       vender /vender show
#       hw_model
       kernel /zImage root=/dev/md0 ihd_num=0 netif_num=2 syno_hw_version=DS3612xs mac1=00113208d68a mac2=00113208d68b mac3=004d9469c492 mac4=004d9469c493 sn=B3J4N00001
       initrd /rd.gz

 

Or hexedit the synoboot.

  • 0
Posted

I tryed to edit synoboot.img, but it did not work... I have always an empty serial number (I think it's the fault of the checksum).

So I tryed to edit the bootloader and it worked! :grin:

Thanks so much for the help! :wink:

 

Bye!

ema

  • 0
Posted

Had a quick look at hex editing... trialed on VBOX image only as getting late....

 

Seems a quick change (only for the last number in the serial) that works with the check sum is that the number after the serial number needs to be 1 higher.

 

e.g. if your serial is B3J4N00000 then the version in the file will need to be B3J4N000001

So, if you want your serial to be B3J4N00008 then the version in the file needs to be B3J4N000089

 

...not tried editing the IMG file yet, but assume the same will work.....

  • 0
Posted

hi!

 

i just have made the change, it works great.

 

how to :

 

connect to your xpesyno via putty as ROOT.

 

>mount /dev/sda1 /mnt

>exit

 

Connect to your xpesyno via WINCSP as root.

 

browse to /mnt/boot/grub/

 

edit menu.lst

 

and modify mac and serial as you want. if there is other title synology chapter modify them too

 

title SYNOLOGY

root (hd0,1)

# cksum /grub_cksum.syno

# vender /vender show

# hw_model

kernel /zImage root=/dev/md0 ihd_num=0 netif_num=2 syno_hw_version=DS3612xs mac1=00113208d68b mac2=00113208d68c mac3=004d9469c492 mac4=004d9469c493 sn=B3J4N00011

initrd /rd.gz

 

regards

  • 0
Posted

Hi,

 

1. I'm a little unclear about what's being proposed here. Does this hack essentially mean that once the system is up and running I can change the serial no and/or MAC address without having to change the checksum file?

 

2. The mount command suggested by patmtp35 gives an error stating that there is no such device. I've checked on my real Syno box (DS210j) and get the same error trying to mount /dev/sda1. However commands like fdisk -l show that there's a partition called /dev/sda1 but it doesn't contain a valid partition table. (And the same message on my DS210j.)

 

fdisk -l /dev/sda1

Disk /dev/sda1: 2550 MB, 2550005760 bytes
255 heads, 63 sectors/track, 310 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sda1 doesn't contain a valid partition table

Any ideas?

 

regards

  • 0
Posted

Changing serial and mac number works but it resets the configuration looks like. It asks me to setup the box again. Like upload pat file again and reconfigure the box.

  • 0
Posted

I want to change the MAC address & serial number but can't work out how to mount the img file so that I can edit it, could someone please give me clear instructions on how to do this Please.

 

Many thanks

  • 0
Posted
I want to change the MAC address & serial number but can't work out how to mount the img file so that I can edit it, could someone please give me clear instructions on how to do this Please.

 

Many thanks

where do reside your boot image? if in usb sttick, it's simpe, boot nas, take out usb stick at the end of the boot, put the stick onto usb in a linux-box, mount image and edit.

  • 0
Posted

Hi Aigor, thanks for your reply. I'm running Debian 6 in a VM where I have the img file also. to mount the img file I've run the following to find the sextors:

 

# fdisk -lu SynoBoot_3612xs_4.1++.img

You must set cylinders.

You can do this from the extra functions menu.

 

Disk SynoBoot_3612xs_4.1++.img: 0 MB, 0 bytes

255 heads, 63 sectors/track, 0 cylinders, total 0 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0xf6eba356

 

Device Boot Start End Blocks Id System

SynoBoot_3612xs_4.1++.img1 * 63 32129 16033+ 83 Linux

SynoBoot_3612xs_4.1++.img2 32130 224909 96390 83 Linux

 

I've then run:

 

# mount -t auto -o loop,ro,offset=61 SynoBoot_3612xs_4.1++.img.img /mnt/dsm

but get an error saying I must specify a filesystem type.

 

What am I doing wrong!

  • 0
Posted

Hi, you have to use parted to know exactly offset of your image

 

[root@centos6 dude]# parted synoboot_microserver.img
GNU Parted 2.1
Using /home/dude/synoboot_microserver.img
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) u
Unit?  [compact]? b
(parted) p
Model:  (file)
Disk /home/dude/synoboot_microserver.img: 394817536B
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start      End         Size       Type     File system  Flags
1      32256B     16450559B   16418304B  primary  ext2         boot
2      16450560B  115153919B  98703360B  primary  ext2

(parted)

 

at this time copy the number of start and run mount

 

[root@centos6 dude]# mount -o loop,offset=32256 synoboot_microserver.img /mnt/syno_root/
[root@centos6 dude]#

 

Go inside of mountpoint/boot/grub/ and edit grub.conf

[root@centos6 dude]# cd /mnt/syno_root/boot/grub/
[root@centos6 grub]# vi grub.conf
#serial --unit=0 --speed=115200
#terminal serial
default 1
timeout 4
hiddenmenu
fallback 0

title SYNOLOGY_1
       root (hd0,0)
       hw_model
       kernel /zImage root=/dev/md0 ihd_num=5 netif_num=1 syno_hw_version=RS3612xs
       initrd /rd.gz

title SYNOLOGY_2
       root (hd0,1)
#       cksum /grub_cksum.syno
       vender /vender
       hw_model
       kernel /zImage root=/dev/md0 ihd_num=5 netif_num=1 syno_hw_version=RS3612xs
       initrd /rd.gz

This view comes from my image that run on N40L hp microserver

Around the forum you will see an example with serial number, if you have more thet one syno on the same network, it's' more safe add mac-address in grub boot command line

 

kernel /zImage root=/dev/md0 ihd_num=5 netif_num=1 syno_hw_version=RS3612xs mac1=macaddress sn=BJ0000000

  • 0
Posted
hi!

 

i just have made the change, it works great.

 

how to :

 

connect to your xpesyno via putty as ROOT.

 

>mount /dev/sda1 /mnt

>exit

 

Connect to your xpesyno via WINCSP as root.

 

browse to /mnt/boot/grub/

 

edit menu.lst

 

and modify mac and serial as you want. if there is other title synology chapter modify them too

 

title SYNOLOGY

root (hd0,1)

# cksum /grub_cksum.syno

# vender /vender show

# hw_model

kernel /zImage root=/dev/md0 ihd_num=0 netif_num=2 syno_hw_version=DS3612xs mac1=00113208d68b mac2=00113208d68c mac3=004d9469c492 mac4=004d9469c493 sn=B3J4N00011

initrd /rd.gz

 

regards

 

 

thx , it works ...

  • 0
Posted

Hi all

 

this topic is very interesting. I have tried to follow it and do the changes but I have not had any success:-

 

- My setup is using a VM with ESXi 5.5

- I have version 4.2

- I can not find the Vendor file on the VM machine

- when I try to mount sda1 I get an error that is doesn't exist

- I noticed that all mounted drives are md0, md1 and md2

- if I mount md0 I get the root drive which contains all the linux files but no vendor file or any of the files mentioned.

- I added the mac1=xxxxxxxxxx and sn=xxxxxxxxxxxx to the boot command manually but that did not change anything.

 

I need help please.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...