Re: fsck at boot, skip a disk ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Robert Nichols wrote:
> Mikkel L. Ellertson wrote:
>> Mathew Snyder wrote:
>>
>>> I believe the "1" referred to is another way of saying "single" which
>>> will do what is being described.
>>>
>>
>> I think you had better try it. On my FC5 system, booting into the
>> single user mode (run level 1) still mounts all local file systems.
>> So if you need to edit /etc/fstab to get the system to boot, you are
>> not going to be able to do it. This is because when booting to any
>> run level, /etc/rc.d/rc.sysinit is run before the run level specific
>> stuff, and this is where the local file systems are mounted.
> 
> What you need is "emergency" mode.  That will give you a shell, and
> with the root filesystem mounted read-only.  Nothing else besides
> the pseudo-fileystems (/dev, /sys, /proc) will be mounted.  In
> order to edit /etc/fstab you'll have to remount the root filesystem
> read-write, and if your favorite editor resides in /usr/bin and /usr
> is a separate filesystem, then you'll need to mount /usr too.
> 
I usually just edit the boot line to remove the RO and add
init=/bin/bash. That skips init completely, and puts me at the
command prompt as root. From there you can mount /usr if necessary,
and the root file file system is already mount RW.

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux