[opensuse] Booting when /lib is on separate filesystem
Hi all. This is more of a generic question but there are lots of knowledgeable people here so I think it is a good place to ask. A while back I tried to compile and install a new kernel but ran out of space on the root filesystem. To fix this I tried moving /lib onto a separate spare partition. I updated /etc/fstab but then found that the system would not boot because /lib wasn't mounted early enough. Is there a correct way (or an elegant way) to fix this? Does it require a rebuild of initrd? Any suggestions will be appreciated. Regards, -- ============================================================= Rodney Baker VK5ZTV rodney.baker@optusnet.com.au ============================================================= -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Rodney Baker <rodney.baker@optusnet.com.au> writes:
Hi all. This is more of a generic question but there are lots of knowledgeable people here so I think it is a good place to ask.
A while back I tried to compile and install a new kernel but ran out of space on the root filesystem. To fix this I tried moving /lib onto a separate spare partition. I updated /etc/fstab but then found that the system would not boot because /lib wasn't mounted early enough.
Is there a correct way (or an elegant way) to fix this? Does it require a rebuild of initrd?
/lib needs to be on the root filesystem. Otherwise all files could be in /usr/lib as well - /lib was created to contain those libs that are needed for booting so that /usr can be on a separate partition, Andreas -- Andreas Jaeger, Director Platform/openSUSE, aj@suse.de SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Maxfeldstr. 5, 90409 Nürnberg, Germany GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
On Fri, 16 Nov 2007, Andreas Jaeger wrote:
Rodney Baker <rodney.baker@optusnet.com.au> writes:
Hi all. This is more of a generic question but there are lots of knowledgeable people here so I think it is a good place to ask.
A while back I tried to compile and install a new kernel but ran out of space on the root filesystem. To fix this I tried moving /lib onto a separate spare partition. I updated /etc/fstab but then found that the system would not boot because /lib wasn't mounted early enough.
Is there a correct way (or an elegant way) to fix this? Does it require a rebuild of initrd?
/lib needs to be on the root filesystem. Otherwise all files could be in /usr/lib as well - /lib was created to contain those libs that are needed for booting so that /usr can be on a separate partition,
Andreas
Thanks for the clarification, Andreas. -- ====================================================== Rodney Baker VK5ZTV rodney.baker@optusnet.com.au ====================================================== -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Rodney Baker wrote:
Hi all. This is more of a generic question but there are lots of knowledgeable people here so I think it is a good place to ask.
A while back I tried to compile and install a new kernel but ran out of space on the root filesystem. To fix this I tried moving /lib onto a separate spare partition. I updated /etc/fstab but then found that the system would not boot because /lib wasn't mounted early enough.
Is there a correct way (or an elegant way) to fix this? Does it require a rebuild of initrd?
Use the install disk and boot into the system rescue, and move the /lib directory back onto the root partition. Just out of curiosity, why would you move such a crucial directory off of the root filesystem, instead of moving another directory to a different filesystem? /sbin, /bin, /etc, and /lib *MUST* be on the root partition.
Any suggestions will be appreciated.
Yeah...remember, when you run out of room on one filesystem you can place a non-critical directory on a different filesystem, but make it APPEAR to be in the "right place" by using symbolic links man ls and look at the -s option For example, currently, I have /local in the /home filesystem. How did I do this? $ mv /local /home/local $ ln -s /home/local /local $ ls -al / | grep local lrwxrwxrwx 1 root root 11 2006-12-26 10:58 local -> /home/local % ls /local administrator-en.pdf download etc_10.1 fill_help_tables-5.0.sql fill_help_tables-5.0.sql.gz fill_help_tables-5.1.sql fill_help_tables-5.1.sql.gz fonts guibook-en.pdf internals-en.pdf query-browser-en.pdf refman-5.0-en.html-chapter.tar refman-5.0-en.html-chapter.tar.gz refman-5.0-en.man.tar refman-5.0-en.man.tar.gz refman-5.0-en.pdf refman-5.1-en.html-chapter.tar.gz refman-5.1-en.man.tar.gz refman-5.1-en.pdf rip rp-pppoe-3.8.tar.gz sakila-en.pdf seamonkey-1.1b.en-US.linux-i686.installer.tar.gz world-setup-en.pdf world.sql.gz % ls /home/local administrator-en.pdf download etc_10.1 fill_help_tables-5.0.sql fill_help_tables-5.0.sql.gz fill_help_tables-5.1.sql fill_help_tables-5.1.sql.gz fonts guibook-en.pdf internals-en.pdf query-browser-en.pdf refman-5.0-en.html-chapter.tar refman-5.0-en.html-chapter.tar.gz refman-5.0-en.man.tar refman-5.0-en.man.tar.gz refman-5.0-en.pdf refman-5.1-en.html-chapter.tar.gz refman-5.1-en.man.tar.gz refman-5.1-en.pdf rip rp-pppoe-3.8.tar.gz sakila-en.pdf seamonkey-1.1b.en-US.linux-i686.installer.tar.gz world-setup-en.pdf world.sql.gz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 2007-11-16 at 07:07 -0500, Aaron Kulkis wrote:
Yeah...remember, when you run out of room on one filesystem you can place a non-critical directory on a different filesystem, but make it APPEAR to be in the "right place" by using symbolic links
man ls
and look at the -s option
Just so the OP doesn't get confused, I think you meant to say man ln, not ls. :-) -- ---Bryen--- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Bryen wrote:
On Fri, 2007-11-16 at 07:07 -0500, Aaron Kulkis wrote:
Yeah...remember, when you run out of room on one filesystem you can place a non-critical directory on a different filesystem, but make it APPEAR to be in the "right place" by using symbolic links
man ls
and look at the -s option
Just so the OP doesn't get confused, I think you meant to say man ln, not ls. :-)
Oops! Yes, you are correct -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Aaron Kulkis
-
Andreas Jaeger
-
Bryen
-
Rodney Baker