Home > database >  SQL Server error accessing Linux virtual machine files on a Shared folder
SQL Server error accessing Linux virtual machine files on a Shared folder

Time:09-15

Local remote system Windows 10
The virtual machine operating system: centoOS 7.6
Virtual machine database: SQL Server 2019-15.0.4033.1 Developer Edition (64 - bit) on Linux (CentOS Linux 7 (Core))
A virtual machine software: VMware Workstation 15 Pro 15.5.1 build - 15018445

A local database connection software: SQL Server Management Studio 15.0.18330.0

Background: in the mobile hard disk have exported bak files from other SQL Server, I have already Shared the mobile hard disk files to the Vm virtual machine, the path is
/MNT/HGFS SSHS
Now want to put the mobile hard disk SSHS folder bak files back to the database,
The results using various commands found how all failed.

Restore the database MZ from disk=N '/MNT/HGFS SSHS/MZ. Bak' WITH the FILE=1
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Message 3201, level 16, state 2, line 8
Unable to open the backup device '/MNT/HGFS SSHS/HIS_MZ bak', operating system mistakes 2 (the system cannot find the specified file,),
Message 3013, level 16, state 1, line 8
RESTORE the DATABASE is abort,
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Tried other methods: such as the use of SQL Server Management Studio 15 itself with "restore database" results cannot open the virtual machine normally Shared folder, I didn't have to.

PS: the virtual space is limited, can not add hard disk space
  • Related