LinuxQuestions.org
Help answer threads with 0 replies.
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 04-28-2006, 05:25 PM   #1
blanks77
LQ Newbie
 
Registered: Apr 2006
Posts: 5

Rep: Reputation: 0
"block device /dev/sda2 is write-protected, mounting read-only" - fstab problem


Hi, I have a problem with automounting my sda2 drive.

I am able to mount it manually, and my mtab entry looks like this:

/dev/sda2 /root/Desktop/e-storage ext3 rw 0 0

I can read from it and write to it just fine. But if I paste that same line to fstab, when I restart I get that error which says that sda2 is write-protected and it's mounting read-only. I do not understand why it's doing that. Furthermore, it's not even read-only, as I do not see any of the folders and files on the drive until I mount it manually.

If anyone knows what's going on that would be helpful. If I need to provide more information, tell me what to fetch and I'll paste it here.
 
Old 04-28-2006, 06:09 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
I am guessing it is because you are trying to mount to /root directory. Create a directory in /mnt called e-storage ' mkdir /mnt/e-storage '. Then change your fstab to this.
/dev/sda2 /mnt/e-storage ext3 rw 0 0

Brian1
 
  


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
"/dev/sda1 is not a valid block device" used to be millionknives Linux - Hardware 6 12-13-2005 06:39 PM
External USB HDD"Mounting local filesystems: /dev/sdb1 is not a valid block device" manudath Linux - Hardware 3 12-13-2004 09:59 PM
"/dev/cdrom is not a valid block device" error kungfuhokie Fedora 4 06-11-2004 06:55 AM
USB drive keeps mounting as "read only" I need to write to it. Lossenelin Linux - Hardware 1 02-12-2004 06:49 PM
Kernel 2.6.1 /dev/cdrom "not a valid block device" jwjensen Linux - General 8 01-27-2004 12:50 PM

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

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