Hard Drive Mounting
|
22nd Feb, 2013, 08:37 PM
Post: #1
|
|||
|
|||
Hard Drive Mounting
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.... |
|||
22nd Feb, 2013, 10:52 PM
Post: #2
|
|||
|
|||
Hard Drive Mounting
Can you try removing all mountpoints except usb0 from /etc/usbmount/usbmount.conf
Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
22nd Feb, 2013, 11:01 PM
Post: #3
|
|||
|
|||
RE: Hard Drive Mounting
(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!! |
|||
22nd Feb, 2013, 11:17 PM
Post: #4
|
|||
|
|||
RE: Hard Drive Mounting
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 Change that to Code: MOUNTPOINTS="/media/usb0" Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
23rd Feb, 2013, 01:43 AM
Post: #5
|
|||
|
|||
RE: Hard Drive Mounting
(22nd Feb, 2013 11:17 PM)Koenkk Wrote: Here you see this line (line 12 and 13) 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! |
|||
23rd Feb, 2013, 01:50 AM
Post: #6
|
|||
|
|||
RE: Hard Drive Mounting
If your hard drive is connected, can you post the output of:
Code: sudo mount pilight - modular domotica solution
|
|||
23rd Feb, 2013, 01:52 AM
Post: #7
|
|||
|
|||
RE: Hard Drive Mounting
/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=mixed,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) |
|||
23rd Feb, 2013, 01:55 AM
Post: #8
|
|||
|
|||
RE: Hard Drive Mounting
Can you try:
Code: sudo unmount /media/usb0 pilight - modular domotica solution
|
|||
23rd Feb, 2013, 01:59 AM
Post: #9
|
|||
|
|||
RE: Hard Drive Mounting | |||
23rd Feb, 2013, 02:04 AM
Post: #10
|
|||
|
|||
RE: Hard Drive Mounting
Sorry, misspelled the first command, it had to be:
Code: sudo umount /media/usb0/ pilight - modular domotica solution
|
|||
23rd Feb, 2013, 02:09 AM
Post: #11
|
|||
|
|||
RE: Hard Drive Mounting
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?
|
|||
23rd Feb, 2013, 02:16 AM
Post: #12
|
|||
|
|||
RE: Hard Drive Mounting
Can you now do this:
Code: sudo echo -e "/dev/sda2\t/media/usb0\thfsplus\tdefaults\t0\t0" >> /etc/fstab pilight - modular domotica solution
|
|||
23rd Feb, 2013, 02:24 AM
Post: #13
|
|||
|
|||
RE: Hard Drive Mounting
(23rd Feb, 2013 02:16 AM)CurlyMo Wrote: Can you now do this: tried 3 reboots and each time its mounting onto usb0. You, are some kind of wizard!! Thanks! Just out of interest (I'm still learning all this) what did that last command do?/ tell xbian to do? |
|||
23rd Feb, 2013, 02:27 AM
Post: #14
|
|||
|
|||
RE: Hard Drive Mounting
It sets a fixed mountpoint for this specific device in fstab
pilight - modular domotica solution
|
|||
22nd Mar, 2013, 01:30 AM
Post: #15
|
|||
|
|||
RE: Hard Drive Mounting
Ahh, this topic would be great for the wiki or faq
|
|||
« Next Oldest | Next Newest »
|
Possibly Related Threads... | |||||
Thread: | Author | Replies | Views: | Last Post | |
[PROBLEM] Xbian hangs when writing to USB hard drive | Slab | 3 | 9,545 |
3rd Mar, 2015 09:01 PM Last Post: Slab |
|
USB hard drive no longer mounting | cliverlong | 9 | 29,578 |
17th Jul, 2014 09:23 PM Last Post: cliverlong |
|
Can't add hard drive folder video sources | mp3ireland2 | 17 | 49,597 |
16th Jan, 2014 12:05 PM Last Post: mk01 |