Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Making /mnt/cdrom read-only?< Next Oldest | Next Newest >
DarkNova Offline





Group: Members
Posts: 4
Joined: June 2005
Posted: Dec. 15 2005,02:54 QUOTE

I'm booting DSL 2.0 from a USB key. When it boots up, the USB filesystem (which is VFAT) is mounted as /mnt/cdrom (device /dev/sda1) and is read-write. Since I will never want to edit this partition, I would DSL to mount it read-only (the entire USB key can be mounted read-only). Does anyone know what script I need to edit to do this? Thanks.
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Dec. 15 2005,03:49 QUOTE

Delete the boot option frugal from syslinux.cfg or isolinux.cfg depending on your install type.
Back to top
Profile PM WEB 
DarkNova Offline





Group: Members
Posts: 4
Joined: June 2005
Posted: Dec. 15 2005,04:45 QUOTE

Thanks for responding, but that didn't work. I also tried editing /etc/init.d/dsl-config and commented out the "mount /cdrom -o remount,rw" line and remastering in case it was being called somehow regardless of the frugal setting, but that didn't help either. When I look at the mounted devices I still see:

/dev/sda1 on /cdrom type vfat (rw)

Do you know of anywhere else that the filesystem could be being remounted as read-write? Thanks.
Back to top
Profile PM 
cbagger01 Offline





Group: Members
Posts: 4264
Joined: Oct. 2003
Posted: Dec. 15 2005,17:37 QUOTE

Lets try this again.

Go to your boot device (floppy or usb drive).

There will be a file called "syslinux.cfg" or "isolinux.cfg".  Make a backup copy of this file for safekeeping.

Edit the original file with Notepad (MSWindows) or beaver (linux).

remove the word "frugal" from ALL of the append lines.

Save the file.

done
Back to top
Profile PM 
DarkNova Offline





Group: Members
Posts: 4
Joined: June 2005
Posted: Dec. 15 2005,23:22 QUOTE

Sorry, but it still won't work. I edited the syslinux.cfg file on my floppy to remove all instances of "frugal" and rebooted and the /cdrom is still mounted (rw). I know it is no longer booting as "frugal" as if I look in /etc/sysconfig before I edited the file, there is a file called "frugal" (as "touch"ed by the script /etc/init.d/dsl-config) and after I rebooted without "frugal" that file is no longer created in the sysconfig directory. Thanks a lot for the help, but do you know of somewhere else it is being remounted?
Back to top
Profile PM 
5 replies since Dec. 15 2005,02:54 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: Making /mnt/cdrom read-only?

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code