LinuxQuestions.org
Visit Jeremy's Blog.
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, 02: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 02:56 AM.
 
Old 11-28-2011, 02:53 AM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
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, 02: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, 02:59 AM   #4
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
Ok. Is your hard drive mounted? If so, nothing will be able to be written to it.
 
Old 11-28-2011, 03: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, 03:05 AM   #6
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
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, 03: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, 04:03 AM   #8
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
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, 04: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, 04:28 AM   #10
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
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, 06: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


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 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 11:08 AM
linux driver "Beyond-end write (0 4096)" archanac07 Linux - Kernel 1 01-23-2010 06:46 PM
newbie question: whats the difference between "su root", "su" and "su -&quo mojarron Slackware 9 12-07-2009 05:08 PM
How to set the size of icons for "Starterbar" in "Gdekslets" Blue Jacket Linux - Software 4 11-23-2005 03:42 AM
FAT16 and "bogus logical sector size 64543" shuuhen Debian 4 10-21-2005 05:22 PM

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

All times are GMT -5. The time now is 01:48 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration