Re: checking whether partition mounted as ext3
On Mon, 19 Jan 2004 23:00:55 +, Pigeon wrote: Like I said, running mount will tell you how the FS is mounted. It does not echo what is in /etc/fstab. When it mounts an FS, it writes an entry in /etc/mtab describing the mount. Of course it's going to look similar to the fstab entry because the fstab entry tells it how it should be mounted! /proc/self/mounts might be useful, too? The OP wanted to see with which journaling option an ext3 FS is mounted. You can't get that from the /proc lists. -- paul It is important to realize that any lock can be picked with a big enough hammer. -- Sun System Network Admin manual -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: checking whether partition mounted as ext3
On Mon, 19 Jan 2004 02:39:14 +, Faheem Mitha wrote: On Sun, 18 Jan 2004 18:00:51 -0500, Paul Morgan [EMAIL PROTECTED] wrote: Running mount, as you suggest, will tell you with which options the FS was mounted, including the journaling mode. It just seems to echo what is in /etc/fstab. I wanted something which actually went and checked the partitions. BTW, I was under the impression that it was necessary to specify the mounting of root (/) at boot time, in the grub menu or some such, rather than /etc/fstab. I was just looking at stuff which suggested this may not be necessary. Can anyone point me to a definitive reference on this? Like I said, running mount will tell you how the FS is mounted. It does not echo what is in /etc/fstab. When it mounts an FS, it writes an entry in /etc/mtab describing the mount. Of course it's going to look similar to the fstab entry because the fstab entry tells it how it should be mounted! This is all written up in the mount man page. With regard to booting: if you don't specify the root filesystem at boot time, how is the OS going to find it? There is, apparently a default for the root filesystem compiled into the kernel - I don't know what it is, but I bet it's probably not very useful. /etc/fstab is used in an init script to mount the root FS ro for checking, and to then remount it rw. For more info: man boot man bootparams man init scripts in /etc/rcS.d (esp. S10checkroot.sh) -- paul It is important to realize that any lock can be picked with a big enough hammer. -- Sun System Network Admin manual -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: checking whether partition mounted as ext3
On 2004-01-19, Paul Morgan penned: With regard to booting: if you don't specify the root filesystem at boot time, how is the OS going to find it? There is, apparently a default for the root filesystem compiled into the kernel - I don't know what it is, but I bet it's probably not very useful. You can specify auto for the root type. It's not recommended, but it's possible. I have auto specified in my fstab -- I'm not sure what I was thinking when I did it, but it works and mounts the partition as ext3, based on the fact that my logs indicate that journalling was activated for the partition. -- monique -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: checking whether partition mounted as ext3
On Mon, 19 Jan 2004 09:43:51 -0700, Monique Y. Herman wrote: On 2004-01-19, Paul Morgan penned: With regard to booting: if you don't specify the root filesystem at boot time, how is the OS going to find it? There is, apparently a default for the root filesystem compiled into the kernel - I don't know what it is, but I bet it's probably not very useful. You can specify auto for the root type. It's not recommended, but it's possible. I have auto specified in my fstab -- I'm not sure what I was thinking when I did it, but it works and mounts the partition as ext3, based on the fact that my logs indicate that journalling was activated for the partition. I wasn't talking about the type but the device. Apparently there's a default device compiled into the kernel according to the bootparam manpage, `root=...' section. Now I read it again, it seems to indicate that if one builds one's own kernel, the default is the root device of the system it was built on, so, theoretically, one shouldn't need the root= parameter. I'll have to try that out. -- paul It is important to realize that any lock can be picked with a big enough hammer. -- Sun System Network Admin manual -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: checking whether partition mounted as ext3
* Faheem Mitha [EMAIL PROTECTED] [2004:01:19:02:39:14+] scribed: On Sun, 18 Jan 2004 18:00:51 -0500, Paul Morgan [EMAIL PROTECTED] wrote: On Sun, 18 Jan 2004 13:51:28 -0700, Doug Holland wrote: Run mount at the command line, with no arguments, and it'll tell you which filesystems are mounted with which fs types. I'm not sure how to tell which mode an ext3 partition is using, though I think running fsck may tell you. Running mount, as you suggest, will tell you with which options the FS was mounted, including the journaling mode. It just seems to echo what is in /etc/fstab. I wanted something which actually went and checked the partitions. snip / If you want to know what the running OS is using, look to /proc : cat /proc/self/mounts If that still tells you `ext3/ext2', then I suspect that the kernel and the filesystem have some kind of (code) agreement to dynamically negotiate -- but, that is only a guess ; hth -- Best Regards, mds mds resource 877.596.8237 - Dare to fix things before they break . . . - Our capacity for understanding is inversely proportional to how much we think we know. The more I know, the more I know I don't know . . . -- signature.asc Description: Digital signature
Re: checking whether partition mounted as ext3
On 2004-01-19, Paul Morgan penned: I wasn't talking about the type but the device. Apparently there's a default device compiled into the kernel according to the bootparam manpage, `root=...' section. Now I read it again, it seems to indicate that if one builds one's own kernel, the default is the root device of the system it was built on, so, theoretically, one shouldn't need the root= parameter. I'll have to try that out. Oops. Sorry; misread. -- monique -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: checking whether partition mounted as ext3
Quoting Michael D Schleif [EMAIL PROTECTED]: If you want to know what the running OS is using, look to /proc : cat /proc/self/mounts If that still tells you `ext3/ext2', then I suspect that the kernel and the filesystem have some kind of (code) agreement to dynamically negotiate -- but, that is only a guess ; hth An oddity: maelstorm:/proc# more mounts /dev2/root / ext3 rw 0 0 proc /proc proc rw 0 0 devpts /dev/pts devpts rw 0 0 /dev/hda2 /home ext2 rw 0 0 maelstorm:/proc# mount /dev/hda1 on / type ext2 (rw,errors=remount-ro) proc on /proc type proc (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) /dev/hda2 on /home type ext2 (rw) The first command claims root is ext3. The second claims root is ext2. I suspect the former is correct. I converted the original ext2 FS to ext3 and am now trying to revert. The journal file is still there and during the boot sequence, the kernel is probing for the root partition FS type. /etc/fstab says: /dev/hda1 / ext2errors=remount-ro 0 1 /dev/hda3 noneswapsw 0 0 proc/proc procdefaults0 0 /dev/fd0/floppy autouser,noauto 0 0 /dev/cdrom /cdrom iso9660 ro,user,noauto 0 0 /dev/hda2 /home ext2defaults0 2 /etc/mtab says: /dev/hda1 / ext2 rw,errors=remount-ro 0 0 proc /proc proc rw 0 0 devpts /dev/pts devpts rw,gid=5,mode=620 0 0 /dev/hda2 /home ext2 rw 0 0 The auto-probed FS type from boot persists in spite of the value in fstab. As to why revert to ext2, after conversion to ext3 and serveral other changes, the hard disk stays on all the time. I'm trying to figure out why. Anyone know how to safely convert an ext3 FS to ext2? Jeffrey -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: checking whether partition mounted as ext3
On Mon, 19 Jan 2004 15:22:42 -0600, Jeffrey L. Taylor wrote: As to why revert to ext2, after conversion to ext3 and serveral other changes, the hard disk stays on all the time. I'm trying to figure out why. Anyone know how to safely convert an ext3 FS to ext2? A quick google (hint, hint) turns up this: http://lists.debian.org/debian-user/2003/debian-user-200302/msg02782.html -- paul It is important to realize that any lock can be picked with a big enough hammer. -- Sun System Network Admin manual -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
WARNING Re: checking whether partition mounted as ext3
Quoting Paul Morgan [EMAIL PROTECTED]: On Mon, 19 Jan 2004 15:22:42 -0600, Jeffrey L. Taylor wrote: Anyone know how to safely convert an ext3 FS to ext2? A quick google (hint, hint) turns up this: http://lists.debian.org/debian-user/2003/debian-user-200302/msg02782.html Be sure you have a rescue/boot floppy before you do this. It trashed something related to booting and I got the classic LILO sequence: L 01 01 01 01 01 ad infinitum. I was able to boot using the floppy and rerun LILO. There are still warnings about ext3/ext2 confusion: ext3: No journal on filesystem on ide0(3,1) I'll review the ext2 - ext3 instructions and see if I can back out the remaining bits of ext3. Note: the hard disk light still stays on. I'm not sure I've banished all of ext3, so it may still be the reason. Jeffrey -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: checking whether partition mounted as ext3
On Mon, Jan 19, 2004 at 06:54:20AM -0500, Paul Morgan wrote: On Mon, 19 Jan 2004 02:39:14 +, Faheem Mitha wrote: On Sun, 18 Jan 2004 18:00:51 -0500, Paul Morgan [EMAIL PROTECTED] wrote: Running mount, as you suggest, will tell you with which options the FS was mounted, including the journaling mode. It just seems to echo what is in /etc/fstab. I wanted something which actually went and checked the partitions. BTW, I was under the impression that it was necessary to specify the mounting of root (/) at boot time, in the grub menu or some such, rather than /etc/fstab. I was just looking at stuff which suggested this may not be necessary. Can anyone point me to a definitive reference on this? Like I said, running mount will tell you how the FS is mounted. It does not echo what is in /etc/fstab. When it mounts an FS, it writes an entry in /etc/mtab describing the mount. Of course it's going to look similar to the fstab entry because the fstab entry tells it how it should be mounted! /proc/self/mounts might be useful, too? -- Pigeon Be kind to pigeons Get my GPG key here: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x21C61F7F pgp0.pgp Description: PGP signature
Re: checking whether partition mounted as ext3
Jeffrey L. Taylor [EMAIL PROTECTED] writes: Anyone know how to safely convert an ext3 FS to ext2? Have you tried booting with rootfstype=ext2 on the kernel command line? You shouldn't have to touch the journal on the filesystem; just tell the kernel not to use it. mahalo, Vineet -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: checking whether partition mounted as ext3
On Sun 18 Jan 2004 1:16 pm, Faheem Mitha wrote: Dear People, Just wondering if anyone knows of a easy and definitive way to determine whether a specific mounted partition is ext2 or ext3, and if ext3, whether is mounted as ordered data or journal. Currently, I look at the boot messages, but they are not always clear. Thanks in advance. Faheem. Run mount at the command line, with no arguments, and it'll tell you which filesystems are mounted with which fs types. I'm not sure how to tell which mode an ext3 partition is using, though I think running fsck may tell you. pgp0.pgp Description: signature
Re: checking whether partition mounted as ext3
On Sun, 18 Jan 2004 13:51:28 -0700, Doug Holland wrote: On Sun 18 Jan 2004 1:16 pm, Faheem Mitha wrote: Dear People, Just wondering if anyone knows of a easy and definitive way to determine whether a specific mounted partition is ext2 or ext3, and if ext3, whether is mounted as ordered data or journal. Currently, I look at the boot messages, but they are not always clear. Thanks in advance. Faheem. Run mount at the command line, with no arguments, and it'll tell you which filesystems are mounted with which fs types. I'm not sure how to tell which mode an ext3 partition is using, though I think running fsck may tell you. Running mount, as you suggest, will tell you with which options the FS was mounted, including the journaling mode. -- paul It is important to realize that any lock can be picked with a big enough hammer. -- Sun System Network Admin manual -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: checking whether partition mounted as ext3
On Sun, Jan 18, 2004 at 01:51:28PM -0700, Doug Holland wrote: Content-Description: signed data On Sun 18 Jan 2004 1:16 pm, Faheem Mitha wrote: Dear People, Just wondering if anyone knows of a easy and definitive way to determine whether a specific mounted partition is ext2 or ext3, and if ext3, whether is mounted as ordered data or journal. Currently, I look at the boot messages, but they are not always clear. Thanks in advance. Faheem. Run mount at the command line, with no arguments, and it'll tell you which filesystems are mounted with which fs types. That doesn't always work I gave the mount option in fstab to mount as ext3/ext2 (which resorts to ext2 if ext3 fails) and mount show ext3/ext2. Don't know if it would matter, but I'm scared to change that at the moment since its a mac G3 which I don't have a boot disk to so I would be left with a non-working server if I got it wrong ;-) I'm not sure how to tell which mode an ext3 partition is using, though I think running fsck may tell you. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: checking whether partition mounted as ext3
On Sun, 18 Jan 2004 18:00:51 -0500, Paul Morgan [EMAIL PROTECTED] wrote: On Sun, 18 Jan 2004 13:51:28 -0700, Doug Holland wrote: On Sun 18 Jan 2004 1:16 pm, Faheem Mitha wrote: Dear People, Just wondering if anyone knows of a easy and definitive way to determine whether a specific mounted partition is ext2 or ext3, and if ext3, whether is mounted as ordered data or journal. Currently, I look at the boot messages, but they are not always clear. Thanks in advance. Faheem. Run mount at the command line, with no arguments, and it'll tell you which filesystems are mounted with which fs types. I'm not sure how to tell which mode an ext3 partition is using, though I think running fsck may tell you. Running mount, as you suggest, will tell you with which options the FS was mounted, including the journaling mode. It just seems to echo what is in /etc/fstab. I wanted something which actually went and checked the partitions. BTW, I was under the impression that it was necessary to specify the mounting of root (/) at boot time, in the grub menu or some such, rather than /etc/fstab. I was just looking at stuff which suggested this may not be necessary. Can anyone point me to a definitive reference on this? Thanks. Faheem. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]