I've installed raspbmc, but from what I've seen it's based on raspbian, so this might go for raspbian too.

I've connected a USB hard-drive. Most of the time, it will be automatically mounted on /media/usb0, to which /media/usb is a symlink.

My problem is in that most. What is the best way to have the drive mounted at boot at the same mountpoint?

I did some looking around. Can I use /dev/disk/by-label in /etc/fstab or will that clash with the automatic mounting, which sometimes doesn't work?

  • Hi Chris. Mount by label or uuid should work fine, however it means it will only mount at boot. Is that what you want? – Jivings Oct 20 '12 at 15:49
  • I want it to at least be mounted at boot. Right now sometimes it won't get mounted. And reconnecting it might mount it at /media/usb1, invalidating all media paths stored in the database. – Chris Wesseling Oct 22 '12 at 6:22

I use /dev/disk/by-id without any issues, so I suggest you use that.

| improve this answer | |
  • This is the best way. These links are updated by udev upon detecting devices. – Nakedible Oct 29 '12 at 11:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.