Making /mnt/cdrom read-only?


Forum: USB booting
Topic: Making /mnt/cdrom read-only?
started by: DarkNova

Posted by DarkNova on Dec. 15 2005,02:54
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.
Posted by roberts on Dec. 15 2005,03:49
Delete the boot option frugal from syslinux.cfg or isolinux.cfg depending on your install type.
Posted by DarkNova on Dec. 15 2005,04:45
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.

Posted by cbagger01 on Dec. 15 2005,17:37
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

Posted by DarkNova on Dec. 15 2005,23:22
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?
Posted by cbagger01 on Dec. 17 2005,04:13
At the moment, I'm stumped.

I just booted my *.iso virtually with the

fb800x600 base norestore

command and after boot I open an xterminal as root and type:

mount

and get

/dev/scd0 on /cdrom type iso9660 (ro)

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.