sunilh121
Posts: 13
Joined: Mon Dec 07, 2015 7:46 pm

Need help mounting an external HDD

Mon Dec 07, 2015 7:49 pm

I have a 1tb seagate drive but I am having trouble mounting it. I have tried looking for solutions but can not follow them properly.
I have added this command to the terminal and it shows my external HDD ( sudo fdisk -l)

Could you please get my external hard drive mounted to the PI 2

fruitoftheloom
Posts: 23549
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Need help mounting an external HDD

Tue Dec 08, 2015 6:21 am

sunilh121 wrote:I have a 1tb seagate drive but I am having trouble mounting it. I have tried looking for solutions but can not follow them properly.
I have added this command to the terminal and it shows my external HDD ( sudo fdisk -l)

Could you please get my external hard drive mounted to the PI 2
Presumably it is a 2.5" USB Drive ?

Presumably you have a good quality 5V 2A PSU ?

If so then add following to config.txt

Code: Select all

max_usb_current=1
https://projects.drogon.net/testing-set ... erry-pi-b/
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot) RaspiOS64 ARM64
Asus ChromeBox 3 Celeron is my other computer...

sunilh121
Posts: 13
Joined: Mon Dec 07, 2015 7:46 pm

Re: Need help mounting an external HDD

Tue Dec 08, 2015 7:03 am

When I type in max_USB_current=1 nothing happens

fruitoftheloom
Posts: 23549
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Need help mounting an external HDD

Tue Dec 08, 2015 8:50 am

sunilh121 wrote:When I type in max_USB_current=1 nothing happens
You spelt it wrong, please read carefully what I actually wrote, did you read the link I posted ?

You add the line to the config.txt file then save the file and reboot the RPi

https://www.raspberrypi.org/documentati ... fig-txt.md

https://www.raspberrypi.org/help/faqs/#power
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot) RaspiOS64 ARM64
Asus ChromeBox 3 Celeron is my other computer...

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

Re: Need help mounting an external HDD

Tue Dec 08, 2015 9:06 am

sudo fdsik -l
will show you what is connected
depending on what it shows then
sudo mount /dev/sda1 /mnt
will mount it
you make want to mount it else where instead
i.e.
sudo mkdir /mnt/movies
sudo mount /dev/sda1 /mnt/movoes
also it depends if it has been partitioned and or formatted
sudo fdisk /dev/sda
will get you to the partition menu - be careful as this will trash anything on it if you do it wrong
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

sunilh121
Posts: 13
Joined: Mon Dec 07, 2015 7:46 pm

Re: Need help mounting an external HDD

Tue Dec 08, 2015 12:31 pm

fruitoftheloom wrote:
sunilh121 wrote:When I type in max_USB_current=1 nothing happens
You spelt it wrong, please read carefully what I actually wrote, did you read the link I posted ?

You add the line to the config.txt file then save the file and reboot the RPi

https://www.raspberrypi.org/documentati ... fig-txt.md

https://www.raspberrypi.org/help/faqs/#power
sorry just got the raspberry Pi 2. (Beginner noob)

How do I configure the /boot/config.txt.?

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

Re: Need help mounting an external HDD

Tue Dec 08, 2015 12:46 pm

Hold [SHIFT] during boot and NOOBS will enter the recovery system. The recovery system has a config editor.

If you're not using NOOBS then open a command window (LXTerminal) and use sudo nano /boot/config.txt to edit your config.
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.

sunilh121
Posts: 13
Joined: Mon Dec 07, 2015 7:46 pm

Re: Need help mounting an external HDD

Tue Dec 08, 2015 7:16 pm

Thanks got the usb_current=1 into the /boot/config file.

when I try to mount my external drive it comes with a message saying

mount is denied because the NTFS volume is already excusively opened. The volume may be already mounted, or another software may use it which could identified for example by help of the 'fuser' command.

I tried looking for it on file manager but was not there.

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

Re: Need help mounting an external HDD

Tue Dec 08, 2015 10:52 pm

You need to add

Code: Select all

max_usb_current=1
You can check whether it's set by reading the value for GPIO38
gpio -g read 38 # using WiringPi's gpio command
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.

fruitoftheloom
Posts: 23549
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Need help mounting an external HDD

Tue Dec 08, 2015 10:53 pm

DougieLawson wrote:You need to add

Code: Select all

max_usb_current=1
Yep requested that was undertaken in first response :?
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot) RaspiOS64 ARM64
Asus ChromeBox 3 Celeron is my other computer...

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

Re: Need help mounting an external HDD

Tue Dec 08, 2015 11:12 pm

The NTFS drive needs to be repaired in a Windows system to remove the "in-use" flags.
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.

sunilh121
Posts: 13
Joined: Mon Dec 07, 2015 7:46 pm

Re: Need help mounting an external HDD

Wed Dec 09, 2015 10:32 am

Got my external drive to mount to the PI but messed it up. I learning by making mistakes. The PI 2 goes into emergency mode when booting up. the last file I changed was /ect/fstab. but now when I type in the code if doesn't open it up

Code: Select all

sudo nano /ect/fstab

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

Re: Need help mounting an external HDD

Wed Dec 09, 2015 10:36 am

Warning: pet peeve alert.

It's etc (from Latin et cetera) not "ect".
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.

sunilh121
Posts: 13
Joined: Mon Dec 07, 2015 7:46 pm

Re: Need help mounting an external HDD

Wed Dec 09, 2015 10:44 am

Thanks. Haven't done programming for time. The last programming language I learnt was C++ about 2 years ago. :)

Return to “Troubleshooting”