Making Game: Clone usb sata to usb sata

Original Source Link

I have a Linux machine running mint, I have an external USB SATA drive, which is recognized by the Linux system. What I’m trying to achieve is a clone of the external USB SATA to another external USB SATA. I have Clonezilla on a USB, was wondering if I could achieve what I’m trying to do with Clonezilla, if so would it be device to device rather than image to device, however if Clonezilla won’t work, how would I go about doing it

You can create an image of your drive using dd, which is a command line tool, but can be launched directly from a running system.

To duplicate drive a to drive b, simply type

dd if=/dev/sda of=/dev/sdb

That is the simple part.

Unfortunately, it duplicates completely the drive… even the partition table, and all metadata.

You can also create a partition on your target drive the exact same size as the source partition, and use

dd if=/dev/sda1 of=/dev/sdb1

to only copy the first primary partition of first disk on first primary partition on second disk.

So, if your target drive is significantly bigger than source drive, you will still have some available space on it to create a second partition, or extend the duplicated one with another tool.

If you want another solution than a physical duplication, for exemple to deal with disks of different sizes from source to destination, you’d better consider simple copy tools, like tar or rsync.

Explain your needs a little bit significantly, so you may have some more help.

Tagged : / / / /

Making Game: How would I add a permanent blackhole route in SLES 12?

Original Source Link

Similar to How do you add a blackhole route on your network?, but I’d like to know how to make such a route permanent in SLES 12.

In YaST I can only add “normal” routes.

The route can be added through yast2 lan‘ in “Routing” via “Add” to “Routing Table”, specifying option blackhole.
Effectively it means the a line is added to /etc/sysconfig/network/routes or more specifically to /etc/sysconfig/network/ifroute-eth0 for interface eth0.

The line added may look like (for ifroute-eth0): - - eth0 blackhole is the IP address and 32 is the netmask, blocking the host via interface eth0 in the example given. The minus (-) stands for “value not specified”.

The syntax is described in manual page ifroute(5) and the order of fields is:

  1. Destination
  2. Gateway
  3. Netmask (deprecated)
  4. Interface
  5. Options
Tagged : / /

Making Game: Can a second router connect via WAN to another Router and establish a second network? [duplicate]

Original Source Link

Setup is:

A main router, then a second router which connects from its WAN port to a LAN port of the main router. This second router’s goal is to establish a separated network for guest devices.

I disable the DHCP function of the second router, and set a static IP (which is different than the IP of the main router). For example if the main router is, then I would set second router to

If guests connect to the second router via LAN or WiFI, would the guest’s devices be able to “interact” with the devices connected to the WIFI of the main router? Could there be any kind of interaction on Layer 2 or 3?

Is it correct to connect the WAN port of the second router to a LAN of the main router, or should it be LAN to LAN?

If this setup does not fulfill the “separation” criteria, what changes are needed to achieve separated networks (using a two routers approach – without the need of VLANs)?

Yes, you can do this and I do this. However, do not disable DHCP on the second router (different network).

Hook up the WAN port of the second router to a LAN port on the main router.

Give the WAN address a static IP on the main network.

Review the LAN network settings to make sure it is a different subnet than the main network. Leave DHCP enabled.

Since you made changes to the second router, restart it (not reset) and then test. Devices should have a different subnet than the main network, have Internet, but not see the main network.

This suffices for most people as they will use it as given. Dedicated hackers can probably get around this but I assume your guests are not dedicated hackers.

Tagged : / / / /

Making Game: Windows 2012 R2 Windows Search issue. Hangs and doesn’t work after day or two been restarted or index rebuild

Original Source Link

I have upgraded from Windows Server 2008 R2 x64 to Windows Server 2012 R2 x64.
In previous installation I had some issues with Windows Search after Security Roll-up (January or February 2020). It started to hang up till restarted. I’ve wrote a script and added it to Planner to start one time per night. After system upgrade problem occurred. Been solving it for a week already. What has been done:

  1. reinstalled role Windows Search
  2. cleaned registry path HKLMSoftwareMicrosoftWindows Search
  3. index rebuild
  4. tons of registry tweaks like CoreCount = 1 and so on.

Problem didn’t solved.

I’ve started SysInternals ProcessMon and filtered access to registry path and got some errors:

High Resolution Date & Time:    28.05.2020 14:11:17,9562745
Event Class:    Registry
Operation:  RegQueryValue
Path:   HKLMSOFTWAREMicrosoftWindows SearchCrawlScopeManagerWindowsSystemIndexDefaultRulesURL
TID:    17260
Duration:   0.0000116
Length: 144

enter image description here

It’s usual path for crawler containing path for user to exclude – file:///C:[516392d7-8e63-47db-b92c-872191c3cd72]UserssomeuserAppData

Found some February CVE corresponding to BufferOverflow in IE Search, but they been fixed by security roll-ups in March 2020.

Current system been updated with all updates including latest May Security Rollup (May 12, 2020—KB4556846).

I don’t have any idea what to do next.

Tagged : / / /

Making Game: Ubuntu 18 DNS cannot be resolved. (Hyper-V)

Original Source Link

I am having Ubuntu created and running under Hyper-V.
But hosts cannot be resolved unless they are added to the hosts file.
Any ideas on how this should be managed to make it work?

I reach ping

PING ( 56(84) bytes of data.
64 bytes from icmp_seq=1 ttl=61 time=30.3 ms



** server can't find NXDOMAIN



systemd-resolve –status

         DNS Servers:
  DNSSEC NTA: 10.... arpa









Tagged : / / / /

Making Game: Unable to turn on wireless on new Lenovo IdeaPad laptop

Original Source Link

I just bought a Lenovo IdeaPad laptop which is running Windows 7. I can connect to the Internet if I use Ethernet – however, I cannot seem to turn on the wireless.

The little notification on the bottom right says “No connections are available”. When I press the function key + (key that has wireless symbol) then Lenovo Wireless Device Settings comes up and says:

First switch on wireless

I can’t see any wireless button, so how can I switch on wireless as required?

Just press Fn + F5.

Which model is it?

I found this review about the IdeaPad S12, but not sure if it is the one you have. It is that switch right in the middle, next to the vent?

Here is the review:


It looks like there is blue text under the function (F1-F12) Keys. Try pressing the Function Key + The wireless and see if that does the trick 😉

I have a dell by the way .. but it seems like a logical answer.

I had a similar problem with my Acer Extensa 5620 after installing Windows 7. I would press the button to turn on wi-fi but nothing happened.

The fix was to download the wi-fi driver from Acer’s website. This was the last thing I thought of doing as the device showed up OK in the device manager.

Perhaps Lenovo has an updated driver on their site.

I have the Y550 there is a little baby switch at the left hand side corner on. Like if you have your hands on the keyboard it will be under your left arm. It is on the black very front part of the computer.

This fixed the wireless problem for windows 7 for me on the idealpad S12:

Download bios update from here.

Even though it says windows XP bios update, run it from windows 7. After the update is done it will restart your laptop. When windows boot up, your wireless will be on.


  1. The wireless switch on the side should be on before you do the bios update.
  2. DO NOT TURN THE SWITCH OFF after the the update. It will disable the wireless again and you will have to run bios update again.

Hope this helps.

I recently found my Ideapad wireless switch because of this thread. And because of that let me share a photo of where yours might be located and how it looks like:

enter image description here

Install Drivers for Caps lock OSD, Energy management then Wireless.

(Use the Serial number of the laptop to find specific drivers in Lenovo Support)

If WiFi still doesn’t work change the boot order so that it boots from PXE (PCI LAN) before booting from Hard Drive.

This worked for me.

Found on:

This works in my case:

Intel Wireless LAN Driver for Windows 7 (32-bit, 64-bit) – ThinkPad

I tried many other drivers and all of them didnt work or got me BSOD.
Remember first install drivers like chipset etc and leave that for later.

Tagged : / /

Making Game: Cron scheduled backup script not working or writing to log file

Original Source Link

I have a duplicity backup script set to run once per day through the root cron tab.

I set it up like this:

sudo crontab -e -u root

and added the line:

00 03   *   *   *  root   /home/[myusername]/Scripts/Backups/

the script has commands to write to a text file like this:

echo "Creating backup of data directory"
PASSPHRASE='[mypassword]' duplicity /usr/share/nginx/data file:///dysonbackup/datadir &>> /home/[myusername]/Scripts/Backups/backup_logs/data_backup_log.txt

echo "Done"

Running the script itself as root starts the backup and writes to the text file.


sudo crontab -l

shows it listed


grep /var/log/syslog


May 28 03:00:01 [myservername] CRON[89749]: (root) CMD (root   /home/[myusername]/Scripts/Backups/

so I am assuming it at least triggered to run, but there is no new information on the text file.

And it does not appear that the duplicity backup is running as there are no new files in the backup directory.

Ubuntu 20.04

duplicity 0.8.12

Excessive field

sudo crontab -e -u root edits crontab for the user root. This is different than the system-wide crontab (/etc/crontab). The former uses entries in a form of

m h  dom mon dow  command

and the latter uses

m h  dom mon dow  user  command

You used the latter syntax where you should have used the former. The tool tried to run

root   /home/myusername/Scripts/Backups/

Solution: either move your job to /etc/crontab as-is; or fix the syntax by removing root.

If it’s not enough then keep reading.

No shebang?

Does contain a shebang that specifies Bash as the interpreter?

cron will run /home/myusername/Scripts/Backups/ in sh. If there is no shebang the situation is complicated in general, but sh should run it in sh, regardless of who provides sh (there are different implementations, compare this).

When you run the script from Bash, it gets run in Bash.

&>> you used is a bashism. In Bash &>> file is equivalent to >> file 2>&1 and this is what you want. In sh it’s equivalent to & >> file and this is not what you want.

Solution: use a shebang.

Inaccessible /home/myusername?

/home/myusername may not be available because:

  • /home/myusername is automatically unmounted when myusername logs out (especially possible if it’s encrypted);

  • or /home/myusername is mounted as FUSE without allow_other and therefore cron running as root cannot access it;

  • or cron is run by systemd and the service (cron.service) uses ProtectHome= or InaccessiblePaths= to restrict access to /home/myusername (not likely though).

Solution: do not use /home/myusername with cron jobs run by root.

Tagged : / / / /

Making Game: Java SE Development Kit 7 Update 71 failed

Original Source Link

I want to install Xamarin in Windows 8.1.

It requires to install Java Development Kit 1.6 or above (32-bit). When I try to install JDK, I get this error message”

enter image description here

I’m using Windows 8.1 x64. How can I get it installed?

Hey man I just found out how to fix this when trying to install it my self.
what you want to do is first install this software What this does is when right clicking on a file it lets you well. take ownership of that file. so next step after you install that is to hold down the windows and R key what will open Run now type %temp% and press enter. this will take you to the temp folder what i want you to do is go back one folder so you now see the Temp folder not the stuff inside it right click on that folder and take ownership now just try to install your java again

Tagged : / / / /