LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 07-17-2006, 10:02 PM   #1
TSquaredF
Member
 
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 490
Blog Entries: 1

Rep: Reputation: 55
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
 
Old 07-17-2006, 10:26 PM   #2
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 65
ext3 is 'included' in the kernel, not as a module. You'll be fine.
 
Old 07-18-2006, 12:51 AM   #3
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

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

regards,
...drkstr
 
Old 07-18-2006, 09:36 AM   #4
TSquaredF
Member
 
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 490
Blog Entries: 1

Original Poster
Rep: Reputation: 55
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
 
Old 07-18-2006, 10:40 AM   #5
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
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
 
Old 07-19-2006, 04:11 PM   #6
TSquaredF
Member
 
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 490
Blog Entries: 1

Original Poster
Rep: Reputation: 55
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
a question about suse initrd aeolus Suse/Novell 5 11-04-2005 10:37 AM
Initrd????? rm6990 Linux - Software 5 10-15-2004 03:32 AM
initrd tekbuz Debian 2 08-04-2004 12:34 PM
Kernel upgrade - initrd question bradmo Debian 4 06-18-2004 01:03 PM
[Question]make initrd error frid Linux - General 9 03-31-2004 07:26 PM


All times are GMT -5. The time now is 05:57 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration