Mount hard drives to a static location
|
5th Mar, 2013, 08:18 PM
Post: #1
|
|||
|
|||
Mount hard drives to a static location
hey all,
i'm trying to mount my 2 external usb hard drives to a static location, but with no luck. What i did was : Code: xbian@xbian ~ $ ls -l /dev/disk/by-uuid/ then checked : Code: xbian@xbian ~ $ cat /etc/fstab and then : Code: sudo nano /etc/fstab Code: UUID=01CDE506D37447B0 /media/usb0 vfat defaults,noatime 0 0 but it doesn't seem to be working , does anyone know where i go wrong ? Thanks ! |
|||
5th Mar, 2013, 10:46 PM
Post: #2
|
|||
|
|||
RE: Mount hard drives to a static location
- Keep in mind these drives have to be connected before boot
- Can you execute Code: sudo mount -a - This is also a nice guide: http://nwlinux.com/mount-hard-drives-in-etcfstab-using-uuid/ Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
25th Mar, 2013, 01:48 AM
Post: #3
|
|||
|
|||
RE: Mount hard drives to a static location
I am having the same issue.. I executed sudo mount -a before I started. Nothing came out. So good to get started. I first checked UUIDs and drive names (sda..):
Code: xbian@xbian ~ $ sudo fdisk -l Now I edited fstab adding these two lines: Code: UUID=8E37-FB11 /media/SmallRyan exfat defaults 0 0 and wrote it to the file. But now sudo mount -a gives me this error: Code: xbian@xbian ~ $ sudo mount -a I followed the nwlinux.com guide.. but it didn't do the trick. What did I do wrong? EDIT: I think I solved it, mounting harddisk/partition to "media/SmallRyan" means I first have to create such a folder! So executed these two commands: Code: xbian@xbian ~ $ mkdir /media/SmallRyan So now it should work. I am not sure however if both Transmission, Flexget and XBMC have writing permissions.. EDIT: I thought this would do the trick but it doesnt: Code: xbian@xbian ~ $ sudo chmod -R 777 /media/SmallRyan |
|||
25th Mar, 2013, 09:22 AM
Post: #4
|
|||
|
|||
RE: Mount hard drives to a static location
@coreflake
Try instead of using UUID to identify the disks, using "/dev/sda5" and "/dev/sdb1", if you always start the Raspy with the same drives connected it should work. To try it, just change it in the fstab file and execute the command "mount -a" @zilexa The error setting file permission is due to the file system of "SmallRyan", I recommend you change it to ext4, if it's not possible you must set permissions before mounting the drive. Add this options to fstab: Code: UUID=8E37-FB11 /media/SmallRyan exfat defaults,uid=user,gid=group 0 0 where user and group are the corresponding ones. You can also allow full access to by also adding umask=0. I also recommend you add the option noatime (no access time) it speeds up the write/read speed and it's only necessary if you need the access time for your files (which isn't usual). |
|||
25th Mar, 2013, 07:15 PM
Post: #5
|
|||
|
|||
RE: Mount hard drives to a static location
Trinket thanks for your help and tips. The reason I created one (small, 32GB) eXFat partition is for the theoretical situation that I want to connect my USB drive directly to my Mac or Win laptop because I need to transfer a big file and take it to a friend or somethin. Both dont support EXT4. Also, I can copy necessary files via XBMC File Manager to the eXFat partition and connect it to a Mac or Win pc.
It's just a safety measure I'd like to have. If I never use it and the EXT4 partition is filling up, I will delete the eXFAT partition and resize the EXT4 partition. |
|||
14th Apr, 2013, 01:46 AM
Post: #6
|
|||
|
|||
RE: Mount hard drives to a static location
Just a follow up question about the best way to do static mount for an EXFAT partition:
@Trinkett did you mean I have to fill in an actual username and groupname? |
|||
14th Apr, 2013, 04:30 AM
Post: #7
|
|||
|
|||
RE: Mount hard drives to a static location
Yep, I meant that! fill "user" and "group" with the ones you wish to grant access to! It can be either with the uid,gid (numbers) or just the name of them!
|
|||
« Next Oldest | Next Newest »
|