Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

Hard Drive Mounting
Thank you for your donation

Pages (2): 1 2 Next »
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Hard Drive Mounting
22nd Feb, 2013, 08:37 PM
Post: #1
Grooveattack Offline
Registered
Posts: 7
Joined: Feb 2013
Reputation: 0
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....
Find all posts by this user
Quote this message in a reply
22nd Feb, 2013, 10:52 PM
Post: #2
Koenkk Offline
Registered
Posts: 1,238
Joined: Dec 2012
Reputation: 112
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
Find all posts by this user
Quote this message in a reply
22nd Feb, 2013, 11:01 PM
Post: #3
Grooveattack Offline
Registered
Posts: 7
Joined: Feb 2013
Reputation: 0
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!!
Find all posts by this user
Quote this message in a reply
22nd Feb, 2013, 11:17 PM
Post: #4
Koenkk Offline
Registered
Posts: 1,238
Joined: Dec 2012
Reputation: 112
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
             /media/usb4 /media/usb5 /media/usb6 /media/usb7"

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
Find all posts by this user
Quote this message in a reply
23rd Feb, 2013, 01:43 AM
Post: #5
Grooveattack Offline
Registered
Posts: 7
Joined: Feb 2013
Reputation: 0
RE: Hard Drive Mounting
(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!
Find all posts by this user
Quote this message in a reply
23rd Feb, 2013, 01:50 AM
Post: #6
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: Hard Drive Mounting
If your hard drive is connected, can you post the output of:
Code:
sudo mount

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
23rd Feb, 2013, 01:52 AM
Post: #7
Grooveattack Offline
Registered
Posts: 7
Joined: Feb 2013
Reputation: 0
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=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)
Find all posts by this user
Quote this message in a reply
23rd Feb, 2013, 01:55 AM
Post: #8
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: Hard Drive Mounting
Can you try:
Code:
sudo unmount /media/usb0
sudo mount -t hfsplus /dev/sda2 /media/usb0

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
23rd Feb, 2013, 01:59 AM
Post: #9
Grooveattack Offline
Registered
Posts: 7
Joined: Feb 2013
Reputation: 0
RE: Hard Drive Mounting
(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
Find all posts by this user
Quote this message in a reply
23rd Feb, 2013, 02:04 AM
Post: #10
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: Hard Drive Mounting
Sorry, misspelled the first command, it had to be:
Code:
sudo umount /media/usb0/
sudo mount -t hfsplus /dev/sda2 /media/usb0

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
23rd Feb, 2013, 02:09 AM
Post: #11
Grooveattack Offline
Registered
Posts: 7
Joined: Feb 2013
Reputation: 0
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?
Find all posts by this user
Quote this message in a reply
23rd Feb, 2013, 02:16 AM
Post: #12
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: Hard Drive Mounting
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

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
23rd Feb, 2013, 02:24 AM
Post: #13
Grooveattack Offline
Registered
Posts: 7
Joined: Feb 2013
Reputation: 0
RE: Hard Drive Mounting
(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?
Find all posts by this user
Quote this message in a reply
23rd Feb, 2013, 02:27 AM
Post: #14
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: Hard Drive Mounting
It sets a fixed mountpoint for this specific device in fstab

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
22nd Mar, 2013, 01:30 AM
Post: #15
zilexa Offline
Registered
Posts: 231
Joined: Feb 2013
Reputation: 9
RE: Hard Drive Mounting
Ahh, this topic would be great for the wiki or faq Smile
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Pages (2): 1 2 Next »
Post Reply 


Possibly Related Threads...
Thread: Author Replies Views: Last Post
  [PROBLEM] Xbian hangs when writing to USB hard drive Slab 3 10,105 3rd Mar, 2015 09:01 PM
Last Post: Slab
  USB hard drive no longer mounting cliverlong 9 30,901 17th Jul, 2014 09:23 PM
Last Post: cliverlong
  Can't add hard drive folder video sources mp3ireland2 17 51,684 16th Jan, 2014 12:05 PM
Last Post: mk01

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 15th May, 2025, 10:22 PM Powered By MyBB, © 2002-2025 MyBB Group.