R1SKbreaker
Posts: 9
Joined: Wed May 18, 2016 3:37 pm

How do I mount an external hard drive to Raspbian?

Fri May 27, 2016 6:18 pm

Hello everybody. So I made 2 partitions on my external HDD. One is a 200 gb exfat partition meant to copy things from my Windows pc. The other partition is formatted in ext4 and is the majority of the drive. I figure once they are both mounted I can transfer files from the exfat partition to the main ext4 partition, where it will stay.

How do I set it up to have Raspbian auto mount those 2 partitions of the hard drive when the pi boots up? I have the Pi 3 model B, by the way and am using Raspbian Jessie. The guides I googled were a little confusing and weren't accounting for 2 partitions.

User avatar
Dis93
Posts: 132
Joined: Thu Apr 07, 2016 8:30 pm
Location: Wuthering, Yorkshire

Re: How do I mount an external hard drive to Raspbian?

Fri May 27, 2016 6:27 pm

I don't remember doing anything special when I plugged my FAT/HFS+ drive into my Pi3B. I did end up reformatting the FAT to ext4 when I added SAMBA as it was less taxing.
Both partitions just mounted, as far as I remember. Are they not showing up? They are mounted in /pi/media if you're looking for them. I chose the Show mounted volumes on desktop option in the GUI so they appeared on the Jessie desktop.

stderr
Posts: 2178
Joined: Sat Dec 01, 2012 11:29 pm

Re: How do I mount an external hard drive to Raspbian?

Fri May 27, 2016 6:49 pm

R1SKbreaker wrote: How do I set it up to have Raspbian auto mount those 2 partitions of the hard drive when the pi boots up?
Are you at the command line? You may wish to turn off the automatic mounting nonsense that the default configuration in X uses, I think it's in the file manager or something like that. Apparently, as well, support for exfat needs to be added with an apt-get install. Did you do that?

I would then test at the prompt mounting them wherever I felt they should be. Once that works, then I'd add them to /etc/fstab using their UUIDs. If you have situations where you want different drives mounting on the same point at different times, I'd not use the UUIDs, even though you could set them the same, don't, rather I'd use the labels. You could have the green directory for five usb drives and the blue directory for five other ones, say, if you had two cables you could plug the drives into marked green and blue. Green and blue could just as easily be music and video.

Oh, I'm not sure that anyone else does this, but I like to mark file systems that are on drives or flash devices or the network with a prefix, I use fs. and then add whatever I was going to name it, e.g. fs.wally might be the file system on hard drive wally or the networked in file system from host wally. Of course if you put all the drives in the /media/user/whatever directories, you already know this information but I'd rather have the drives near whatever they are used for.

R1SKbreaker
Posts: 9
Joined: Wed May 18, 2016 3:37 pm

Re: How do I mount an external hard drive to Raspbian?

Fri May 27, 2016 7:08 pm

I have that setting on too. Don't have a media folder. Perhaps it is because I didn't update and upgrade Raspbian yet. I'm afraid to do so because doing that kills my Bluetooth, and I really like using my new Bluetooth keyboard with touchpad. I'll update if that's what I have to do though. More concerned about getting a hard drive auto mounted on boot than Bluetooth. I can try to fix that problem afterwards.

R1SKbreaker
Posts: 9
Joined: Wed May 18, 2016 3:37 pm

Re: How do I mount an external hard drive to Raspbian?

Fri May 27, 2016 7:14 pm

I did get the exfat fuse install to allow exfat compatibility. I ordered a new sd card that should be arriving tomorrow where I can experiment a bit more. As it is, I'm afraid of messing something up and having to reinstall the OS. I think I'll wait until tomorrow to really try to tackle the rest of this problem experimenting with the other card and getting it to work on there first.

broe23
Posts: 903
Joined: Thu Jan 28, 2016 9:35 pm
Location: Central IL
Contact: Website

Re: How do I mount an external hard drive to Raspbian?

Sat May 28, 2016 5:23 pm

I had to use the hack to set the SD card and move the OS to the hard drive. It was actually really easy.

I have a Pi 3 that runs Jesse on a 300gb drive and also have a 1TB hooked up. Just remember to get a good quality Powered USB hub. I used the Orico and a left angled USB cord to power the Pi.

The Orico does give off a Blue glow. Make sure that you dim it from keeping you up, if it is in your bedroom.
Ren: Now listen, Cadet. I've got a job for you. See this button? Ren: Don't touch it! It's the History Eraser button, you fool! Stimpy: So what'll happen? Ren: That's just it. We don't know. Maybe something bad, maybe something good.

Return to “Beginners”