December 4, 200916 yr Hi there, I was playing with (free) unRAID on a small USB stick. It has a lot of customizations by now and as I would like to move to a registered pro version, I would like first to image/copy it to a new USB stick which I would like to register. Any hints how to accomplish this best? Prefer to do it in unRAID or Mac OS X, but could boot up a Windows client if needed. Something like dd, rsync, etc? Thanks much!
December 4, 200916 yr Hi there, I was playing with (free) unRAID on a small USB stick. It has a lot of customizations by now and as I would like to move to a registered pro version, I would like first to image/copy it to a new USB stick which I would like to register. Any hints how to accomplish this best? Prefer to do it in unRAID or Mac OS X, but could boot up a Windows client if needed. Something like dd, rsync, etc? Thanks much! you will need to use syslinux on the new USB drive and format it. Then, you can mount it under unRAID and use "cp -R" or rsync to copy from the old to the new. If the old and new drives are exactly the same size you can use "dd" to clone the old drive to the new. dd if=/dev/old of=/dev/new Where /dev/old = device of old flash drive, and /dev/new = device of new. Be VERY careful here... since an error and you just overwrote the WRONG drive in your array, possibly a data drive, or worse, overwrote the old configured flash drive with the empty contents of the new.
December 4, 200916 yr Author Is there anything like syslinux available in unRAID' slackware Linux or Mac OS X?
December 4, 200916 yr Info about syslinux can be found here - http://syslinux.zytor.com/wiki/index.php/SYSLINUX There are downloads for linux apparently here (Untested by me) - http://www.kernel.org/pub/linux/utils/boot/syslinux/ One hint, format first (as fat) and THEN syslinux it.
December 5, 200916 yr Author Thanks! I did it but with the new USB stick, I am getting some freezes (each couple of minutes) with the network... nothing else has changes, only the stick is a different Lexar Firefly. Put in the old stick and no freezes anymore. Any hints?
December 5, 200916 yr It's hard for me to imagine how network freezes could be related to a USB drive. Can you post your syslog (see my sig for the Troubleshooting link)? Network issues often appear in the syslog.
December 6, 200916 yr Author Rob, attached the syslog, downloaded through unMenu. The config is below in my sig, but I may post details if needed. So far, I have only four disks attached to the motherboard. Thanks! Edit: this is the output of ethtool: root@startank:~# ethtool eth0 Settings for eth0: Supported ports: [ TP ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Advertised auto-negotiation: Yes Speed: 1000Mb/s Duplex: Full Port: Twisted Pair PHYAD: 1 Transceiver: internal Auto-negotiation: on Supports Wake-on: pumbag Wake-on: g Current message level: 0x00000001 (1) Link detected: yes root@startank:~# ethtool eth1 Settings for eth1: Supported ports: [ TP ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Advertised auto-negotiation: Yes Speed: Unknown! (65535) Duplex: Unknown! (255) Port: Twisted Pair PHYAD: 1 Transceiver: internal Auto-negotiation: on Supports Wake-on: pumbag Wake-on: g Current message level: 0x00000001 (1) Link detected: no
December 6, 200916 yr When you cloned the USB flash drive, you copied a file in the config folder that holds the network configuration. In it is a field that can be used to set the MAC address. Normally, this is not set to anything different than the network chipset's default value, but Linux provides a way to set the MAC address if you desire. The line in the config/network.cfg file that does this looks like this: HWADDR=00:22:12:55:EB:1E If by chance you have another device on the same LAN that you first booted up with that same MAC address, then the two would conflict when packets are routed. You can edit that file and delete the line on the cloned drive, and then reboot. It will then be set to the proper MAC address for your network card. Might not be your problem, but it might... can't hurt to check it out. Joe L.
December 6, 200916 yr Author Ouch! Yes, I was first testing unRAID on another computer, which unfortunately was running when I then imaged the sticks and experienced the lookups. Now the other computer is not running and there are no freezes. I will right away check the MAC address. Thanks much, Joe!
December 6, 200916 yr Author Checked the HWADDR field in config/network.cfg and it is the right one for the interface. Just confirmed by running ifconfig. Is it possible that it was automatically changed at some later point, after several reboots that I had in the meantime?
December 6, 200916 yr Checked the HWADDR field in config/network.cfg and it is the right one for the interface. Just confirmed by running ifconfig. Is it possible that it was automatically changed at some later point, after several reboots that I had in the meantime? Ifconfig would use the value in the file as it gets set in the network driver when it is started... Delete the line, reboot, and see if the MAC address changes... Look for a line like this in your syslog grep rc.inet /var/log/syslog You'll see how the ifconfig command is used to SET the hardware address in the process of setting up the network. Joe L.
December 6, 200916 yr Author Joe, you was right. I commented that line with the HWADDR and rebooted. Now ifconfig shows a different MAC address. Thanks much for your patience and help!
December 8, 200916 yr The syslog clearly shows the 2 onboard NIC's being setup, and their MAC addresses, then later when the system went online, using a different, a third MAC address. I seriously doubt if I would have caught that, and Joe was brilliant in thinking of this possibility. From now on, I will know to check for it.
December 8, 200916 yr The syslog clearly shows the 2 onboard NIC's being setup, and their MAC addresses, then later when the system went online, using a different, a third MAC address. I seriously doubt if I would have caught that, and Joe was brilliant in thinking of this possibility. From now on, I will know to check for it. Don't confuse brilliance with blind luck (and a good memory for what others have reported in the past). Glad you are back working as expected. Joe L.
December 8, 200916 yr Author Perhaps this should be in Wiki or FAQ somewhere, to check for the MAC address when moving to another USB stick. Otherwise copying the files by any means in addition to syslinux the stick first works pretty well. Thanks again!
December 9, 200916 yr Probably should, but I'm not sure where to put it, or how to word it, especially how to make it show up and appear relevant to a user with this problem. However, this brings up a good question. Should the MAC address be stored at all? For example, what if you add a NIC and disable the onboard NIC, is this MAC used instead of the new cards MAC address? Perhaps we should ask Tom not to store it in network.cfg. I'm not sure I know of all the ramifications here. A user might want a way to override the MAC, by storing it here, but Linux already has a way to do that I believe.
December 9, 200916 yr Probably should, but I'm not sure where to put it, or how to word it, especially how to make it show up and appear relevant to a user with this problem. However, this brings up a good question. Should the MAC address be stored at all? For example, what if you add a NIC and disable the onboard NIC, is this MAC used instead of the new cards MAC address? Perhaps we should ask Tom not to store it in network.cfg. I'm not sure I know of all the ramifications here. A user might want a way to override the MAC, by storing it here, but Linux already has a way to do that I believe. I agree. He should not write it to network.cfg. It should be reported as a bug. Joe L.
December 11, 200916 yr Author Definitely NOT write it to the network.cfg. At least not if it wasn't specified manually.
December 12, 200916 yr Definitely NOT write it to the network.cfg. At least not if it wasn't specified manually. But let the user acces and change it easily. That way, you can add 2 or more unraid into you lan. Let's say macadress.cfg or something like that.
December 12, 200916 yr Author Definitely NOT write it to the network.cfg. At least not if it wasn't specified manually. But let the user acces and change it easily. That way, you can add 2 or more unraid into you lan. Let's say macadress.cfg or something like that. Yes, basically what I was suggesting, leave it as it is, but only write the MAC address if the user has explicitely changed it. If I have changed the MAC address I will know it and change it before imaging the USB stick, same as I didi with the server name and IP address.
Archived
This topic is now archived and is closed to further replies.