Jump to content











Photo
- - - - -

(solved) REQ: set ramdrive as read-only at runtime?


  • Please log in to reply
2 replies to this topic

#1 Rasqual

Rasqual
  • Members
  • 7 posts
  •  
    France

Posted 13 June 2007 - 11:12 AM

Hello,
Is it possible to set the read-only attribute to an already attached ramdisk?

My current solution is to save the ramdisk to an image file and mount that image as RO, which is not too bad I guess. It allows me to use the junctions (which point to existing partitions/paths) on that disk and to not risk having them altered. This is good because some utilities choke on junction points (some antivirii, for instance) and try to go into infinite loops.

Edit: Thanks Olof, that was really quick!

#2 Olof Lagerkvist

Olof Lagerkvist

    Gold Member

  • Developer
  • 1365 posts
  • Location:Borås, Sweden
  •  
    Sweden

Posted 14 June 2007 - 12:14 AM

Hello,
Is it possible to set the read-only attribute to an already attached ramdisk?

Yes, I have added that possibility now. :1st:

Example:
imdisk -e -o ro -m B:
This will change drive B: to read-only.

#3 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7100 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 14 June 2007 - 06:00 AM

@Rasqual

Interesting idea! :thumbup:

@Olof

VERY good (and prompt as always) work! :1st:

jaclaz




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users