[FAQ pointer] Re: How to start single user mode or safe mode

Matthew Seaman m.seaman at infracaninophile.co.uk
Mon Feb 23 11:54:13 PST 2004

On Tue, Feb 24, 2004 at 03:38:35AM +0800, Stephen Liu wrote:

This one is fine...

> # fsck /dev/ad4s1a  (I suppose boot)

but these two aren't:

> # fsck /dev/ad4s1b  (I suppose swap)
> # fsck /dev/ad4s1c  (I suppose /)

You can only run fsck(8) on partitions containing filesystems.  The
'b' partition is usually a swap area, which doesn't use any sort of
filesystem at all.  The 'c' partition usually maps to the whole slice
-- that is, it overlaps all of the actual partitions you're using for
your file systems.  You very rarely need to access the 'c' partition
specifically -- commands that affect the whole slice nowadays tend to
take ad4s1 or the equivalent as an argument.

Your /var and /usr partitions probably live on partitions 'e' and 'f'
-- possibly 'g' or 'h' as well if you have any other
partitions. disklabel(8) will show you what partitions have been



Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040223/2b770724/attachment.bin

More information about the freebsd-questions mailing list