Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to add fstab entry for ro?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
billydv
l33t
l33t


Joined: 22 Dec 2006
Posts: 911
Location: Mount Vernon, NY

PostPosted: Thu Aug 07, 2008 6:53 pm    Post subject: How to add fstab entry for ro? Reply with quote

I have a hard drive that is filled and want it to be mountable read only, can someone give me an example of the fstab entry? Its a reiser fs.
_________________
Billy DeVincentis
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Thu Aug 07, 2008 7:01 pm    Post subject: Reply with quote

You just add "ro" to the same comma-delimited field with the other options such as noatime and notail, eg;
Code:
/dev/sdc10              /chroot                 reiserfs        noatime,noauto,notail,ro                           0 0

_________________
"You have to invite me in"
Back to top
View user's profile Send private message
billydv
l33t
l33t


Joined: 22 Dec 2006
Posts: 911
Location: Mount Vernon, NY

PostPosted: Fri Aug 08, 2008 2:22 am    Post subject: Reply with quote

Correct me if I'm wrong please

from this

/dev/sdd1 /MyStuff2 reiserfs defaults,notail,noatime,user_xattr 1 2

to this

/dev/sdd1 /MyStuff2 reiserfs defaults,notail,noatime,user_xattr,ro 0 0
_________________
Billy DeVincentis
Back to top
View user's profile Send private message
billydv
l33t
l33t


Joined: 22 Dec 2006
Posts: 911
Location: Mount Vernon, NY

PostPosted: Fri Aug 08, 2008 2:23 am    Post subject: Reply with quote

I guess I knew about the adding of the ro but I'm just not sure about the numbers at the end.
_________________
Billy DeVincentis
Back to top
View user's profile Send private message
pelelademadera
Veteran
Veteran


Joined: 14 Jul 2008
Posts: 1255
Location: La Plata, Argentina

PostPosted: Fri Aug 08, 2008 3:39 am    Post subject: Reply with quote

billydv wrote:
I guess I knew about the adding of the ro but I'm just not sure about the numbers at the end.


numbers are only for e2fsck.
the first is 1 only for /
the second number is for the check, swap must have 0
/ must have 1
other directories <1 (indicates priority)

this is only if you use ext3 filesystem

your fstab indicates that its reiser, so you must put 0 0 (because its not /dir and it couldnt be checked with e2fsk)
_________________
el pelado de la gente
------
Los habitantes de las islas Malvinas lo llaman gentoo, nombre en el que se basa la distribución GNU/Linux Gentoo, cuyo objetivo es la optimización para conseguir más rendimiento y velocidad en la ejecución.
------
Back to top
View user's profile Send private message
billydv
l33t
l33t


Joined: 22 Dec 2006
Posts: 911
Location: Mount Vernon, NY

PostPosted: Sun Aug 10, 2008 12:29 am    Post subject: Reply with quote

Thanks, Do all reiserfs entries need to have 0 0?
_________________
Billy DeVincentis
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum