Solved: How to enable call forwarding in Android

In this post we will discuss how to start call forwarding in an Android phone.
  • Click on the “Phone” icon in menu.
  • In the top right, click on three vertical dots .
  • Click on “Settings”
  • Click “Calling Accounts”
  • Select the SIM for which you want to enable call forwarding.
  • Select “Call Forwarding”
  • Select the forwarding option like “Always Forward” or “When Busy” or When Unanswered” or “When Unreachable”
  • It will ask for the number on which the call should be forwarded.
  • After entering the number click “Turn On”
Please note that these settings can be enabled only if your mobile operator allows this service. Some operators may charge you extra for enabling this service.

Later if you want to disable call forwarding please refer this post.

That’s All!

Solved: How to add disk in a virtual box VM

To add new disk in Virtual box VM it should be in powered off state.
  • Select the Virtual box VM in which you want to add the disk and power off the VM.
  • Right click on the VM and go to “Settings” .
Select “Storage” .
  • In the right Window you will see two icons with + sign.
  • Hover the mouse on the icon which says “Adds Hard Disk” and click on it.

  • Click on “Create New Disk”
  • Select VDI
  • Select “Dynamically Allocated”
  • Give disk a name and select size.
  • Click Create
  • Click OK
Once the disk is  created start the VM and login to it.
  • You should now see the new disk in VM.
  • If the disk is not visible run OS commands to scan the disk.
For Solaris execute “devfsadm -Cv” in the OS to scan the disk.
And if you are using Linux follow this post for scanning new LUNs .
Hope this post is helpful to you. Do let us know if you have any query.

How to check data balance in Idea Internet or start data balance notifications

In this post we will see how to check data balance left in Idea mobile internet for postpaid connection.
  • Dial *121#
  • Select “Self Care” . Type 4 and press Send.
  • Select “My Data Usage” . Type 4 and press Send.
It will display your current usage and balance left.
Follow below guide if you want to enable data balance notifications, so that whenever you stop internet it will display data usage and balance.
  • Dial *121#
  • Select “Self Care” . Type 4 and press Send.
  • Select “Data Notification”.  Type 5 and press Send.
  • Select “Start Notification”. Type 1 and press Send.
This will start data balance notification for you.

Solved: How to resize windows command prompt window

By  default the windows command prompt window will be small. But it can be very annoying to work in such a small window.
Here we will show you how to resize the window as per your requirement.
  • Open the command prompt(CMD) by right clicking on it and selecting “Run as administrator”.
  • Right click on the top of the window where the “Command Prompt” is written.

  • Click on “Properties” and select “Layout” tab.
  • Increase the “Width” and “Height” of “Window Size” as per your requirement. You can also change “Screen Buffer Size” if needed so that you can scroll back to more lines.

  • Finally Click OK and try re-opening the Terminal.

How to take zfs snapshot and rollback

In this post we will discuss how to take ZFS snapshot and restore data using that snapshot.

If you want to take snapshot of a ZFS filesystem the syntax is simple.

zfs snapshot pool/filesystem@somename

Let’s take an example, we have a zpool named “cvpool” and it has a filesystem "cldvdsfs".

  • If we wanting​ to take a snapshot of this filesystem on weekend we will give snapshot a name let’s say “sunday”.
zfs snapshot cvpool/cldvdsfs@sunday
  • Now if you do a “zfs list” you should see the zfs snapshot.
# zfs list
NAME                      USED AVAIL REFER MOUNTPOINT
cvpool                     500M 4.40G 22K /cvpool
cvpool/cldvdsfs             22K 500M  22K /cvpool/cldvdsfs
cvpool/cldvdsfs@sunday        0   -   22K   -
#
  • Have a look at the content of the filesystem. We can see 5 test files.
# cd /cvpool/cldvdsfs

# ls
test1 test2 test3 test4 test5
#

Rollback

  • If you want to do a rollback/restore of this snapshot on the filesystem you can simply do it by:-
zfs rollback pool/filesystem@sunday
  • Let's give it a try  by removing some files.
# rm test5
# rm test4
# ls
 test1 test2 test3
  • Now when we try rollback we should see all our data back.
# zfs rollback cvpool/cldvdsfs@sunday

# cd /cvpool/cldvdsfs
# ls
 test1 test2 test3 test4 test5
#

So we can see above we got our removed files back.

Remote backup

  • Let's try sending the snapshot on a different filesystem or on a remote server NFS filesystem. This is very useful for backup purposes where the data is stored on a different server.
# zfs send cvpool/cldvdsfs@sunday > /remoteNFS/sunday.snap
  • Let's check our snapshot size
-rw-r--r-- 1 root root 14K Sep 23 07:52 sunday.snap
  • Zip the snapshot

You also have an option to zip the snapshot to save space. Like in below example the snapshot got shrinked by 94% .

# gzip -9 -v /remoteNFS/sunday.snap
 /remoteNFS/sunday.snap: 94.0% -- replaced with /remoteNFS/sunday.snap.gz
#

-rw-r--r-- 1 root root 899 Sep 23 07:52 sunday.snap.gz
  • Now let's  create a new ZFS filesystem sunday and try to restore the snapshot on it.
# zfs create cvpool/sunday

# zfs list
 NAME USED AVAIL REFER MOUNTPOINT
 cvpool 500M 4.40G 22K /cvpool
 cvpool/cldvdsfs 22K 500M 22K /cvpool/cldvdsfs
 cvpool/cldvdsfs@sunday 0 - 22K -
 cvpool/sunday 21K 4.40G 21K /cvpool/sunday
  • Currently our new filesystem has nothing in it.
# cd /cvpool/sunday
# ls
#

Unzip the snapshot

Let's unzip and restore the snapshot.

# gzip -d -c /remoteNFS/sunday.snap.gz | zfs receive -F cvpool/sunday

Note:- When you restore the snapshot the filesystem /cvpool/sunday should not be in use else you will get device busy error.

  • We can now see our files in the the sunday filesystem.
 # cd /cvpool/sunday
 # ls
 test1 test2 test3 test4 test5
 #
  • You can make the restored snapshot as your main filesystem by renaming it.

So here we will first rename the current filesystem to old.

 # zfs rename cvpool/cldvdsfs cvpool/cldvdsfs.old
 # zfs list
 NAME USED AVAIL REFER MOUNTPOINT
 cvpool 500M 4.40G 24K /cvpool
 cvpool/cldvdsfs.old 40K 500M 22K /cvpool/cldvdsfs.old
 cvpool/cldvdsfs.old@sunday 18K - 22K -
 cvpool/sunday 22K 4.40G 22K /cvpool/sunday
 cvpool/sunday@sunday 0 - 22K -
  • Now we will make the filesystem which was restored from sunday snapshot as main.
 # zfs rename cvpool/sunday cvpool/cldvdsfs
 # zfs list
 NAME USED AVAIL REFER MOUNTPOINT
 cvpool 500M 4.40G 24K /cvpool
 cvpool/cldvdsfs 40K 4.40G 22K /cvpool/cldvdsfs
 cvpool/cldvdsfs@sunday 18K - 22K -
 cvpool/cldvdsfs.old 40K 500M 22K /cvpool/cldvdsfs.old
 cvpool/cldvdsfs.old@sunday 18K - 22K -
 #