Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dump data buffer used for Mode Select commands? #99

Open
ReddyKilowatt opened this issue Sep 13, 2023 · 2 comments
Open

Dump data buffer used for Mode Select commands? #99

ReddyKilowatt opened this issue Sep 13, 2023 · 2 comments

Comments

@ReddyKilowatt
Copy link

Hello,

when using sg_format.exe

sg_format --format --size=512 --six -v pd0
TOSHIBA MG08SCA16TA 0129 peripheral_type: disk [0x0]
PROTECT=1
<< supports protection information>>
Unit serial number: 8960A04QF4PG
LU name: 500003999812d235
mode sense (6) cdb: 1a 00 01 00 fc 00
Mode Sense (block descriptor) data, prior to changes:
Mode sense number of blocks maxed out, set longlba
mode sense (10) cdb: 5a 10 01 00 00 00 00 00 fc 00
Mode Sense (block descriptor) data, prior to changes:
<<< longlba flag set (64 bit lba) >>>
Number of blocks=30616322048 [0x720e00000]
Block size=520 [0x208]
mode select (10) cdb: 55 11 00 00 00 00 00 00 22 00
mode select (10):

Is there a way to show the data buffer contents for the Mode Select command?
I've looked through the help html, but sometimes not everything is documented.

@doug-gilbert
Copy link
Contributor

The --verbose (-v) can be given multiple times. Each time increases the level of verbosity. Try -vvv in this case and respond if it doesn't give you the data buffer you are looking for.

@ReddyKilowatt
Copy link
Author

The --verbose (-v) can be given multiple times. Each time increases the level of verbosity. Try -vvv in this case and respond if it doesn't give you the data buffer you are looking for.

Thanks for the quick reply. Will try this once the format completes.
I was unable to figure out the command sequence to resize the drive to make it much smaller in order that the format wouldn't take so long.
Now, I think the resize could have been done before the format command and independently of changing the sector size to 520 BPS .

I don't understand why --size=520 is rejected, yet --size=512 results in 520 BPS for the Mode Select command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants