when i connect my ntfs externally powered HDD it works perfectly
with sudo mount -o /dev/sda2 /media/HDD
so if my hdd has two partitions, so both partitions will be in /dev/sda2 or both will be different ?
and if we mount in /media/HDD so will it have two different folders for two different partitions in /media/HDD folder ?
-
- Posts: 102
- Joined: Thu Jan 07, 2016 1:28 pm
Re: HDD partitions
The device is sda, the partitions will be sda1, sda2, etc. Each partition will have to have it's own mount folder.
So you could mount sda1 to /media/HDD1, and mount sda2 to /media/HDD2
So you could mount sda1 to /media/HDD1, and mount sda2 to /media/HDD2
-
- Posts: 102
- Joined: Thu Jan 07, 2016 1:28 pm
Re: HDD partitions
how do i recognise which partition is which ?JimmyN wrote:The device is sda, the partitions will be sda1, sda2, etc. Each partition will have to have it's own mount folder.
So you could mount sda1 to /media/HDD1, and mount sda2 to /media/HDD2
if i buy a SATA 160 gb internal hdd and use a usb converter to attach it to my pi, what would be the best suggested filesystem for it ? ntfs ?
Re: HDD partitions
Ext4 unless you have a specific need to connect the drive directly to a Windows PC for any reason.
Pi2B Mini-PC/Media Centre: ARM=1GHz (+3), Core=500MHz, v3d=500MHz, h264=333MHz, RAM=DDR2-1200 (+6/+4/+4+schmoo). Sandisk Ultra HC-I 32GB microSD card on '50=100' OCed slot (42MB/s read) running Raspbian/KODI16, Seagate 3.5" 1.5TB HDD mass storage.
-
- Posts: 102
- Joined: Thu Jan 07, 2016 1:28 pm
Re: HDD partitions
ya regularly i will keep connecting it to my mac and windows and raspi... so ext4 or ntfs ? also suggest me a good and cheap sata and sata power to usb converter (2 in 1)GTR2Fan wrote:Ext4 unless you have a specific need to connect the drive directly to a Windows PC for any reason.
Re: HDD partitions
NTFS is the only easy option then. It does slow transfers down with a Pi as NTFS support is all handled by the CPU via a software driver with no hardware acceleration. That's not necessarily a problem though as I have the same kind of setup here for the same reason, and Full-HD movies still play glitch-free from the HDD on the Pi in OMXPlayer and OSMC.
EDIT: This would work fine for the Pi and the PC, but I have no idea what NTFS support is like in OSX nowadays.
EDIT: This would work fine for the Pi and the PC, but I have no idea what NTFS support is like in OSX nowadays.
Pi2B Mini-PC/Media Centre: ARM=1GHz (+3), Core=500MHz, v3d=500MHz, h264=333MHz, RAM=DDR2-1200 (+6/+4/+4+schmoo). Sandisk Ultra HC-I 32GB microSD card on '50=100' OCed slot (42MB/s read) running Raspbian/KODI16, Seagate 3.5" 1.5TB HDD mass storage.
-
- Posts: 102
- Joined: Thu Jan 07, 2016 1:28 pm
Re: HDD partitions
i am already using a external seagate ntfs 1tb drive. OSX does support itGTR2Fan wrote:NTFS is the only easy option then. It does slow transfers down with a Pi as NTFS support is all handled by the CPU via a software driver with no hardware acceleration. That's not necessarily a problem though as I have the same kind of setup here for the same reason, and Full-HD movies still play glitch-free from the HDD on the Pi in OMXPlayer and OSMC.
EDIT: This would work fine for the Pi and the PC, but I have no idea what NTFS support is like in OSX nowadays.
-
- Posts: 102
- Joined: Thu Jan 07, 2016 1:28 pm
Re: HDD partitions
As we know, we can use a regular samsung adapter to power a external seagate hdd.
can we use the same samsung (mobile phone(android)) adaptor to power a external hdd (sata) rather than buying new power supply adapter? (using a adapter like : http://www.amazon.in/Cable-Hunter-USB-2 ... 46ec875759 )
can we use the same samsung (mobile phone(android)) adaptor to power a external hdd (sata) rather than buying new power supply adapter? (using a adapter like : http://www.amazon.in/Cable-Hunter-USB-2 ... 46ec875759 )
Re: HDD partitions
GTR2Fan,
As far as I know there is no hardware acceleration for any file system under any operating system ever. It's all done in the OS software.
Sure there is hardware acceleration in the block level drivers. Like Direct Memory Access (DMA). But those are the same for all block devices, no matter what file system sits on top of that.
Or, am I missing a point here?
Could you elaborate on that?It does slow transfers down with a Pi as NTFS support is all handled by the CPU via a software driver with no hardware acceleration.
As far as I know there is no hardware acceleration for any file system under any operating system ever. It's all done in the OS software.
Sure there is hardware acceleration in the block level drivers. Like Direct Memory Access (DMA). But those are the same for all block devices, no matter what file system sits on top of that.
Or, am I missing a point here?
Memory in C++ is a leaky abstraction .
Re: HDD partitions
I'm probably talking poo regarding the reasons then, but NTFS is woefully slow compared to Ext4 on a Pi.
Pi2B Mini-PC/Media Centre: ARM=1GHz (+3), Core=500MHz, v3d=500MHz, h264=333MHz, RAM=DDR2-1200 (+6/+4/+4+schmoo). Sandisk Ultra HC-I 32GB microSD card on '50=100' OCed slot (42MB/s read) running Raspbian/KODI16, Seagate 3.5" 1.5TB HDD mass storage.
Re: HDD partitions
Yeah, well, I cannot imagine why anyone is using NTFS on a Linux machine.
It might be very useful to salvage data from some disks from some legacy OS I guess.
It might be very useful to salvage data from some disks from some legacy OS I guess.
Memory in C++ is a leaky abstraction .
Re: HDD partitions
The usual reason is for an external disk that is shared between a Linux system and another OS that won't read Linux file systems.Heater wrote:Yeah, well, I cannot imagine why anyone is using NTFS on a Linux machine.
It might be very useful to salvage data from some disks from some legacy OS I guess.
-
- Posts: 102
- Joined: Thu Jan 07, 2016 1:28 pm
Re: HDD partitions
so if i take a 160 gb sata hdd,rpdom wrote:The usual reason is for an external disk that is shared between a Linux system and another OS that won't read Linux file systems.Heater wrote:Yeah, well, I cannot imagine why anyone is using NTFS on a Linux machine.
It might be very useful to salvage data from some disks from some legacy OS I guess.
partion it into two, 80gb ntfs and 80gb ext4
and install windows in the 80gb and use 80gb for pi then will it work ?
- DougieLawson
- Posts: 40495
- Joined: Sun Jun 16, 2013 11:19 pm
- Location: A small cave in deepest darkest Basingstoke, UK
- Contact: Website Twitter
Re: HDD partitions
Your Raspberry Pi running Linux can mount both 80GB partitions, Windows (without additional software) can only mount the NTFS partition.femindharamshi10 wrote: so if i take a 160 gb sata hdd,
partion it into two, 80gb ntfs and 80gb ext4
and install windows in the 80gb and use 80gb for pi then will it work ?
Any language using left-hand whitespace for syntax is ridiculous
Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.
Any requirement to use a crystal ball or mind reading will result in me ignoring your question.
Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.
Any requirement to use a crystal ball or mind reading will result in me ignoring your question.
-
- Posts: 102
- Joined: Thu Jan 07, 2016 1:28 pm
Re: HDD partitions
If i buy a sata 250 gb hdd, and use a converter like this : http://www.ebay.com/itm/SATA-7-15-22-Pi ... SwgQ9VgpB0DougieLawson wrote:Your Raspberry Pi running Linux can mount both 80GB partitions, Windows (without additional software) can only mount the NTFS partition.femindharamshi10 wrote: so if i take a 160 gb sata hdd,
partion it into two, 80gb ntfs and 80gb ext4
and install windows in the 80gb and use 80gb for pi then will it work ?
then one usb (data) will be connected to rpi and other usb (for power) if i connect to a samsung mobile phone adapter (i have the one which comes with galaxy s6 edge) so will the hdd be powered or do i have to buy the 12v adapter ? becuase i am using my external hdd on this : http://www.ebay.in/itm/like/18198591885 ... e=Sok-Goog so it works on that same samsung adapter. so will the sata drive also work ?
- DougieLawson
- Posts: 40495
- Joined: Sun Jun 16, 2013 11:19 pm
- Location: A small cave in deepest darkest Basingstoke, UK
- Contact: Website Twitter
Re: HDD partitions
You can run a 2.5" HDD from a B+ or 2B by simply adding to your config.txt
Code: Select all
max_usb_current=1
Any language using left-hand whitespace for syntax is ridiculous
Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.
Any requirement to use a crystal ball or mind reading will result in me ignoring your question.
Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.
Any requirement to use a crystal ball or mind reading will result in me ignoring your question.
Re: HDD partitions
Out of necessity mostly. Bear in mind that the 1TB+ (or whatever) of data on an Ext4 formatted HDD becomes completely inaccessible if the Pi dies or is temporarily out of commission for anyone who doesn't have access to another machine capable of reading it. Given that the current market share for Linux on desktops and laptops is around 1.5%, a typical Pi owner is probably highly unlikely to have access to another one.Heater wrote:Yeah, well, I cannot imagine why anyone is using NTFS on a Linux machine.
Pi2B Mini-PC/Media Centre: ARM=1GHz (+3), Core=500MHz, v3d=500MHz, h264=333MHz, RAM=DDR2-1200 (+6/+4/+4+schmoo). Sandisk Ultra HC-I 32GB microSD card on '50=100' OCed slot (42MB/s read) running Raspbian/KODI16, Seagate 3.5" 1.5TB HDD mass storage.
-
- Posts: 258
- Joined: Sat Oct 24, 2015 1:50 pm
Re: HDD partitions
From what I read here, most people that have a Pi for more than a year do have more than 1. If not, it is easy to buy onea typical Pi owner is probably highly unlikely to have access to another one

-
- Posts: 102
- Joined: Thu Jan 07, 2016 1:28 pm
Re: HDD partitions
Can i use This Sata and Sata Power To Usb Cable : http://www.amazon.in/ADMI-USB-2-0-SATA- ... 46ec875759 : To connect my 60gb fujitsu 2.5" hdd (sata) in a Pc externally where i would connect one usb into PC and another in a samsung mobile charger adapter (that comes with galaxy s6 edge, the fast charger) will this power up my hdd and will it work fine ? i dont want to buy a adapter because i am going to use this hdd with my pi so i dont have much place for a adapter.
and will the converter (in the link) work with the 3.5" hdd (that is usually used in Desktops) because the size of the pins is the same !
Thank you in advanced.
and will the converter (in the link) work with the 3.5" hdd (that is usually used in Desktops) because the size of the pins is the same !
Thank you in advanced.