Forum

Full Version: Hard Drive Mounting
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hey guys!

i've just set up my pi with xbian and its working great. BUT, I have one small issue.

When I power up the Pi the hard drive mounts to usb0, if I reboot it mounts to usb1 and then my library does not work. It chops and changes each time I reboot or remove the usb cable.
I found this guide: http://jmeosbn.github.com/blog/baking-the-pi/#fn:mountpoints

But I dont think it has worked and now im a bit stuck. Can anyone help? Having the same issue?

Im running XBian 1.0 Alpha 5 on a 256mb Pi.

Thanks Guys....
Can you try removing all mountpoints except usb0 from /etc/usbmount/usbmount.conf
(22nd Feb, 2013 10:52 PM)Koenkk Wrote: [ -> ]Can you try removing all mountpoints except usb0 from /etc/usbmount/usbmount.conf


ok, here comes my inner noob!

I think I tried that before but I am unsure if I did it correctly. Can you give me a short 'how to' so I know Im doing it right.

Thanks for your help!!
This is the file I'm talking about: https://github.com/xbianonpi/xbian/blob/xbian-beta1/etc/usbmount/usbmount.conf

Here you see this line (line 12 and 13)
Code:
MOUNTPOINTS="/media/usb0 /media/usb1 /media/usb2 /media/usb3
             /media/usb4 /media/usb5 /media/usb6 /media/usb7"

Change that to
Code:
MOUNTPOINTS="/media/usb0"
(22nd Feb, 2013 11:17 PM)Koenkk Wrote: [ -> ]Here you see this line (line 12 and 13)
Code:
MOUNTPOINTS="/media/usb0 /media/usb1 /media/usb2 /media/usb3
             /media/usb4 /media/usb5 /media/usb6 /media/usb7"

Change that to
Code:
MOUNTPOINTS="/media/usb0"

Just tried that and did seem to work but after a reboot the hard drive does not mount at all. it will only use usb0 now when it does mount. but if not then it is not visible at all.
Seems to have a life of its own in deciding where to go!
If your hard drive is connected, can you post the output of:
Code:
sudo mount
/dev/mmcblk0p2 on / type ext4 (rw,noatime,data=ordered)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=12356k,mode=755)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev type tmpfs (rw,relatime,size=10240k,mode=755)
tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=24700k)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620)
/dev/mmcblk0p1 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=ascii,shortname=mixe​d,errors=remount-ro)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime)
/dev/sda2 on /media/usb0 type hfsplus (ro,nodev,noexec,noatime,nodiratime,sync,umask=0,uid=1001,gid=1001,nls=utf8)
Can you try:
Code:
sudo unmount /media/usb0
sudo mount -t hfsplus /dev/sda2 /media/usb0
(23rd Feb, 2013 01:55 AM)CurlyMo Wrote: [ -> ]Can you try:
Code:
sudo unmount /media/usb0/
sudo mount -t hfsplus /dev/sda2 /media/usb0


comes back 'command not found' and 'already mounted' with the second command
Sorry, misspelled the first command, it had to be:
Code:
sudo umount /media/usb0/
sudo mount -t hfsplus /dev/sda2 /media/usb0
ahhh ok. yep that worked. ejected the drive when it was not showing and then remounted it on usb0 working fine. so will I have to do that each time? do you know what the cause is?
Can you now do this:
Code:
sudo echo -e "/dev/sda2\t/media/usb0\thfsplus\tdefaults\t0\t0" >> /etc/fstab
sudo umount /media/usb0
sudo mount -a
(23rd Feb, 2013 02:16 AM)CurlyMo Wrote: [ -> ]Can you now do this:
Code:
sudo echo -e "/dev/sda2\t/media/usb0\thfsplus\tdefaults\t0\t0" >> /etc/fstab
sudo umount /media/usb0
sudo mount -a

tried 3 reboots and each time its mounting onto usb0. You, are some kind of wizard!!

Thanks! Big Grin

Just out of interest (I'm still learning all this) what did that last command do?/ tell xbian to do?
It sets a fixed mountpoint for this specific device in fstab
Ahh, this topic would be great for the wiki or faq Smile
Pages: 1 2
Reference URL's