Mounting NTFS external HDD
Hi
I am now the proud owner of a Pi to replace an old Windows based media centre connected to my lounge PC. I have successfully installed Kodi and wish to add all the movies I have on a Seagate 1TB USB HDD. In Windows I have determined that this has the NTFS file structure.
I have looked at the many tutorials online regarding mounting the drive, which is all new to me. I have run the following as advised;
sudo apt-get install ntfs-3g
When I run 'blkid' the drive is not listed under /dev/sda1 as all the tutorials suggest. It is nowhere to be seen and therefore when i do...
'sudo mount -t ntfs /dev/sda1 /media/usb'
...the process eventually finishes but I do not think anything has happened. If I can get it to mount, and be seen, I assume that i need to add the following line into nano/etc/fstab?
/dev/sda1 /media/usb ntfs defaults,umask=000
Any help for a complete novice would be appreciated. Thanks
I am now the proud owner of a Pi to replace an old Windows based media centre connected to my lounge PC. I have successfully installed Kodi and wish to add all the movies I have on a Seagate 1TB USB HDD. In Windows I have determined that this has the NTFS file structure.
I have looked at the many tutorials online regarding mounting the drive, which is all new to me. I have run the following as advised;
sudo apt-get install ntfs-3g
When I run 'blkid' the drive is not listed under /dev/sda1 as all the tutorials suggest. It is nowhere to be seen and therefore when i do...
'sudo mount -t ntfs /dev/sda1 /media/usb'
...the process eventually finishes but I do not think anything has happened. If I can get it to mount, and be seen, I assume that i need to add the following line into nano/etc/fstab?
/dev/sda1 /media/usb ntfs defaults,umask=000
Any help for a complete novice would be appreciated. Thanks
Re: Mounting NTFS external HDD
First of all: if you intend to use the HD with the Pi (or other Linux system) and the drive is currently empty I would convert it to ext4.
It makes life easier *and* performance is significantly better.
Does the drive show up with the command 'lsusb'?
Is the drive connected to a powered USB hub or directly to the Pi?
What model Pi do you have?
If connected to the Pi and you have a model B+ or Pi2B then add
to /boot/config.txt, reboot and check again.
It makes life easier *and* performance is significantly better.
Does the drive show up with the command 'lsusb'?
Is the drive connected to a powered USB hub or directly to the Pi?
What model Pi do you have?
If connected to the Pi and you have a model B+ or Pi2B then add
Code: Select all
max_usb_current=1
Re: Mounting NTFS external HDD
Thanks for reply
The HDD used to be connected to the Windows pc so has my entire movie, music and photo collection on and therefore needs to remain as NTFS.
I have just tried 'lsusb' and the following line is listed;
Bus 001 Device 005: ID 0bc2:3312 Seagate RSS LLC
Therefore I assume that this is the Seagate HD?
The HDD used to be connected to the Windows pc so has my entire movie, music and photo collection on and therefore needs to remain as NTFS.
I have just tried 'lsusb' and the following line is listed;
Bus 001 Device 005: ID 0bc2:3312 Seagate RSS LLC
Therefore I assume that this is the Seagate HD?
Re: Mounting NTFS external HDD
Forgot to mention...
The HD is connected directly to the Pi
The Pi is a Pi2 Model B 1GB
thanks
The HD is connected directly to the Pi
The Pi is a Pi2 Model B 1GB
thanks
Re: Mounting NTFS external HDD
yes, it looks as if your HD is connected and recognised.
Can you post the output of
It should list the partitions on all drives.
Can you post the output of
Code: Select all
sudo fdisk -l
Re: Mounting NTFS external HDD
When i do 'sudo fdisk -l' the following is shown on the bottom line
/dev/sda1 2048 3907029163 1953513558 7 HPFS/NTFS/exFAT
/dev/sda1 2048 3907029163 1953513558 7 HPFS/NTFS/exFAT
Re: Mounting NTFS external HDD
Also, how do I add the 'max_usb_current=1' to the '/boot.config.txt' as recommended? What does this do?
-
- Posts: 27225
- Joined: Tue Mar 25, 2014 12:40 pm
Re: Mounting NTFS external HDD
https://projects.drogon.net/testing-set ... berry-pi-bTheBod wrote:Also, how do I add the 'max_usb_current=1' to the '/boot.config.txt' as recommended? What does this do?
Take what I advise as advice not the utopian holy grail, and it is gratis !!
Re: Mounting NTFS external HDD
Thanks, but how do I mount the HD? I am a complete novice so nice easy steps would be appreciated 

Re: Mounting NTFS external HDD
That looks good.TheBod wrote:When i do 'sudo fdisk -l' the following is shown on the bottom line
/dev/sda1 2048 3907029163 1953513558 7 HPFS/NTFS/exFAT
IIRC the line in /etc/fstab should look like this
Code: Select all
/dev/sda1 /media/usb ntfs-3g rw,default 0 0
Code: Select all
sudo chown pi:pi /media/usb
Re: Mounting NTFS external HDD
OK, that is completed and I have rebooted.
When I type 'lsusb' the HD is still showing.
When i run 'sudo fdisk -l' the /dev/sda1 line is still present.
Do I assume that the HD is mounting automatically upon startup?
When I type 'lsusb' the HD is still showing.
When i run 'sudo fdisk -l' the /dev/sda1 line is still present.
Do I assume that the HD is mounting automatically upon startup?
Re: Mounting NTFS external HDD
You can check it with a simpleTheBod wrote:Do I assume that the HD is mounting automatically upon startup?
Code: Select all
mount
And
should of course show the root of your HDls -a /media/usb
If it doesn't you'll have to check the logs.
Re: Mounting NTFS external HDD
Great, when typing 'mount' I get a list of different items but none of them are /dev/sda1 or any mention of Seagate?
Also, when I do 'ls -a /media/usb' I get '. ..' Is this correct?
Also, when I do 'ls -a /media/usb' I get '. ..' Is this correct?
Re: Mounting NTFS external HDD
and finally, how will I be able to find the content of the HD when in Kodi? I assume that it will not be easy like E:\ when in Windows
Many thanks
Many thanks
Re: Mounting NTFS external HDD
It's not mounted then. Check the logs, e.g. withTheBod wrote:Great, when typing 'mount' I get a list of different items but none of them are /dev/sda1 or any mention of Seagate?
Also, when I do 'ls -a /media/usb' I get '. ..' Is this correct?
Code: Select all
dmesg | less
You could also try to mount it manually with
Code: Select all
sudo mount -t ntfs-3g /dev/sda1 /meda/usb
Re: Mounting NTFS external HDD
Hi, yes i did install the ntfs package but somehow when running 'sudo mount ......' it said 'mount: unknown filesystem tyoe ntfs-3g'
I have now reloaded the ntfs package and repeated 'sudo mount.......'
Taking a long time for the pi@raspberrypi to show
I have now reloaded the ntfs package and repeated 'sudo mount.......'
Taking a long time for the pi@raspberrypi to show
Re: Mounting NTFS external HDD
Getting there. When 'mount' the last line is
/dev/sda1 on /media/usb type fuseblk ...etc etc
Does this sound correct?
Update, when 'ls -a /media/usb' all the folders with movies etc are now showing in green. Success?
/dev/sda1 on /media/usb type fuseblk ...etc etc
Does this sound correct?
Update, when 'ls -a /media/usb' all the folders with movies etc are now showing in green. Success?
Re: Mounting NTFS external HDD
Looks like it is now mounted ok (thank you). Any idea on the required file location that Kodi XBMC would find the HD at?
Re: Mounting NTFS external HDD
That looks ok to me.TheBod wrote:Getting there. When 'mount' the last line is
/dev/sda1 on /media/usb type fuseblk ...etc etc
Does this sound correct?
Update, when 'ls -a /media/usb' all the folders with movies etc are now showing in green. Success?
But if this happens with the manual mount then there must be something wrong with the auto mount at boot.
I would check with dmesg at which point
IIRC there could be timing problems on the Pi2B, meaning that fstab is processed before the drive is available for mounting.
Re: Mounting NTFS external HDD
When adding a media source you can add '/media/usb' manually or use 'browse', then select 'home folder' and navigate from there to /media/usbTheBod wrote:Looks like it is now mounted ok (thank you). Any idea on the required file location that Kodi XBMC would find the HD at?
Re: Mounting NTFS external HDD
If you have a Pi2B then try making this change in /boot/cmdline.txtDirkS wrote:That looks ok to me.TheBod wrote:Getting there. When 'mount' the last line is
/dev/sda1 on /media/usb type fuseblk ...etc etc
Does this sound correct?
Update, when 'ls -a /media/usb' all the folders with movies etc are now showing in green. Success?
But if this happens with the manual mount then there must be something wrong with the auto mount at boot.
I would check with dmesg at which point
IIRC there could be timing problems on the Pi2B, meaning that fstab is processed before the drive is available for mounting.
Code: Select all
sudo nano /boot/cmdline.txt
Code: Select all
rootdelay=5
Re: Mounting NTFS external HDD
Made the change to the cmdline and rebooted. Now getting an error
'udevd[214]: timeout: killing '/sbin/blkid -o udev -p /dev/sda1 [643]'
which keeps cycling through and not finishing.
any ideas?
'udevd[214]: timeout: killing '/sbin/blkid -o udev -p /dev/sda1 [643]'
which keeps cycling through and not finishing.
any ideas?
Re: Mounting NTFS external HDD
Not really, apart from undoing the modification.TheBod wrote:Made the change to the cmdline and rebooted. Now getting an error
'udevd[214]: timeout: killing '/sbin/blkid -o udev -p /dev/sda1 [643]'
any ideas?
Re: Mounting NTFS external HDD
Unfortunately I cannot get the to pi@raspberrypi command prompt, just keeps cycling through the time out issue. When rebooted it starts this process again following
'Waiting for /dev to be fully populated….. [45.409005] usb `-`.5; reset high-speed usb number to 6'
Update, eventually stopped the cycle so removed the last code and rebooted, all back to normal
'sudo fdisk -l' still shows the 'Disk /dev/sda'
'lsusb' still shows the Seagate RSS LLc
'Waiting for /dev to be fully populated….. [45.409005] usb `-`.5; reset high-speed usb number to 6'
Update, eventually stopped the cycle so removed the last code and rebooted, all back to normal
'sudo fdisk -l' still shows the 'Disk /dev/sda'
'lsusb' still shows the Seagate RSS LLc
Re: Mounting NTFS external HDD
Ok, update on the situation.
When I reboot and type 'ls -a /media/usb' the result is ' . .. ' so i am assuming that the HD is not mounted.
If I do 'sudo mount -t ntfs-3g /dev/sda1 /media/usb' and then repeat 'ls -a /media/usb' it show displays ' . .. '
I then do 'sudo apt-get install ntfs-3g' and then repeat 'ls -a /media/usb' and the folders within the HD are now shown, highlighted green.
If I then do 'mount' it does show /dev/sda1 as the last item so I therefore assume that the HD is mounted correctly.
Within 'sudo nano /etc/fstab' I have the following line;
/dev/sda1 /media/usb ntfs-3g rw,default 0 0
After a reboot back into Raspian, when I type 'ls -a /media/usb' it displays ' . .. '
I then have to repeat the entire process again, even 'sudo apt-get install ntfs-3g'
This does not seem correct? Help please
When I reboot and type 'ls -a /media/usb' the result is ' . .. ' so i am assuming that the HD is not mounted.
If I do 'sudo mount -t ntfs-3g /dev/sda1 /media/usb' and then repeat 'ls -a /media/usb' it show displays ' . .. '
I then do 'sudo apt-get install ntfs-3g' and then repeat 'ls -a /media/usb' and the folders within the HD are now shown, highlighted green.
If I then do 'mount' it does show /dev/sda1 as the last item so I therefore assume that the HD is mounted correctly.
Within 'sudo nano /etc/fstab' I have the following line;
/dev/sda1 /media/usb ntfs-3g rw,default 0 0
After a reboot back into Raspian, when I type 'ls -a /media/usb' it displays ' . .. '
I then have to repeat the entire process again, even 'sudo apt-get install ntfs-3g'
This does not seem correct? Help please
