Re: mount -a doesn't obey "ro" in /etc/fstab



On Wed, 27 Sep 2006 16:57:17 +0300 (EEST)
Dmitry Pryanishnikov <dmitry@xxxxxxxxxxxxxx> wrote:

I also can write under /mnt3, so 'mount' correctly shows FS status. mount
_does_ obey 'mount -ur /mnt3', it just ignores "ro" in /etc/fstab. Booting
into the single-user mode and making 'mount -a' has the same effect.
Is this breakage well-known, or something new?

Perhaps this is UFS-specific, as I have an ext2 fs mounted as RO:

% mount
/dev/ad1s3a on / (ufs, local)
devfs on /dev (devfs, local)
/dev/ad1s2d on /home (ufs, local, soft-updates)
/dev/ad1s3d on /tmp (ufs, local, soft-updates)
/dev/ad1s1 on /mnt/Audio (ext2fs, local, read-only)

% cat /etc/fstab
# Device Mountpoint FStype Options Dump Pass#
/dev/ad1s3b none swap sw 0 0
/dev/ad1s3a / ufs rw 1 1
/dev/ad1s2d /home ufs rw 2 2
/dev/ad1s3d /tmp ufs rw 2 2
/dev/acd0 /cdrom cd9660 ro,noauto 0 0
/dev/ad1s1 /mnt/Audio ext2fs ro 0 2
/dev/da0s1 /mnt/floppy msdosfs rw,noauto 0 0
/dev/da0s2 /mnt/ipod msdosfs rw,noauto 0 0

--
Ricardo Nabinger Sanchez <rnsanchez@{gmail.com,wait4.org}>
Powered by FreeBSD

"Left to themselves, things tend to go from bad to worse."
_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • "mount -a -o rdonly" doesnt work (very well)
    ... I noticed this morning while testing some buggy kernel code that a system tested in single-user mode was coming back up with an unclean root file ... running tests, and while /usr had come up read-only, the mount command had also remounted / as writable -- not my intended result! ... I was wondering if someone familiar with the mount flags/etc could take a look at this. ... devfs on /dev ...
    (freebsd-current)
  • Re: [ANNOUNCE] ndevfs - a "nano" devfs
    ... >> replacement for devfs for those embedded users who just can't live ... that meant I could not run udev on it, ... mount ndevfs on /mnt ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: Stick memory USB
    ... I want to mount automatically an usb-stick memory into my machine? ... You're trying with your devfs stuff to create the file, ... FreeBSD 5 but I'm running 6.3-STABLE. ... is not the normal way to automate mounting of FSs) isn't something I've ...
    (freebsd-questions)
  • Re: Help saving my system
    ... you can mount devfs as many times as your system can handle it all over ... Jason Dictos wrote: ... For more information on a proactive email security service ...
    (freebsd-current)
  • Re: FreeBSD 5.3 I/O Performance / Linux 2.6.10 | Continued Discussion
    ... I didn't change any of the default mount options on either OS. ... # cat /etc/fstab ... devfs on /dev ... /dev/ad0s1e on /tmp (ufs, local, soft-updates) ...
    (freebsd-performance)