I'm trying to follow intructions found here (http://www.jeremymorgan.com/tutorials/raspberry-pi/how-to-raspberry-pi-file-server/) on how to set up a file server with the Raspberry pi, but cannot mount my drive. The error I get is cannot find /dev/sda1. When I look into /dev, I see that I have no folders /DEV/SDA. Why is that and how can I create them?
2 Answers
Try lsusb
and see if you see the device listed. Do not bother with mknod, if udev does not create the node you won't be able to.
As mentioned in my comment, do not plug the device into the pi after boot. Plug it in before you power up or use a hub.
-
"do not plug the device into the pi after boot" - I can confirm this. Plugging in a WiFi adapter also caused my Pi to restart. Feb 21, 2013 at 18:41
-
Thanks! I just bought myself a powered USB hub, plugged it in, and now I see the /dev/sda1 drive pop up. - Though strange - after I entered the mount command
sudo mount -t ntfs-3g -o uid=pi,gid=pi /dev/sda1 /media/USBDRIVE/
I received an error "Mount is denied because the NTFS volume is already exclusively opened" and if I cd to /media/elements (not /media/usbdrive) I see my drive. did it auto mount? Feb 22, 2013 at 2:25
I had the same problem, nod /sda or sdb or anything. It was a USB 3.0 and the raspberry pi was seeing it but not able to access it. I changed it to USB 2.0 and worked perfectly fine
tail -f /var/log/messages
part of that tutorial work?? Do you see anything that indicates the USB devices enumerating?# mknod /dev/sda1 b 8 1
it ran but did not return anything, and nothing was created