LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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, 11:17 AM   #1
Advice Pro
Member
 
Registered: Mar 2009
Location: Virginia, US
Distribution: Ubuntu 10.10 & Debian 6.0.3,
Posts: 343

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, 11 views)
 
Old 03-23-2011, 12:29 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,932

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
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 12:44 PM.
 
Old 03-23-2011, 12:54 PM   #3
Advice Pro
Member
 
Registered: Mar 2009
Location: Virginia, US
Distribution: Ubuntu 10.10 & Debian 6.0.3,
Posts: 343

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, 03:08 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,932

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
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, 04:49 PM   #5
Advice Pro
Member
 
Registered: Mar 2009
Location: Virginia, US
Distribution: Ubuntu 10.10 & Debian 6.0.3,
Posts: 343

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, 11 views)
 
Old 03-23-2011, 05:03 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,932

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

Original Poster
Rep: Reputation: 7
Yeah
 
Old 03-24-2011, 05:29 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,932

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


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HDD write protection pingvina Linux - Software 17 02-11-2006 07:59 PM
Samba Write Protection amajos Linux - Networking 1 08-11-2005 08:58 PM
write protection speed_viper Linux - Software 5 10-02-2004 01:10 AM
Write-protection in scripts Louis_Carole Linux From Scratch 1 09-03-2004 12:22 AM
Write Protection mfo6463 Linux - Newbie 5 03-31-2004 04:59 PM


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