Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-17-2006, 11:02 PM
|
#1
|
Member
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 564
Rep:
|
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
|
|
|
07-17-2006, 11:26 PM
|
#2
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
ext3 is 'included' in the kernel, not as a module. You'll be fine.
|
|
|
07-18-2006, 01:51 AM
|
#3
|
Senior Member
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191
Rep:
|
/boot/README.initrd backs up cwwilson's responce. Good reading material if you want more info.
regards,
...drkstr
|
|
|
07-18-2006, 10:36 AM
|
#4
|
Member
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 564
Original Poster
Rep:
|
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
|
|
|
07-18-2006, 11:40 AM
|
#5
|
Senior Member
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191
Rep:
|
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
|
|
|
07-19-2006, 05:11 PM
|
#6
|
Member
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 564
Original Poster
Rep:
|
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 11:39 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|