LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   initrd Question (https://www.linuxquestions.org/questions/slackware-14/initrd-question-465038/)

TSquaredF 07-17-2006 10:02 PM

initrd Question
 
I have both a desktop & a laptop running -current & kernel 2.6.16.24, vanilla from extra. My desktop has a separate /boot partition, formatted ext2, as it is less than 10 MB. The rest of the drive is formatted ext3. The only partition (except for swap) on the laptop is formatted ext3. Both of these boxes boot & run without an initrd. I assume that this is so ( on the desktop ) because of the ext2 formatted /boot directory. Running lsmod shows that the ext3 module is loaded. But why is the laptop working? Boot messages show the partition initially mounted ro & later changed to ext3 rw, but no ext3 module is loaded. Is it possible that despite showing that it is ext3, that it is mounted as ext2? Output of the mount command also shows it as ext3. I'm thinking of backing up the partition on the laptop, then adding a small /boot partition so it will be similar to the desktop. At least then they'd both be the same, except they probably wouldn't act similar! Any comments appreciated.
Regards,
Bill

cwwilson721 07-17-2006 10:26 PM

ext3 is 'included' in the kernel, not as a module. You'll be fine.

drkstr 07-18-2006 12:51 AM

/boot/README.initrd backs up cwwilson's responce. Good reading material if you want more info.

regards,
...drkstr

TSquaredF 07-18-2006 09:36 AM

Quote:

ext3 is 'included' in the kernel, not as a module. You'll be fine.
Ah, but it isn't 'included'. It _is_ a module. Running 'make menuconfig' shows that the only fs included is ext2.
Quote:

/boot/README.initrd backs up cwwilson's responce.
But, it doesn't. The README.initrd says that you have to have an initrd in order to boot from an ext3 fs.
Other clues: During boot I get the following messages (at different times):
Quote:

EXT2-fs warning (device hda2): ext2_fill_super: mounting ext3 filesystem as ext2
VFS: Mounted root (ext2 filesystem) readonly.
And later (after the hda2 fsck messages):
Quote:

Remounting root device with read-write enabled.
/dev/hda2 on / type ext3 (rw)
The above quotes are from the laptop. which has no ext2 fs on it. The desktop does exactly the same, except running 'lsmod' on the desktop shows the ext3 module loaded, but not on the laptop.
I can remember leaving out the initrd after installing a Slack 2.6 series kernel & having to junp through a few minor hoops to get the system to boot. Now, it seems, I don't have to worry about that.
Regards,
Bill

drkstr 07-18-2006 10:40 AM

you would be correct, I must of read the README a little to quickly. It looks like your system is mounting it as ext2 during the initial startup, then it remounts as ext3 when all the support is loaded. ...But I'm sure you figured this out all ready. I'm not quire sure how this works exactly, but I would be interested in finding out.

...drkstr

TSquaredF 07-19-2006 04:11 PM

Well, after a little more work, I think I have this figured. I have a 500 MB partition on my HD in which I have a minimal Slackware installation. I occasionally use it as a rescue partition, instead of using a live CD. I mounted it & renamed the modules directiory so that it couldn't be found, then booted into it. It gave me a warning or two about not being able to find modules, but quietly mounted the / partition, first as ext2 ro. Then, later, it said that it remounted it as ext3 rw. But I am fairly certain it didn't change the fs type. It would not mount any other partition ext3, using the mount command, but would give an unknown filesystem error. Restoring the modules directory & rebooting restored normal operation. I don't have another partition on my laptop to test whether it will mount another ext3 partition, but I may try to shrink the one that is there & find out. But, at least in my case, it appears that if there is a seperate ext2 /boot partition, an initrd is not needed to boot into an ext3 fs.
Regards,
Bill


All times are GMT -5. The time now is 01:29 AM.