Dawg77
Posts: 4
Joined: Sat Jan 31, 2015 9:21 pm

Reformatting hard drive

Sat Jan 09, 2016 8:38 pm

I have a Rasp Pi 2 with OSMC installed on the micro sd card. I want to add a hard drive just to store video and music. The hard drive is presently formatted in ext4 as one large partition. I would like to format it in ntfs. What process/commands do I need to run to accomplish this? I would like to leave it as one large partition. Thanks.

QuietZone
Posts: 89
Joined: Sat Dec 05, 2015 7:13 pm

Re: Reformatting hard drive

Sat Jan 09, 2016 8:43 pm

If you really want to do this (and lots of people here will, any minute now, be either sarcastically asking you why you want to do it and/or telling you you don't want to do it), then the easiest way to do it is on your Windows machine.

I'm pretty sure it can be done on Linux, using the appropriate mkfs.whatever, but it isn't worth the risk, since formatting is a one-time action - just do it on the Windows side and be done with it.
"If you haven't got anything nice to say about anybody come sit next to me." — Alice Roosevelt Longworth

Dawg77
Posts: 4
Joined: Sat Jan 31, 2015 9:21 pm

Re: Reformatting hard drive

Sat Jan 09, 2016 11:50 pm

Thank you

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

Re: Reformatting hard drive

Sun Jan 10, 2016 12:45 am

Is the drive only going to be used on your RPi or are you going to unplug it and mount it on a Windows system?
Have you considered leaving it as ext4 and using Samba to make it available across the network to your Windows system?

NTFS on Linux has a couple of serious disadvantages: 1. security stops at the mount command 2. the ntfs-3g driver runs in userspace not in the kernel so you lose lots of CPU running it. Is it worth that for the small benefit of being able to plug it in to a Windows system and use it directly?
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.

Return to “Troubleshooting”