Mount No Such Device Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this /sbin/mount.vboxsf mounting failed with the error no such device centos site About Us Learn more about Stack Overflow the company Business Learn /sbin/mount.vboxsf mounting failed with the error no such file or directory more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question mount error(6) no such device or address cifs x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up VirtualBox:
/sbin/mount.vboxsf: Mounting Failed With The Error: Protocol Error
mount.vboxsf: mounting failed with the error: No such device up vote 61 down vote favorite 27 I'm using VirtualBox with OS X as host and CentOS on the guest VM. In OS X I created folder myfolder, added it as shared folder to the VM, turned on the VM, in CentOS created folder /home/user/myfolder and typing: sudo mount -t vboxsf myfolder /home/user/myfolder and have mount error(6) no such device or address fstab output: /sbin/mount.vboxsf: mounting failed with the error: No such device What I'm doing wrong? UPDATED: Guest Additions installed. osx centos virtual-machine virtualbox share|improve this question edited Mar 26 at 8:16 bschlueter 1,077728 asked Feb 4 '15 at 18:32 cnaize 80821126 Make sure Guest Additions is installed properly, you might have to sudo apt-get upgrade ;sudo apt-get install build-essential module-assistant; sudo m-a prepare; You need to see the Guest Aditions module being built... –ntg Jun 3 '15 at 14:46 2 To the random internet surfer who's having this problem: Do yourself a favour and look at the second answer. –jrharshath Dec 17 '15 at 22:35 a tip - sudo mount -t vboxsf sf_folder /home/user/folder, here the sf_folder and folder MUST be different names –cnaize Feb 22 at 16:24 @jrharshath Which one is the "second answer"? Sorting can change. Click on share in the answer to get the permalink. –wisbucky Mar 10 at 18:46 1 modprobe -a vboxguest vboxsf vboxvideo –jrharshath Mar 14 at 7:30 add a comment| 11 Answers 11 active oldest votes up vote 92 down vote My shared folder/clipboard stoppe
Board index The team Delete all board cookies All times are UTC
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn http://unix.stackexchange.com/questions/118115/cant-mount-samba-share more about hiring developers or posting ads with us Unix & Linux Questions Tags Users Badges http://www.silas.net.br/tech/linux/busybox-troubleshooting.html Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Can't mount samba share up vote no such 6 down vote favorite 2 I'm trying to mount a samba host located at 192.168.2.5. I can ping the host, I can open the share on Ubuntu and windows (with the credentials). When I try to manually connect: pi@raspberrypi-web-server ~ $ smbclient -L 192.168.2.5 Enter pi's password: Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.6] Sharename Type Comment --------- ---- ------- IPC$ IPC IPC Service (raspberrypi-media server) Media Folder Disk Media Folder print$ Disk Printer Drivers Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.6] Server Comment no such device --------- ------- RASPBERRYPI-MEDI raspberrypi-media server Workgroup Master --------- ------- WORKGROUP I have this line in /etc/fstab: //192.168.2.5/ /mnt/smb cifs user=maikel,pass=PASSWORD,_netdev 0 0 But whenever I do: sudo mount -a I get the following error: Retrying with upper case share name mount error(6): No such device or address Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) Why doesn't my mount work? I've tried host raspberrypi-media but I got the same error? mount samba share|improve this question edited Mar 4 '14 at 19:07 Anthon 47.6k1462125 asked Mar 4 '14 at 19:02 user1226868 135115 add a comment| 2 Answers 2 active oldest votes up vote 5 down vote accepted Try this: $ mount -t cifs -o user=maikel,pass=PASSWORD,_netdev \ '//192.168.2.5/Media Folder' /mnt/smb This should work. Also, try this to make sure you have permissions: $ smbclient '\\192.168.2.5\Media Folder' -U maikel Type in your password and type in ls at the smbclient prompt. share|improve this answer edited Mar 5 '14 at 0:18 slm♦ 166k40305474 answered Mar 4 '14 at 23:32 samiam 1,961412 1 The single quotes did the job. i used an \040 (space) in /etc/fstab and it works! Wow thanks! –user1226868 Mar 5 '14 at 14:53 add a comment| up vote 0 down vote the trailing / on "//192.168.2.5/" was the original problem, by the way: share names do not end with a / and you had no share name in there. You needed this: //192.168.2
is because they struggle to let their mount small and do not try to implement fancy things like clear error messages (which may require lot of code to probe the system for status). So, what to do when there is an informative error like that? My experience shows some clues: mount: mounting /dev/sda1 on /mnt failed: No such file or directory Specify the system you want to build with the -t flag: # mount -t ext3 /dev/sda1 /mnt mount: mounting /dev/sda1 on /mnt failed: No such device If, after you specified -t, you get a problem like that, it is very likely that the kernel cannot mount the requested filesystem for you. Does the kernel supports the filesystem? Is there a module for that filesystem? Is it loaded? Check with the lsmod command: # lsmod You may try to load it with the modprobe command: # modprobe ext3 If the module doesn't exist, you are in a problem. In my case, I was using a version of Debian GNU/Linux that didn't have the module, so I stole the module from a Ubuntu initrd CD and put it together with other modules on my modified initrd. mount: mounting /dev/sda1 on /mnt failed: Invalid argument The kernel can probably mount the filesystem, but it wrongly guess its type. Try using the -t flag as told in mount: mounting /dev/sda1 on /mnt failed: No such file or directory. silas.net.br