LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices


Reply
  Search this Thread
Old 03-23-2011, 10:17 AM   #1
LAPIII
Member
 
Registered: Mar 2009
Location: Virginia, US
Distribution: Ubuntu 10.10 & Debian 6.0.3,
Posts: 350

Rep: Reputation: 7
How do you turn off write protection


I created a dump file to help troubleshoot an issue and I don't know what device this is referring to nor how to disable write protect. The line reads:
Code:
[    7.376548] sd 7:0:0:2: [sde] Write Protect is on
Attached Files
File Type: txt dump.txt (47.9 KB, 46 views)
 
Old 03-23-2011, 11:29 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
I will take a SWAG and ask if you have a memory card currently plugged into the printer. I assume all of the other removable USB devices are accounted for... If so check the RW switch on the side of the SD card.

Last edited by michaelk; 03-23-2011 at 11:44 AM.
 
Old 03-23-2011, 11:54 AM   #3
LAPIII
Member
 
Registered: Mar 2009
Location: Virginia, US
Distribution: Ubuntu 10.10 & Debian 6.0.3,
Posts: 350

Original Poster
Rep: Reputation: 7
There wasn't a memory card plugged into the printer. What did you mean if
Quote:
Originally Posted by michaelk View Post
the other removable USB devices are accounted for.
 
Old 03-23-2011, 02:08 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Code:
[    5.917312] scsi 2:0:0:0: Direct-Access     Canon    MP600Storage     0104 PQ: 0 ANSI: 2
[    5.917717] sd 2:0:0:0: Attached scsi generic sg2 type 0
[    5.920546] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[    6.340699] usb-storage: device scan complete
[    6.347177] scsi 7:0:0:0: Direct-Access     IOI-CFC                        PQ: 0 ANSI: 0 CCS
[    6.353797] scsi 7:0:0:1: Direct-Access     IOI-SMC                        PQ: 0 ANSI: 0 CCS
[    6.360422] scsi 7:0:0:2: Direct-Access     IOI-MMC                        PQ: 0 ANSI: 0 CCS
[    6.367171] scsi 7:0:0:3: Direct-Access     IOI-MSC                        PQ: 0 ANSI: 0 CCS
[    6.367494] sd 7:0:0:0: Attached scsi generic sg3 type 0
[    6.367594] sd 7:0:0:1: Attached scsi generic sg4 type 0
[    6.367693] sd 7:0:0:2: Attached scsi generic sg5 type 0
[    6.367785] sd 7:0:0:3: Attached scsi generic sg6 type 0
[    7.373918] sd 7:0:0:0: [sdc] Attached SCSI removable disk
[    7.374546] sd 7:0:0:3: [sdf] Attached SCSI removable disk
[    7.375170] sd 7:0:0:1: [sdd] Attached SCSI removable disk
[    7.375801] sd 7:0:0:2: [sde] 31978496 512-byte logical blocks: (16.3 GB/15.2 GiB)
[    7.376548] sd 7:0:0:2: [sde] Write Protect is on
[    7.376551] sd 7:0:0:2: [sde] Mode Sense: 03 00 80 00
[    7.376553] sd 7:0:0:2: [sde] Assuming drive cache: write through
[    7.378797] sd 7:0:0:2: [sde] Assuming drive cache: write through
[    7.378801]  sde: sde1
[    7.381298] sd 7:0:0:2: [sde] Assuming drive cache: write through
[    7.381300] sd 7:0:0:2: [sde] Attached SCSI removable disk
What USB memory devices are connected to your computer. This appears to be your printer or a USB memory card reader. Unplug/replug the printer to see if sde disappears/reappears.
 
Old 03-23-2011, 03:49 PM   #5
LAPIII
Member
 
Registered: Mar 2009
Location: Virginia, US
Distribution: Ubuntu 10.10 & Debian 6.0.3,
Posts: 350

Original Poster
Rep: Reputation: 7
Without the majority of the devices plugged in, the mouse & keyboard are usb devices, I created a dump file,dmesg > dump.txt
and found a sde with different numbers:
Code:
[    7.143551] sd 4:0:0:3: [sde] Attached SCSI removable disk
The full file is attached. After plugging the devices back in, I ran lsusb and got:

Code:
Bus 002 Device 010: ID 05a4:9866 Ortek Technology, Inc. 
Bus 002 Device 008: ID 046d:08ad Logitech, Inc. QuickCam Communicate STX
Bus 002 Device 007: ID 047d:1029 Kensington Mouse*in*a*Box Optical Elite
Bus 002 Device 006: ID 04d9:1203 Holtek Semiconductor, Inc. MC Industries Keyboard
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 011: ID 04a9:1718 Canon, Inc. MP600 Storage
Bus 001 Device 006: ID 0a48:5014 I/O Interconnect Mass Storage Device
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
The first four and sixth of that list are my usb devices.
Attached Files
File Type: txt dump.txt (49.3 KB, 31 views)
 
Old 03-23-2011, 04:03 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Do you have a memory card reader built into the computer?
 
Old 03-23-2011, 08:21 PM   #7
LAPIII
Member
 
Registered: Mar 2009
Location: Virginia, US
Distribution: Ubuntu 10.10 & Debian 6.0.3,
Posts: 350

Original Poster
Rep: Reputation: 7
Yeah
 
Old 03-24-2011, 04:29 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Is there a memory card installed? Make sure it is not write protected.
 
  


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
HDD write protection pingvina Linux - Software 17 02-11-2006 06:59 PM
Samba Write Protection amajos Linux - Networking 1 08-11-2005 07:58 PM
write protection speed_viper Linux - Software 5 10-02-2004 12:10 AM
Write-protection in scripts Louis_Carole Linux From Scratch 1 09-02-2004 11:22 PM
Write Protection mfo6463 Linux - Newbie 5 03-31-2004 03:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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