ema Posted January 28, 2013 #1 Posted January 28, 2013 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 Quote
0 VeNoM Posted January 28, 2013 #2 Posted January 28, 2013 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. Quote
0 ema Posted January 30, 2013 Author #3 Posted January 30, 2013 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! Thanks so much for the help! Bye! ema Quote
0 sanity Posted January 31, 2013 #4 Posted January 31, 2013 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..... Quote
0 digitalvideo Posted February 11, 2013 #5 Posted February 11, 2013 Hi, Can you explain how to simply acess to the bootloader file? Regards, Quote
0 patmtp35 Posted March 26, 2013 #6 Posted March 26, 2013 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 Quote
0 speleoxp Posted March 26, 2013 #7 Posted March 26, 2013 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 Quote
0 patmtp35 Posted March 26, 2013 #8 Posted March 26, 2013 oups just forgot to say working with dsm4.1 from this post => viewtopic.php?f=2&t=514 Quote
0 speleoxp Posted March 27, 2013 #9 Posted March 27, 2013 oups just forgot to say working with dsm4.1 from this post => viewtopic.php?f=2&t=514 I'm using the "original" DSM4.1 build2668 posted in http://xpenology.com/forum/viewtopic.php?f=2&t=1 I will try out the build2668++ and get back with the result. Quote
0 dacart30 Posted March 31, 2013 #10 Posted March 31, 2013 It did not work with any of these methods. Help? Quote
0 dm500 Posted March 31, 2013 #11 Posted March 31, 2013 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. Quote
0 patmtp35 Posted March 31, 2013 #12 Posted March 31, 2013 i did it on my DSM4.1 but i haven't this problem Quote
0 dm500 Posted April 1, 2013 #13 Posted April 1, 2013 i did it on my DSM4.1 but i haven't this problem Do i have to match serial number with my mac address? Quote
0 Peter995 Posted April 23, 2013 #14 Posted April 23, 2013 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 Quote
0 Aigor Posted April 24, 2013 #15 Posted April 24, 2013 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. Quote
0 Peter995 Posted April 24, 2013 #16 Posted April 24, 2013 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! Quote
0 Aigor Posted April 25, 2013 #17 Posted April 25, 2013 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 Quote
0 Peter995 Posted April 26, 2013 #18 Posted April 26, 2013 Hi Aigor, Many thanks for your assistance & your clear instructions. I've now managed to edit the grub.conf file, just need to boot from it now & see if it's worked. Quote
0 nokian82uk Posted May 1, 2013 #19 Posted May 1, 2013 hi, This method (edit menu.lst) it's work! Thanks! Quote
0 Benson Posted May 23, 2013 #20 Posted May 23, 2013 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 ... Quote
0 zkd Posted November 17, 2015 #21 Posted November 17, 2015 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. Quote
Question
ema
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.