LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-21-2005, 07:37 AM   #1
vmlinuz101
Member
 
Registered: Mar 2005
Location: Ireland
Distribution: LFS, SuSE, Debian, gentoo
Posts: 93

Rep: Reputation: 15
ide device drivers and write_cache


Hello there. I'm doing a college project that will build a liveCD (Linux) and have been unable to reach a conclusion on the following topic: The liveCD must not be allowed to write to the hard disk (lab machines are Wiin2k) in case they get erased. One way of doing this might be to append the ide-disk.c file in /usr/src/linux/drivers/ide I'm concerned that ZIP drives might fall into the same category, or are they treated in the same manner as floppies? I am aware of the hdparm utility which disables writing to ATA/IDE disks, and also of the fact that appending the ide-disk source and building a new kernel module would still allow access to SCSI disks. The idea probably sounds ridiculous, and I'm aware there are several better means of doing this. Would anyone have some advice about how best to approach a rewrite of ide-disk.c or better still, an alternate means of achieving this?

Regards,

Donal
 
Old 04-22-2005, 02:26 AM   #2
Orkie
Member
 
Registered: Mar 2005
Distribution: Breezy Badger
Posts: 248

Rep: Reputation: 30
I think that is you dump 'ro' in the options section for the parition in fstab that it mounts it read only - I couldn't be 100% certain about though, you'd have to try it / get somebody else's opinion.
 
  


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
how to detect size of IDE device kushalkoolwal Programming 8 11-06-2005 02:47 PM
IDE Device Space Question? kushalkoolwal Debian 3 11-04-2005 03:26 PM
IDE device advice. bulliver Linux - Hardware 5 03-03-2004 11:34 PM
5th IDE device or SCSI CD-RW? star geezer Linux - Hardware 1 11-17-2003 09:56 AM
External Parallel to ide cdrom device drivers - DATASTOR EP2000 paresh_md Linux - Hardware 0 07-23-2003 12:13 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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