Raspberry Pi headless question
|
28-02-2021, 14:20
Post: #21
|
|||
|
|||
RE: Raspberry Pi headless question
(28-02-2021 13:47)stumpi Wrote: The output in both cases is: 'is not a content directory. Surely that's a response from MinimServer, not from the command line? If the output from the command "ls -l /media/pi" is "ls: cannot access '/media/pi': No such file or directory" then it looks like it's not getting automounted and thus the /media/pi directory isn't getting created. Could you send the output from the command "df". If the above command doesn't shed any light then you'll need to follow the first guide I posted in my initial reply. Maybe @simoncn is running Raspberry Pi OS desktop which I'd imagine would automount, but it doesn't look like you're having any success. |
|||
28-02-2021, 17:46
Post: #22
|
|||
|
|||
RE: Raspberry Pi headless question
Hi Simbun,
After my last post I concluded the Usb must not be mounted. So I have worked through the instructions on the Raspberry Pi website and it is now definately mounted. I have run the command to list the contents of the drive (ls /mnt/mymusic) and I can see all my music on the drive in Powershell. During the above I confirmed UUID: 5FE6-0DDD Name of partition: Sda1 FSTYPE: vfat I had to create a target folder to be the mount point, which is 'mymusic' So I have restarted Minimserver and tried the following paths none of which worked: media/pi/4d36e967-e325-11ce-bfc1-08002be10318 home/pi/mymusic/4d36e967-e325-11ce-bfc1-08002be10318 ls -l /media/pi/4d36e967-e325-11ce-bfc1-08002be10318 ls -l/media/pi/4d36e967-e325-11ce-bfc1-08002be10318 I can say with absolute certainty that the drive is mounted and the mount point is 'mymusic'. Does this help in anyway to get to the exact path? Thanks for sticking with me on this. |
|||
28-02-2021, 18:02
Post: #23
|
|||
|
|||
RE: Raspberry Pi headless question
If the drive is mounted at /mnt/mymusic, you need to enter /mnt/mymusic for contentDir.
|
|||
28-02-2021, 18:23
(This post was last modified: 28-02-2021 18:24 by simbun.)
Post: #24
|
|||
|
|||
RE: Raspberry Pi headless question
The '4d36e967-e325-11ce-bfc1-08002be10318' you got from Windows just describes the type of device it is, when you're looking to mount a drive in Linux you need the UUID (universally unique identifier) which uniquely identifies the partition, and enables you to map it to a mount point, which in your case is '5FE6-0DDD' and '/mnt/mymusic'.
Bear in mind that if you were to reformat your USB key the UUID would change (at least it does in Linux) so you'd need to modify your fstab entry. Also, if you want to update your USB key with files (assuming you're not doing it over the network) make sure you unmount the drive first: Code: sudo eject -vs /mnt/mymusic Then, once you've plugged it back in Code: sudo mount -a Alternatively, just shutdown the Pi and turn it back on once you've updated. |
|||
28-02-2021, 18:38
Post: #25
|
|||
|
|||
RE: Raspberry Pi headless question | |||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)