LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-28-2011, 01:47 AM   #1
Young_zhang
LQ Newbie
 
Registered: Nov 2011
Location: China
Distribution: centos 5.5
Posts: 21

Rep: Reputation: Disabled
a question about "sector size 4096"


hello everyone.I meet a problem:
my os is centos5.5.I have a new mobile harddisk.I use "fdisk" to create partition.It success.But when I use "w" comand to write information to my disk. It prompt "unable to write to /dev/sda".But when I create partition under WinXp,It successed.As I known,This disk's sector size is 4096.How can solve this problem?
Thank you.

Last edited by Young_zhang; 11-28-2011 at 01:56 AM.
 
Old 11-28-2011, 01:53 AM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Saying that you have a new "mobile" hard drive, is it the primary drive that you are working off of? I ask because since the error is relating to sda, normally sda is the primary drive being used, and it would make sense, since it is most likely being using. After plugging in your hard drive, could you run the following and post the results for me, using code tags? Thanks!
Code:
ls -al /dev/sd*
Cheers,

Josh
 
Old 11-28-2011, 01:58 AM   #3
Young_zhang
LQ Newbie
 
Registered: Nov 2011
Location: China
Distribution: centos 5.5
Posts: 21

Original Poster
Rep: Reputation: Disabled
no,it isn't the primary drive.the primary drive is /dev/hda.it is a move hard disk.
 
Old 11-28-2011, 01:59 AM   #4
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Ok. Is your hard drive mounted? If so, nothing will be able to be written to it.
 
Old 11-28-2011, 02:03 AM   #5
Young_zhang
LQ Newbie
 
Registered: Nov 2011
Location: China
Distribution: centos 5.5
Posts: 21

Original Poster
Rep: Reputation: Disabled
no

the partition is not mounted.
I know this question is because of "sector size".this disk's sector size is 4096 as normal is 512.but i don't know how to solve it.
 
Old 11-28-2011, 02:05 AM   #6
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Ahh ok. Have a look here then - http://karelzak.blogspot.com/2010/05...rd-drives.html
 
1 members found this post helpful.
Old 11-28-2011, 02:29 AM   #7
Young_zhang
LQ Newbie
 
Registered: Nov 2011
Location: China
Distribution: centos 5.5
Posts: 21

Original Poster
Rep: Reputation: Disabled
sorry,i can not open the site.
thank you,corp769
 
Old 11-28-2011, 03:03 AM   #8
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Ok. In that case, what is fdisk reporting? I mean, is it reporting that it is indeed a 4096 byte sector, or a 512?
 
Old 11-28-2011, 03:22 AM   #9
Young_zhang
LQ Newbie
 
Registered: Nov 2011
Location: China
Distribution: centos 5.5
Posts: 21

Original Poster
Rep: Reputation: Disabled
yes,fdisk prompt "this disk sector size is 4096" when i run fdisk /dev/sda
 
Old 11-28-2011, 03:28 AM   #10
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Can I ask what the current file system is on the hard drive? If it is NTFS, then you won't be able to do what you are doing, unless you fully format the hard drive first. Also, you are running fdisk as your normal user, or root?
 
Old 11-28-2011, 05:38 AM   #11
Young_zhang
LQ Newbie
 
Registered: Nov 2011
Location: China
Distribution: centos 5.5
Posts: 21

Original Poster
Rep: Reputation: Disabled
user is root.the partition is just allocated.there is no file system applied.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
why `tr "\000" "\125" < /dev/zero | dd bs=1K count=1 of=01data` creates wrong size? albert316 Linux - Newbie 11 11-16-2011 10:08 AM
linux driver "Beyond-end write (0 4096)" archanac07 Linux - Kernel 1 01-23-2010 05:46 PM
newbie question: whats the difference between "su root", "su" and "su -&quo mojarron Slackware 9 12-07-2009 04:08 PM
How to set the size of icons for "Starterbar" in "Gdekslets" Blue Jacket Linux - Software 4 11-23-2005 02:42 AM
FAT16 and "bogus logical sector size 64543" shuuhen Debian 4 10-21-2005 04:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:59 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