When setting shared folders, I refer to other people's methods on the internet. because everyone encounters different situations, I will summarize the methods I actually encounter and handle them. 1: VirtualBox click device-& gt; device enhancements 2: Mount the drive mount-tiso9660/dev/dvd/media/cdrom error message & nb
When setting shared folders, I refer to other people's methods on the internet. because everyone encounters different situations, I will summarize the methods I actually encounter and handle them.
1: Click "device" in VirtualBox-> "device enhancement"
2: mount-t iso9660/dev/dvd/media/cdrom mounting. the following error occurs:/dev/dvd write-protected (write protection)
Run mount-o remount, rw/dev/dvd/media/cdrom --- success
Note: Check whether the device logo under/dev is a dvd. some hosts may be dvd1, and cdrom is the new directory.
3: cd/media/cdrom: you can see that the VboxLinuxAddtion. run script directly runs this script./VboxLinuxAddtion. run reports an error.
Prompt the gcc utility was not found; the headers of the current running kernel was not found
If rpm-q gcc is not installed, yum-y install gcc is installed.
Uname-r: kernel version: 2.6.32-431. el6.x86 _ 64
Yum into kernel-devel: View kernel-devel 2.6.32-573.3.1.x86 _ 64
Upgrade kernel yum update kernel to make kernel-devel and kernel version consistent-restart the system to use the new kernel
4: Device-> shared folder-> create shared folder name: pai_file_linux attribute set to "fixed allocation"
5: mount-t vboxsf pai_file_linux/mnt/pai_win_linux
Create a file manually in cmd_file_linux. if the file can be viewed in/mnt/cmd_win_linux, the shared folder is set successfully.
Modify the/etc/profile configuration file and add mount-t vboxsf cmd_file_linux/mnt/cmd_win_linux to the last line. you can view the shared items under/mnt/cmd_win_linux every restart, so that you do not need to manually load each time.