[plug] Upgrade filesystem

Cameron Patrick cameron at patrick.wattle.id.au
Mon Dec 15 02:21:35 WST 2003


On Mon, Dec 15, 2003 at 02:02:58AM +0800, Craig Ringer wrote:
| James Devenish wrote:
[...]
| >Assuming you don't have an initrd-style system (I don't even know what
| >that is),

(Why did you think that an initrd would be a special case if you didn't
know what one was?)

[snip Craig's excellent description of an initrd]
| > - tune2fs -j /path/to/dev (for each fs to be changed)
| > - change ext2 to ext3 in /etc/fstab
| 
| You'll want to rebuild your initrd if you're using a stock debian 
| kernel. 'mkinitrd' comes to mind.

Hmm, surely they wouldn't be so silly as to have ext3 support built as a
module...?  Nope, you're right, they have.  OTOH it appears to be
included in the default set of initrd modules, ext3 root fs or no.

Also it seems as though you don't even need to tune2fs -j the root
partition if you're using Debian's initrd scripts:

(cameron at erdos ~) cat /usr/share/initrd-tools/scripts/e2fsprogs.mkinitrd 
#!/bin/sh
ext3root=`grep -v '^ *#' /etc/fstab | awk '{ if (($2 == "/") && ($3 == "ext3")) {print $1;}}'`
if test -n "$ext3root" ; then
    /sbin/tune2fs -O has_journal $ext3root > /dev/null
fi

| > - reboot
| Craig Ringer

(I'm not even going to ask how one goes about rebooting Craig Ringer.)

Cameron.





More information about the plug mailing list