Mounting external hard drive to linux guest

Discussions about using Linux guests in VirtualBox.
Post Reply
ShehabElsayed
Posts: 1
Joined: 23. Feb 2017, 20:56

Mounting external hard drive to linux guest

Post by ShehabElsayed »

I am using virtual box version 5.1.14 r112924 to run ubuntu 16.04LTS. I am trying to mount an external hard drive but with no success.

This is what happens when I connect the hard drive:
1- It shows in the launcher bar and when I check with lsblk it shows that it is connected to /dev/sdb1
2- When I click on the launcher icon it takes a long time to giver any response and ends in one of theses messages:
2.1- Unable to mount
2.2- A long error message including "the disk contains an unclean file system external drive"

What I tried so far with no effect:
1- Running ntfsfix on /dev/sdb1
2- Running chkdsk /f in the windows host

I also tried connecting the drive to a Ubuntu host and this seems to work fine.

Could someone please help me fix this problem? Thanks
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Mounting external hard drive to linux guest

Post by socratis »

ShehabElsayed wrote:I am trying to mount an external hard drive
I really hope you mean a USB hard drive.
ShehabElsayed wrote:it shows that it is connected to /dev/sdb1
That doesn't look like an external hard drive to me.

Please describe in detail the way that you try to get access to the external hard drive. I don't want any diagnostics or programs or checks run. I just need you to tell me, if it is an external USB hard drive, and what steps did you take in VirtualBox to "connect" it.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply