VIIDO
Posts: 2
Joined: Tue Jan 07, 2014 5:51 pm

Mount Read and Write Fat32 1TB drive HELP

Tue Jan 07, 2014 10:08 pm

Hello,



I have a model B Raspberry pi, powered USB Hub connected to a 1TB external Hdd. I have formatted and imaged both Raspbian and Raspbmc. Both operating systems are working great. I have installed transmission-daemon numerous times on fresh installs so needless to say I have that down. I know my way around the nano settings.json setup of the client.



Here is my trouble... My Hard drive is not allowing the pi to mount it with read and write permissions and it it is its not letting transmission write to it. I need a step by step from install to torrent guide. I have recieved all of the info I already have from 30+ different sources and all of these different sources seem to have a different way of doing things that ultimately DONT work. And if they do there is a step that is missing that will not allow me to torrent to the Hdd. The attached image is the error that i am getting. :roll:

sdjf
Posts: 1395
Joined: Fri Mar 16, 2012 5:20 am
Location: California
Contact: Website

Re: Mount Read and Write Fat32 1TB drive HELP

Wed Jan 08, 2014 10:01 am

You did not include any error output, but if you cannot write to a device, there are generally two basic reasons:

1. you do not have permission (post output of ls -l for the device)

2. the file system might be corrupt and/or need repair or there might not be a file system on the device.

possible diagnostics for the latter would be to see if there is a file system with parted, gparted, or fdisk to list the partition table and file systems.

and to run fsck on it if there is a file system.

does it mount at all? what command did you enter when you tried to mount it?
FORUM TIP: To view someone's posting history, sign in, click on their user name, then on "Search User's Posts." || Running ArchLinuxArm on Model 2B and 512MB Model B

User avatar
RaTTuS
Posts: 10559
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Mount Read and Write Fat32 1TB drive HELP

Wed Jan 08, 2014 10:06 am

sudo fdisk -l
dmesg
may help
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

johndough
Posts: 254
Joined: Sun Jan 13, 2013 2:00 pm

Re: Mount Read and Write Fat32 1TB drive HELP

Wed Jan 08, 2014 10:27 am

Hi

A 1 terabyte FAT32 drive?

Perhaps use NTFS, or better still a linux type like EXT4.

VIIDO
Posts: 2
Joined: Tue Jan 07, 2014 5:51 pm

Re: Mount Read and Write Fat32 1TB drive HELP

Wed Jan 08, 2014 5:09 pm

Yes Fat 32 because i will be using it with my ps3. Fat32 only Ps4 is also a fat32 device only.

this device is found when I search for it it is /sda1 formatted in 1 partition. everything is fine in that sense it is discovered i don't have anything on the drive so I am using a freshly formatted drive for each of the attempts.

driftwork
Posts: 2
Joined: Tue Feb 11, 2014 4:03 pm

Re: Mount Read and Write Fat32 1TB drive HELP

Tue Feb 11, 2014 4:17 pm

I am in the exact same boat.

I'm a Newb

I have successfully set up my new PI as a Torrent Seed-Box using Deluge and following some easily understood instructions. I was quite surprised that everything has actually worked.

I can port into the Pi/ Deluge thin-client from my network and from an outside web UI and using Transdroid.

I've also managed to set up ftp access to the PI.

I have also managed to mount an old FAT32 40gig drive I had lying around to the PI.

I can list files on the drive and I can even ftp into the drive with 'read' privileges and I can transfer files.

I cannot however 'write' to the drive.

I cannot write to it using my ftp client. (I cannot make a directory for example)

I cannot write to it using Deluge to route my torrent to any directories on the drive either.

Does anyone have any ideas?

Its the very last piece of my PI project.

Thanks in advance.

driftwork
Posts: 2
Joined: Tue Feb 11, 2014 4:03 pm

Re: Mount Read and Write Fat32 1TB drive HELP

Thu Feb 13, 2014 5:32 am

I managed to find a reference to mounting FAT32 with read and write privileges.

$ sudo mount -t vfat -o uid=pi,gid=pi /dev/sda1 /media/usbhdd

(Change 'sda1' to whatever your drive name is and '/media/usbhdd' to where-ever your mount-point is)

User avatar
socialdefect
Posts: 110
Joined: Mon Jun 25, 2012 9:02 pm
Location: Tilburg, the Netherlands
Contact: Website

Re: Mount Read and Write Fat32 1TB drive HELP

Thu Feb 13, 2014 5:55 am

driftwork wrote:I managed to find a reference to mounting FAT32 with read and write privileges.

$ sudo mount -t vfat -o uid=pi,gid=pi /dev/sda1 /media/usbhdd

(Change 'sda1' to whatever your drive name is and '/media/usbhdd' to where-ever your mount-point is)
And if you want to make this permanent add the disk to /etc/fstab like this:

Code: Select all

/dev/sda1       /media/usbhdd      vfat       auto,user,rw,uid=pi,gid=pi   0  0
Execute:

Code: Select all

sudo mount -a
To see if there are any errors while mounting.


Manually mount or re-mount a partition:

Code: Select all

sudo mount -t vfat -o rw /dev/sda1 /media/usbhdd
sudo mount -o remount,rw /media/usbhdd
== If it's not broke... I'm not done fixing it! ==

User avatar
DougieLawson
Posts: 39126
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Mount Read and Write Fat32 1TB drive HELP

Thu Feb 13, 2014 10:25 am

socialdefect wrote:
And if you want to make this permanent add the disk to /etc/fstab like this:

Code: Select all

/dev/sda1       /media/usbhdd      vfat       auto,user,rw,uid=pi,gid=pi   0  0
Execute:

Code: Select all

sudo mount -a
To see if there are any errors while mounting.
It's better to use the UUID for the device, then it doesn't matter if it is /dev/sda1 or /dev/sdq1.

blkid gives this:

Code: Select all

root@pi /dev # blkid
/dev/mmcblk0p1: SEC_TYPE="msdos" LABEL="boot" UUID="2654-BFC0" TYPE="vfat"
/dev/mmcblk0p2: UUID="548da502-ebde-45c0-9ab2-de5e2431ee0b" TYPE="ext4"
/dev/sda1: SEC_TYPE="msdos" UUID="E0FD-1813" TYPE="vfat"
root@pi /dev #
So /etc/fstab gets this:

Code: Select all

UUID=E0FD-1813 /media/usbhdd  vfat       auto,user,rw,uid=pi,gid=pi   0  0
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Return to “Beginners”