Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Here is the command in trouble.
[root@X-40f2e94c1ca8 /]# sg_wr_mode -vv -p 0x01 -c "0 0 0 0 11" -m "0 0 0 0 ff" /dev/sdb
open /dev/sdb with flags=0x802
inquiry cdb: 12 00 00 00 24 00
mode sense (10) cdb: 5a 00 01 00 00 00 00 08 00 00
mode sense (10): requested 2048 bytes but got 28 bytes
mode select (10) cdb: 55 10 00 00 00 00 00 00 1c 00
mode select (10) parameter list
00 00 00 00 00 00 00 08 00 00 00 00 00 00 02 00
01 0a 80 00 11 00 00 00 00 00 00 00
mode select (10): Fixed format, current; Sense key: Illegal Request
Additional sense: Invalid field in parameter list
Raw sense data (in hex):
70 00 05 00 00 00 00 0a 00 00 00 00 26 00 00 00
bad field in MODE SELECT (10) command
Essentially I want to know , how Can I provide the correct input to the sg_wr_mode command to change the READ-WRITE error recovery page ( any chaengable page would do) with an working example . I am trying to see the mode select command works from guest using virtio-scsi path anyways.