You are not logged in.

#1 2009-08-18 00:13:10

void.pointer
Member
From: Dallas, TX
Registered: 2008-07-30
Posts: 239

Remind me how to run fsck...

Hey guys,

I haven't used linux in a while and I'm having a brain fart. My system doesn't boot, it says:

error: { UNC }

Along with a bunch of other jibberish. My first attempt to solve the problem will be to run fsck, however since my system won't boot I can't remember how to run it elsewhere. I have to use the install CD for archlinux right?

Offline

#2 2009-08-18 00:26:32

void.pointer
Member
From: Dallas, TX
Registered: 2008-07-30
Posts: 239

Re: Remind me how to run fsck...

Sorry for being so vague in my initial post.

So I figured out what I need to do, I ran from the CD and booted into ArchLive. I'm using LVM, so I'm not sure how that affects the usage of fsck. I tried this:

fsck -a /dev/sda2

This resulted in:

fsck.lvm2pv not found

I'm probably missing an important step.

Offline

#3 2009-08-18 00:32:07

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: Remind me how to run fsck...

you might need to modprobe dm_mod first


neutral

Offline

#4 2009-08-18 00:35:51

void.pointer
Member
From: Dallas, TX
Registered: 2008-07-30
Posts: 239

Re: Remind me how to run fsck...

sand_man, I just tried that but I get the same error. Anything else I can try? Thanks for the help so far.

Offline

#5 2009-08-18 01:43:27

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: Remind me how to run fsck...

Perhaps you are not addressing the correct partition?


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#6 2009-08-18 01:56:31

void.pointer
Member
From: Dallas, TX
Registered: 2008-07-30
Posts: 239

Re: Remind me how to run fsck...

Hmm, well I have 2 partitions... sda1 which is my boot drive, and is only about 100MB or so. The second is sda2 and it is the "Linux LVM" drive. By itself it is useless, since I'm running through LVM. I tried:

fsck -a /dev/sda2

I'm not sure what else I can try. I tried my LVM logical volume with fsck too, but that didn't work out.

Offline

#7 2009-08-18 12:28:05

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: Remind me how to run fsck...

which is why - in _my_ humble opinion - lvm is a no-go!!
This is exactly the kind of problems that lvm can lead to; it's great when it works, but when you have problems, you are almost helpless.

Sorry for not being able to offer a solution, but I do believe people should be aware of the risks involved when using 'exotic' setups.

Offline

#8 2009-08-18 12:40:02

t4k1t
Member
Registered: 2009-07-19
Posts: 123

Re: Remind me how to run fsck...

maybe you forgot to activate the lvm-partitions?


Who we are is but a stepping stone to what we can become.

Offline

#9 2009-08-18 13:00:41

void.pointer
Member
From: Dallas, TX
Registered: 2008-07-30
Posts: 239

Re: Remind me how to run fsck...

t4k1t wrote:

maybe you forgot to activate the lvm-partitions?

That sounds familiar. How do I activate that? modprobe?

Offline

#10 2009-08-18 13:53:11

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Remind me how to run fsck...

The file system is within the LV, so you need to fsck that - ./dev/sda2 does not have a file system.

If you haven't used linux for a while, you need to re-familiarise yourself with the necessary commands. Have a look a the wiki's LVM page for a start, also the various lvm man pages. If you're feeling lazy, there are some live CDs that scan for LVs at boot time, and auto-activate any they find - sysresscd and chaox do, AFAIR, and I'm sure there are others.

perbh - love the attitude. For me, exotic setups ftw! smile

Offline

#11 2009-08-18 14:32:15

t4k1t
Member
Registered: 2009-07-19
Posts: 123

Re: Remind me how to run fsck...

void.pointer wrote:
t4k1t wrote:

maybe you forgot to activate the lvm-partitions?

That sounds familiar. How do I activate that? modprobe?

with:

# vgchange -ay <volgroup>

Who we are is but a stepping stone to what we can become.

Offline

#12 2009-08-18 16:01:08

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: Remind me how to run fsck...

@tomk
*lol* as you may have guessed - I'm of the 'old' school (almost undecently old).
I prefer 'straight-forward' partitions and filesystems and I much prefer mount/umount to all that auto-stuff.
he he - I almost do not use X - but I must admit that browsing from the command line is somewhat awkward ... ;-)

Offline

#13 2009-09-20 22:14:19

void.pointer
Member
From: Dallas, TX
Registered: 2008-07-30
Posts: 239

Re: Remind me how to run fsck...

Okay so I ran fsck on my logical volume, and now I'm getting:

fsck.ext3: Attempt to read block from filesystem resulted in short read while checking ext journal for /dev/vg01/root

What can I do about this? Thanks in advance for help.

Offline

Board footer

Powered by FluxBB