Back Next

Supergrub and Anti Virus

Welcome to our Windows 12 for Dummies. Chapter 17

Super Grub2 on the Yumi – Detect any Operating System – Linux kernels detected

Find out what your hard disk and root partition devices are

From your installed system you need to use a Terminal enter the command:

sudo fdisk -lu

(where you will have to write your user password blindly) as a admin user or: fdisk -lu

as root user from a Terminal.

A possible output might be:

Disco /dev/sda: 21.5 GB, 21474836480 bytes 255 cabezas, 63 sectores/pista, 2610 cilindros, 41943040 sectores en total

Unidades = sectores de 1 * 512 = 512 bytes

Tamaño de sector (lógico / físico): 512 bytes / 512 bytes

Tamaño E/S (mínimo/óptimo): 512 bytes / 512 bytes

Identificador del disco: 0x000221dd

Dispositivo Inicio Comienzo Fin Bloques Id Sistema

/dev/sda1 * 2048 41940991 20969472 83 Linux

In most of the cases you will see that you have a Linux system partition sda5, sda4, or whatever sdaX. That means that your hard disk (as it’s seen above) it’s sda.

In any case we recommend to check hard disk size next to Disk /dev/sdX at the output’s beginning so that you make sure that you select the exact hard disk that boots initially in your machine.

Restore grub

Now we are going to install grub back to the MBR, which it is what most people to do.

In the next command you will need to replace sda with your hard disk.

Either you run:

sudo grub-install /dev/sda (where you might have to write your user password blindly or not) as a admin user or:

grub-install /dev/sda

as root user from a Terminal.

The most probable output for the command is:

Installation finished. No error reported.

That means that the installation was successful. When you reboot Grub menu should be alive again.

Setting Up and running the ClamAV Anti Virus

Installing the ClamAV using a Terminal enter the following commands.

sudo apt update && sudo apt upgrade -y

sudo apt install clamav clamav-daemon

clamscan –version

sudo systemctl stop clamav-freshclam

sudo freshclam

sudo systemctl start clamav-freshclam

Now you can:

1. Stop freshclam service by entering

$ sudo systemctl stop clamav-freshclam

2. Run freshclam command by entering

$ sudo freshclam

3. Start freshclam service by entering

$ sudo systemctl start clamav-freshclam

Start freshclam service

Ensure freshclam service is active.

Run this command to start the freshclam service.

$ sudo systemctl start clamav-freshclam

Run this command to start the freshclam service at boot. $ sudo systemctl enable clamav-freshclam General syntax: $ clamscan [options] [file/directory/-] Options: –infected: prints only infected files –remove: removes infected files –recursive: all the subdirectories in the directory will be scanned Run this to scan the files in the current directory: $ clamscan . Run this to scan all the files in the current directory: $ clamscan –recursive

Back Next