[clug] bebug puzzel

Scott Ferguson scott.ferguson.clug at gmail.com
Sat Feb 1 06:21:10 MST 2014


CORRECTION

My sincerest apologies - it's late, and I'm distracted, the line I asked
you to use is wrong and won't work (it won't cause any problems though)
see below for the correct information.

<snipped>

Identify the /root slice
then run e2fsck on it
> 
> from where you get that message:-
> type and hit Enter (firmly):-
mount | grep "\/ " | grep \(ro`

the first field (left hand side) of the output will hold the device id
or UUID of the relevant /root slice.

if it's a device id it'll be /dev/sd$something where $something will be
either "a" followed by a number, or "b" followed by a number. Use that
/dev/sd$something with e2fsck e.g.:-
e2fsck -p /dev/sdb1

if it's a UUID (most likely) the it'll be something like:-
/dev/disk/by-uuid/2a8e276d-77ee-4b74-a96b-6f53ebc5633d
and you'll have to convert that to a /dev/sd$something value to give to
e2fsck
do that using blkid e.g.:-
blkid | grep 2a8e  (where 2a8e is the first four characters of the UUID)
in the first field (left-hand side) of the result you'll see the device
id e.g.:-
blkid | grep 2a8e
/dev/sda1: UUID="2a8e276d-77ee-4b74-a96b-6f53ebc5633d" TYPE="ext3"

/dev/sd$something with e2fsck e.g.:-
e2fsck -p /dev/sda1

Apologies, I could use cut but then you'd have more typing.

<snipped>

Kind regards


More information about the linux mailing list