LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-27-2018, 06:55 AM   #1
tony2015
LQ Newbie
 
Registered: May 2018
Posts: 2

Rep: Reputation: Disabled
can't clone 520 bytes sector harddisk on ubuntu 16.04


I have a SAS 300GB connect to LSI sas1064e, os is ubuntu 16.04, I can sg_format to 512bytes sector and work as normal, I can dd if=/dev/sdg of=disk1.img to copy image.

but if I sg_format it to 520bytes sector,
fdisk -l doesn't show this drive as /dev/sd(x),
use smartctl -a /dev/sg7, can show the disk full info

copy image dd show error 0 byte copy

I can't mount the disk. error not a block device

so how do I clone 520bytes per sector sas drive to disk1.img or another 520bytes/512bytes drive?

thanks for any help
 
Old 05-27-2018, 08:44 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,841

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
I would probably try sg_format with -vvv and check if there was any related message.
 
Old 05-27-2018, 10:04 AM   #3
tony2015
LQ Newbie
 
Registered: May 2018
Posts: 2

Original Poster
Rep: Reputation: Disabled
sg_format is working fine

how do I clone 520bytes per sector sas drive to disk1.img or another 520bytes/512bytes drive?

Quote:
Originally Posted by pan64 View Post
I would probably try sg_format with -vvv and check if there was any related message.
 
Old 05-29-2018, 11:05 AM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
512 and 520 bytes per sector are not compatible to each other. 520B/sector drives are used in proprietary storage systems. Unless you have a storage system that uses such formatting, you wouldn't need nor want 520B/sector formatting, for reasons you have already discovered: drive controller firmware usually only works with 512B/sector format drives.
 
Old 05-30-2018, 02:10 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
"fdisk -l doesn't show this drive as /dev/sd(x),"

Then I'd suspect you have not properly formatted this disk or your controller can't read it correctly or the drive doesn't fully support advance format.

I assume you did full power down to view this drive in adapter tools too.
 
  


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
Is it okay if my sector size is "512 bytes / 4096 bytes" Altiris Slackware 5 07-31-2015 03:19 AM
Bad sector in HardDisk Arun Kurian Linux - Hardware 3 11-11-2013 03:19 PM
More bytes required to fit sector amol28kulkarni Linux - Newbie 1 10-13-2010 02:32 AM
How to backup a 1 Tera bytes Harddisk to DVD without X ? frenchn00b Linux - General 18 11-24-2009 08:46 AM
How to get the bytes per sector in linux using c++? jaepi Programming 1 05-16-2008 04:03 AM

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

All times are GMT -5. The time now is 07:46 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
Open Source Consulting | Domain Registration