Bug#315451: laptop-mode-tools: ext3,ext2 not recognized as ext3

2005-06-23 Thread Bart Samwel

Hi Dan,

Apparently there aren't a lot of people using this feature of fstab. I 
didn't even know that the possibility existed. :) I'll just check for
pattern .*ext3.* or something, and the same for the other fstypes, 
because if there is even the remotest possibility that the fs was 
mounted as some fstype that needs to be remounted then we should try 
remounting it as such.


About the discrepancy between the root fs and the other fses in 
/etc/mtab: this file is kept up-to-date by mount, but it doesn't 
actually *know* the root fs type because it is already mounted. With me 
at least, /proc/mounts lists the root fs / as being of type rootfs, 
which isn't very enlightening either. That's why the thing simply copies 
the fstype of the root fs from /etc/fstab and assumes that is correct. 
:) I've seen _many_ occasions where people had actually mounted their 
rootfs as ext2 instead of ext3, even though everything reported it as 
ext3. This was then caused by a missing module in the kernel at bootup 
which was missing from the module loading list in initrd etc..


Regards,
Bart


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#315451: laptop-mode-tools: ext3,ext2 not recognized as ext3

2005-06-22 Thread Dan Christensen
Package: laptop-mode-tools
Version: 1.05-1
Severity: normal


On my system, my root partition is recorded as being of type
ext3,ext2, and /usr/sbin/laptop-mode doesn't recognize this
as being an ext3 filesystem and doesn't adjust the commit time.  
The fix is to change the two occurrences of ext3 to 
ext3|ext3,ext2.

# cat /etc/mtab
/dev/hda2 / ext3,ext2 rw,errors=remount-ro 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs rw 0 0
/dev/hda1 /boot ext3 rw 0 0
/dev/hda3 /usr ext3 rw 0 0

# cat /etc/fstab
/dev/hda2   /   ext3,ext2   errors=remount-ro   0   1
/dev/hda5   noneswapsw  0   0
proc/proc   procdefaults0   0
/dev/fd0/floppy autouser,noauto 0   0
/dev/cdrom  /cdrom  iso9660 ro,user,noauto  0   0
/dev/hda1   /boot   ext3,ext2   defaults0   2
/dev/hda3   /usrext3,ext2   defaults,ro 0   2

I use ext3,ext2 so that the kernel falls back to ext2 if necessary.
Note that hda1 and hda3 are also marked as ext3,ext2 here, but not
in /etc/mtab.  Odd.

Dan

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (750, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.12
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages laptop-mode-tools depends on:
ii  powermgmt-base1.22   Common utils and configs for power

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]