Automated Clonezilla image creation and restoring

Automated Clonezilla Restore or create image

I added and edited these lines on my /syslinux/syslinux.cfg file (Of course change *USERNAME*, *PASSWORD*. and *IP* if you are going to try this):

Restore disk image:

label Restore disk image
MENU DEFAULT
# MENU HIDE
MENU LABEL Restore disk image
# MENU PASSWD
kernel /live/vmlinuz
append initrd=/live/initrd.img boot=live config noswap edd=on nomodeset noprompt locales=en_US.UTF-8 keyboards-layouts=NONE ocs_live_batch="yes" ocs_prerun="dhclient -v eno1" ocs_prerun1="sleep 2" ocs_prerun2="sudo mount -o user=*USERNAME*,password=*PASSWORD* //*IP*/images /home/partimag" ocs_prerun3="sleep 2" vga=788 nosplash ocs_live_run="sudo ocs-sr -g auto -e1 auto -e2 -r -j2 -p reboot restoredisk ask_user sda"
TEXT HELP
ENDTEXT

This will start Clonezilla, ask stupid keyboard question and after that:
– Get IP-address from DHCP server for eno1 (First ethernet network interface)
– Mount images directory from my NAS
– Show list of all images on my NAS
– Restore selected images to the first disk on my computer.
– Reboot the computer

Automated Clonezilla list of images

Continue reading Automated Clonezilla image creation and restoring

Raspberry Pi and GPS problems

Raspberry Pi and gpsd problems

I have used same GPS dongle and same settings with my Raspberry Pi projects for years but now suddently I started to have problems with it.
It worked perfectly just after installing gpsd and things but after reboot I couldn’t get it work.

apt-get remove gpsd

and then

apt-get install gpsd

always seemed to get it to work until next reboot but that couldn’t be the real fix for this problem especially when this should work offline.

Then I found out that if I stop gpsd.socket and disable it then my gpsd worked just liked it should and I started to get NMEA data from my GPS dongle:

systemctl stop gpsd.socket
systemctl disable gpsd.socket

Not sure why or when this has changed so if anybody know feel free to comment and tell me.

Raspberry Pi and D-Link DWM-222

I’m not sure why every tutorial talk about usb-modeswitch because I haven’t use it and I can connect to internets with my D-Link DWM-222 without any problems.

I might have understood something wrong (if I have please comment and let me know) but this is how I do it.

Hardware:

  • D-Link DWM-222
  • Raspberry Pi 3 Model B+

Software: Continue reading Raspberry Pi and D-Link DWM-222

How to update BIOS almost without Windows

I have used this way to update many Dell computers (Laptops and desktops) but I’m sure that this will work with other brands too that can be run from the command line using dos

All you need to do this update is one USB dongle (it doesn’t need to be big probably 250MB could be enough but I haven’t found that old dongle). Rufus and the actual executable file which will update your bios which you have to download from your computer manufacturer website.

Only time when you need Windows is when you run Rufus and make that bootable USB dongle but after that you don’t need Windows. You might be able to do the bootable usb dongle in Linux or on Mac OS but I have been lazy and I haven’t tried it.

  • Download rufus https://rufus.akeo.ie/ and install it to your computer or use portable version like I use.
  • Make a bootable USB dongle with default settings using freedos which is the OS what we are going to use to boot our computer. If you want to use something else than Rufus to create your USB dongle you should find freedos files here: http://www.freedos.org/
  • Rufus default settings for updating computer BIOS without windows

    Rufus default settings for updating computer BIOS without windows

  • Copy biosupdate.exe to root directory of the dongle so that you will find then more easily when you have booted to freedos.
  • Boot from the dongle and run biosupdate.exe and run the update following the instruction which you get with your bios update.

Continue reading How to update BIOS almost without Windows