femindharamshi10
Posts: 102
Joined: Thu Jan 07, 2016 1:28 pm

HDD partitions

Sat Jan 30, 2016 1:43 pm

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 ?

JimmyN
Posts: 1109
Joined: Wed Mar 18, 2015 7:05 pm
Location: Virginia, USA

Re: HDD partitions

Sat Jan 30, 2016 2:16 pm

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

femindharamshi10
Posts: 102
Joined: Thu Jan 07, 2016 1:28 pm

Re: HDD partitions

Sat Jan 30, 2016 2:21 pm

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
how do i recognise which partition is which ?

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 ?

User avatar
GTR2Fan
Posts: 1601
Joined: Sun Feb 23, 2014 9:20 pm
Location: South East UK

Re: HDD partitions

Sat Jan 30, 2016 2:24 pm

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.

femindharamshi10
Posts: 102
Joined: Thu Jan 07, 2016 1:28 pm

Re: HDD partitions

Sat Jan 30, 2016 2:37 pm

GTR2Fan wrote:Ext4 unless you have a specific need to connect the drive directly to a Windows PC for any reason.
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)

User avatar
GTR2Fan
Posts: 1601
Joined: Sun Feb 23, 2014 9:20 pm
Location: South East UK

Re: HDD partitions

Sat Jan 30, 2016 2:51 pm

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.
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.

femindharamshi10
Posts: 102
Joined: Thu Jan 07, 2016 1:28 pm

Re: HDD partitions

Sat Jan 30, 2016 3:34 pm

GTR2Fan 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.
i am already using a external seagate ntfs 1tb drive. OSX does support it

femindharamshi10
Posts: 102
Joined: Thu Jan 07, 2016 1:28 pm

Re: HDD partitions

Sat Jan 30, 2016 4:44 pm

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 )

Heater
Posts: 17116
Joined: Tue Jul 17, 2012 3:02 pm

Re: HDD partitions

Sat Jan 30, 2016 11:50 pm

GTR2Fan,
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.
Could you elaborate on that?

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 .

User avatar
GTR2Fan
Posts: 1601
Joined: Sun Feb 23, 2014 9:20 pm
Location: South East UK

Re: HDD partitions

Sun Jan 31, 2016 12:04 am

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.

Heater
Posts: 17116
Joined: Tue Jul 17, 2012 3:02 pm

Re: HDD partitions

Sun Jan 31, 2016 12:16 am

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.
Memory in C++ is a leaky abstraction .

User avatar
rpdom
Posts: 17973
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: HDD partitions

Sun Jan 31, 2016 3:35 am

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.
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.

femindharamshi10
Posts: 102
Joined: Thu Jan 07, 2016 1:28 pm

Re: HDD partitions

Sun Jan 31, 2016 4:05 am

rpdom wrote:
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.
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.
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 ?

User avatar
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

Sun Jan 31, 2016 9:22 am

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 ?
Your Raspberry Pi running Linux can mount both 80GB partitions, Windows (without additional software) can only mount the NTFS partition.
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.

femindharamshi10
Posts: 102
Joined: Thu Jan 07, 2016 1:28 pm

Re: HDD partitions

Sun Jan 31, 2016 10:14 am

DougieLawson wrote:
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 ?
Your Raspberry Pi running Linux can mount both 80GB partitions, Windows (without additional software) can only mount the NTFS partition.
If i buy a sata 250 gb hdd, and use a converter like this : http://www.ebay.com/itm/SATA-7-15-22-Pi ... SwgQ9VgpB0

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 ?

User avatar
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

Sun Jan 31, 2016 10:32 am

You can run a 2.5" HDD from a B+ or 2B by simply adding

Code: Select all

max_usb_current=1
to your config.txt
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.

User avatar
GTR2Fan
Posts: 1601
Joined: Sun Feb 23, 2014 9:20 pm
Location: South East UK

Re: HDD partitions

Sun Jan 31, 2016 11:05 am

Heater wrote:Yeah, well, I cannot imagine why anyone is using NTFS on a Linux machine.
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.
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.

Navyscourge
Posts: 258
Joined: Sat Oct 24, 2015 1:50 pm

Re: HDD partitions

Sun Jan 31, 2016 11:40 am

a typical Pi owner is probably highly unlikely to have access to another one
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 one :)

femindharamshi10
Posts: 102
Joined: Thu Jan 07, 2016 1:28 pm

Re: HDD partitions

Sun Jan 31, 2016 2:15 pm

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.

Return to “General discussion”