View previous topic :: View next topic |
Author |
Message |
billydv l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Buffy the Vampire Slayer/Avatarangelus4.jpg)
Joined: 22 Dec 2006 Posts: 911 Location: Mount Vernon, NY
|
Posted: Thu Aug 07, 2008 6:53 pm Post subject: How to add fstab entry for ro? |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Sadako Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/2074682074aea79062b33b.jpg)
Joined: 05 Aug 2004 Posts: 3792 Location: sleeping in the bathtub
|
Posted: Thu Aug 07, 2008 7:01 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
billydv l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Buffy the Vampire Slayer/Avatarangelus4.jpg)
Joined: 22 Dec 2006 Posts: 911 Location: Mount Vernon, NY
|
Posted: Fri Aug 08, 2008 2:22 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
billydv l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Buffy the Vampire Slayer/Avatarangelus4.jpg)
Joined: 22 Dec 2006 Posts: 911 Location: Mount Vernon, NY
|
Posted: Fri Aug 08, 2008 2:23 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
pelelademadera Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 14 Jul 2008 Posts: 1255 Location: La Plata, Argentina
|
Posted: Fri Aug 08, 2008 3:39 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
billydv l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Buffy the Vampire Slayer/Avatarangelus4.jpg)
Joined: 22 Dec 2006 Posts: 911 Location: Mount Vernon, NY
|
Posted: Sun Aug 10, 2008 12:29 am Post subject: |
|
|
Thanks, Do all reiserfs entries need to have 0 0? _________________ Billy DeVincentis |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|