LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 02-12-2011, 05:11 PM   #1
DebianUser
Member
 
Registered: Apr 2010
Posts: 79

Rep: Reputation: 15
Formatting usb drive to ntfs


I have new external usb drive which i'm trying to format to NTFS so I can also use in in windows. I've set it up using fdisk

Disk /dev/sdd: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x604a2a7d

Device Boot Start End Blocks Id System
/dev/sdd1 1 60801 488384001 7 HPFS/NTFS

and tried formatting using

mkfs -t ntfs /dev/sdd1

however I get the follinwg error

Cluster size has been automatically set to 4096 bytes.
Initializing device with zeroes: 100% - Done.
Creating NTFS volume structures.
Error writing to /dev/sdd1: Input/output error.
Error writing non-resident attribute value.
add_attr_sd failed: Input/output error
Couldn't create root directory: Input/output error
 
Old 02-12-2011, 05:41 PM   #2
Peacedog
Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,292

Rep: Reputation: 168Reputation: 168
Hi DebianUser, Welcome to LQ. Have you tried mkntfs as well?

Good luck. ;-)
 
Old 02-12-2011, 05:45 PM   #3
DebianUser
Member
 
Registered: Apr 2010
Posts: 79

Original Poster
Rep: Reputation: 15
hi thanks

I've also tried mkfs.ntfs after installing ntfsprogs
 
Old 02-12-2011, 07:07 PM   #4
jefro
Guru
 
Registered: Mar 2008
Posts: 12,084

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
Why not use windows to format it?

Might have gparted in linux already. http://maketecheasier.com/how-to-ref...rdy/2008/09/29

Can I assume you are root?

Try ext3 maybe just to see. # mkfs.ext3
 
Old 02-13-2011, 01:24 AM   #5
DebianUser
Member
 
Registered: Apr 2010
Posts: 79

Original Poster
Rep: Reputation: 15
I've now formatted it windows and now having problems mounting it, first I tried

mount -t ntfs /dev/sdd1 /mnt/windows/
cp test.tar.gz /mnt/windows/
cp: cannot create regular file `/mnt/windows/test.tar.gz': Read-only file system

unmounted

mount -t ntfs -o nls=utf8,umask=0222 /dev/sdd1 /mnt/windows/
cp test.tar.gz /mnt/windows/
cp: cannot create regular file `/mnt/winddows/test.tar.gz': Read-only file system

unmounted

apt-get install ntfs-3g

mount -t ntfs-3g/dev/sdd1 /mnt/windows/

$MFTMirr does not match $MFT (record 2).
Failed to mount '/dev/sdd1': Input/output error
NTFS is either inconsistent, or you have hardware faults, or you have a
SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows
then reboot into Windows TWICE. The usage of the /f parameter is very
important! If you have SoftRAID/FakeRAID then first you must activate
it and mount a different device under the /dev/mapper/ directory, (e.g.
/dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation
for the details.

fsck /dev/sdd1
fsck 1.41.3 (12-Oct-2008)
fsck: fsck.ntfs: not found
fsck: Error 2 while executing fsck.ntfs for /dev/sdd1

I have ntfs modules installed

ls /lib/modules/2.6.26-2-686/kernel/fs/ | grep ntfs
ntfs

Last edited by DebianUser; 02-13-2011 at 01:36 AM.
 
Old 02-13-2011, 02:15 PM   #6
jefro
Guru
 
Registered: Mar 2008
Posts: 12,084

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
Try ext3
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
mkntfs formatting a ntfs drive zael Programming 2 01-12-2012 07:38 PM
Problem formatting USB drive, need some help... tiger.woods Ubuntu 9 08-10-2007 10:39 PM
Formatting a usb drive guldo Linux - Hardware 11 10-09-2005 12:16 PM
Formatting USB ZIP Drive solarisrob Solaris / OpenSolaris 1 08-01-2005 03:44 PM
formatting a usb flash drive zatka Linux - Hardware 2 12-12-2004 09:04 AM


All times are GMT -5. The time now is 02:03 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration