All the external hard disk will come with the NTFS format which is easily accessed to the windows and Linux as well.The NTFS format hard disk is easily affected by the virus until you are not protected with anti-virus.

The EXT4 format which accessible only on Linux machine will never be affected by any virus and all the data also secured in 99 percent.

For example, if you have 1TB hard disk with a single partition in an NTFS format you may have a chance to lose your data.

ext-hd

Here are the tips for how to safely and secure the data from the virus without anti-virus.

Login to the Ubuntu machine and open Gparted tool which help to partition the hard disks. Make it different partition with 2 or 3 depending on your usage.

gparted

Here I made 4 partitions for 2TB external hard disk

/dev/sdb1 – This partition which comes as default inWindows and Linux.

/dev/sdb2 and /dev/sdb3 and /dev/sdb4 are the EXT4 partition which I made only in Linux OS.

In the terminal results:

vinothc@vinothc-ThinkPad-E450:/media/vinothc$ ls -la
total 24
drwxr-x---+ 6 root root 4096 Mar 29 08:15 .
drwxr-xr-x 3 root root 4096 Oct 28 2015 ..
drwxrwxrwx 39 vinothc vinothc 4096 Mar 26 17:53 Photos
drwxrwxrwx 1 vinothc vinothc 4096 Feb 15 23:28 Seagate Backup Plus Drive
drwxrwxrwx 3 vinothc vinothc 4096 Mar 27 08:21 Videos
drwxrwxrwx 5 vinothc vinothc 4096 Mar 27 08:20 workspace
vinothc@vinothc-ThinkPad-E450:/media/vinothc$

But the thing is now all the ext4 partition is working only on your Linux machine and not in any other Linux machine,  even if you change the username in your machine also you are not able to write any data in your hard disk. if you want to access the other Linux machine you need to change the owner privilege access to write any data in the hard disk.

Here is the simple to tips to make your hard disk works with all the Linux machine with read-write privilege access and it is the one-time command you have to do this when you had made the partition.

open the terminal

follow the commands

cd /media/<username>
mount /dev/sdx   [here 'x' stands for device partition sdb or sdc]

mount all the partition

mount /dev/sdb1
mount /dev/sdb2
mount /dev/sdb3
mount /dev/sdb4
sudo su
chmod -R 777 <mount point>
sudo su
chmod -R 777 /dev/sdb1
chmod -R 777 /dev/sdb2
chmod -R 777 /dev/sdb3
chmod -R 777 /dev/sdb4

This command is to change the read-write privilege for all the partitions. Now your hard disk ready to use on all the Linux machine without a doubt.

I hope you this blog is helpful for you 😀

Leave a Reply

Your email address will not be published. Required fields are marked *