LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-22-2006, 06:22 PM   #1
vezril
LQ Newbie
 
Registered: Mar 2005
Location: Montreal, Canada
Distribution: Slackware
Posts: 28

Rep: Reputation: 15
Formating an external NTFS Drive?


I was wondering if it was possible to format an external usb hdd which is in ntfs under linux (Fedora Core 5 to be precise)

i've looked around the forum to see, from what i saw it is possible, but i want to format with a FAT32 filesystem.

I have ntfs support, if that helps any

if you need more info, just ask

Thank you

~Vezril~
 
Old 08-22-2006, 06:37 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Your question is a little confusing and the title is misleading.

If you want to format FAT32, then just:

mkdosfs -F 32 /dev/sdXY

See the 'man mkdosfs' for additional details. If you don't have mkdosfs installed, it's part of the dosfstools package:

yum -y install dosfstools
 
Old 08-22-2006, 07:00 PM   #3
vezril
LQ Newbie
 
Registered: Mar 2005
Location: Montreal, Canada
Distribution: Slackware
Posts: 28

Original Poster
Rep: Reputation: 15
Thanks for the help, sorry about the question being confusing, i'm just waking up =/

i tryed what you told me, but its giving me this error

Code:
 [root@localhost ~]# mkdosfs -F 32 /dev/sda1
mkdosfs 2.11 (12 Mar 2005)

mkdosfs: /dev/sda2 contains a mounted file system.
its probably referring to the ntfs filesystem

so this is what i want to do (to clear things up)

kill all data on that external usb drive, which is currently under a ntfs filesystem
then format that drive under FAT32

Last edited by vezril; 08-22-2006 at 07:01 PM.
 
Old 08-22-2006, 07:09 PM   #4
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
The messages says that the filesystem is mounted - in other words, it's in use. The command thinks that it's a silly thing to try to format a drive when the files are being used, and it's correct.

You need to unmount the filesystem first:

umount /dev/sda1

or umount the mountpoint. For example, if /dev/sda1 is mounted on /media/ntfsdrive:

umount /media/ntfsdrive

If you get a message that the device is busy, it means that some file is open on the filesystem. Close any programs that are accessing files on the drive. If you have a terminal windows open and have 'cd' to a directory on the drive, it will also report busy.
 
Old 08-22-2006, 07:42 PM   #5
vezril
LQ Newbie
 
Registered: Mar 2005
Location: Montreal, Canada
Distribution: Slackware
Posts: 28

Original Poster
Rep: Reputation: 15
alright got it working

Thanks alot for the help and sorry to have bothered you with trivial maters like formating

~Vezril~
 
Old 08-22-2006, 07:57 PM   #6
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
I wasn't "bothered", or I wouldn't have responded. Sorry if I came across otherwise.

I was trying to point out that the more accurately you represent the problem you are having, the more likely you are to get someone that can help you. Many people may know how to format a FAT32 partition, but because of the licensing issues around formatting NTFS and spotty distribution support, some folks may avoid even looking at a question titled "Formating an external NTFS Drive" (the only thing they see when scanning new posts).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NTFS external hard drive, mounted but not accessible jmrother Linux - Newbie 7 02-01-2006 09:41 PM
Formating an external USB hard drive xpucto Linux - Hardware 3 12-14-2005 12:40 PM
write to external NTFS drive bluetwist Debian 2 07-29-2005 06:38 PM
Formating a new external hard drive SpartacusJones Linux - Hardware 1 01-02-2005 05:28 AM
formating 120gb external hard drive to ext2 is it possible? enk0d Slackware 3 11-09-2003 01:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration