0

I was using Windows 8.1 for Android Development from 2 HDDs, one for OS and other for SDK and code. But last week I migrated to Ubuntu 16.04 LTS.

I formatted the main HDD (having Windows) and installed Ubuntu in it. Now, after attaching the other drive, it is displayed in Dashboard, but not showing any data or partition in either terminal or in Files.

Since, I have no backup, I don't want to lose data. Is there any solution to get it back without inserting it to Windows and backing up data and re-insert to Ubuntu?


What I tried

But every effort was in vein.


Any help would be appriciated.


EDIT

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda2 during installation
UUID=7b1cdbf2-641e-4ac1-9ec2-7e58992047d4 /               ext4    errors=remount-ro 0       1
# /home was on /dev/sda5 during installation
UUID=df60b278-bf9b-4ae7-8140-93e2abb2b3dc /home           ext4    defaults        0       2
# swap was on /dev/sda1 during installation
UUID=c17ef1f0-39b7-44fe-8e05-63673868deb9 none            swap    sw              0       0

$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sdb      8:16   0 149.1G  0 disk 
├─sdb2   8:18   0 148.9G  0 part /media/acme1/ACME
└─sdb1   8:17   0   200M  0 part 
sda      8:0    0 232.9G  0 disk 
├─sda2   8:2    0  57.2G  0 part /
├─sda5   8:5    0 171.9G  0 part /home
├─sda3   8:3    0     1K  0 part 
└─sda1   8:1    0   3.8G  0 part [SWAP]

$ df
Filesystem     1K-blocks    Used Available Use% Mounted on
udev             2512520       0   2512520   0% /dev
tmpfs             506744    7668    499076   2% /run
/dev/sda2       58927276 5919860  49991020  11% /
tmpfs            2533720   75668   2458052   3% /dev/shm
tmpfs               5120       4      5116   1% /run/lock
tmpfs            2533720       0   2533720   0% /sys/fs/cgroup
/dev/sda5      177238584 7771484 160440848   5% /home
tmpfs             506744      84    506660   1% /run/user/1000
/dev/sdb2       61710332   89688  61620644   1% /media/acme1/ACME

$ ls /media/acme1/ACME
System Volume Information

3 Answers3

0

It is likely the system did not install the tools needed to use NTFS formatted disks since you had no Windows disk connected to it. It would have installed those tools if you had the disk connected to the system when you installed Ubuntu.

You can install NTFS support with

sudo apt-get install ntfs-3g

After that reconnect the drive and see if it shows content.

Rinzwind
  • 299,756
0

Based on the result of running the mount command, your HDD is mounted as ext4 which is wrong.

  • Unmount your device
  • Make a mount point (in not already existed) by making a folder in /media/:

    sudo mkdir /media/acme1/ACME
    
  • Mount it manually by running:

    sudo mount -t ntfs /dev/sdb2 /media/acme1/ACME
    

Now, you should see all your files.

I assume there is a line in your /etc/fstab which is making this drive be automatically mounted as ext4. If you share the content of this file, the problem can be solved permanently.

0

Thank you everyone for your response and time.

Finally, I solved the issue by formatting the HDD with FAT32 partition type and windows for the use.

I thought to format that HDD with partition type FAT32 after getting the data in other disk. I was experimenting it since after the efforts of more than a week, I was not succeeded.

This thought came after I read somewhere regarding this in some link given in the above links.

This led me to succeed and maybe it can help someone else too facing the same situation.

I am now able to use that particular partition in Ubuntu as well as Windows.

Once again, Thank You very much for the guidance and help.