LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-24-2007, 11:03 PM   #1
extendedping
Member
 
Registered: Feb 2004
Posts: 210

Rep: Reputation: 30
Please help me run fsck from a live cd to check my hard drive...


hi all, I have been having many issues (freezing when opening apps to be exact) on my fedora 6 computer. I have since burnt a fedora 6 live cd (using it now) and the computer seems to be working fine off of it. I am assuming that since this runs off memory (correct?) that this shows that the issue is either with a bad install of fedora 6 (got the os from a book)or perhaps from the hard drive. as such I am trying to use fsck (for the first time) from the live cd to check my installed fedora. I run fdisk -l and get this..

[root@localhost ~]# fdisk -l

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 9729 78043770 8e Linux LVM

Disk /dev/dm-0: 3221 MB, 3221225984 bytes
255 heads, 63 sectors/track, 391 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-0 doesn't contain a valid partition table

I am assuming that I am looking at the actual installed partitions on my harddrive as opposed to some virtual partition from the live cd that I am running...assuming
I then run the command fdisk (using every option I could find on the man page) and get this...

[root@localhost ~]# fsck -cbfy /dev/hda1
fsck 1.39 (29-May-2006)
e2fsck 1.39 (29-May-2006)
/boot: recovering journal
Checking for bad blocks (read-only test): 0/ done
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

/boot: ***** FILE SYSTEM WAS MODIFIED *****
/boot: 43/26104 files (7.0% non-contiguous), 20885/104388 blocks
[root@localhost ~]#

Not sure what is means but at least it ran the command and it executed ok...so then I look at the other partition that I saw from the fdisk -l command and I get this...

[root@localhost ~]# fsck -cbfy /dev/hda2
fsck 1.39 (29-May-2006)
e2fsck 1.39 (29-May-2006)
fsck.ext2: Device or resource busy while trying to open /dev/hda2
Filesystem mounted or opened exclusively by another program?
[root@localhost ~]#

hmm its not mounted (when I ran umount /dev/hda2 it said device not mounted...)so what is up? is this the partition on my actual installed fedora 6 or some virtual partition that is made from the live cd...also I don't know if it makes a difference but as you can see from the fdisk -l command the partition type for /dev/hda2 was 8e which I think should be the logical volume. So basically I burnt and ran the live cd in order to run this command to check the installed partition via fsck but still do not know how to do this...your help or thoughts are greatly appreciated...

Last edited by extendedping; 01-24-2007 at 11:05 PM.
 
Old 01-25-2007, 04:55 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
I see you are using LVM, which I admit I know nothing about.
My version of fsck does not have the options c b or f, so I am not sure what you have done here (and it might be something bad, as your output says "FILESYSTEM WAS MODIFIED", but it doesn't tell you what was modified or why.

That said, the simplest way to fsck your drives is just to reboot with the following command:
shutdown -rF now
The r means "reboot" and the F means run fsck before the filesystems are mounted.
If this doesn't solve your problem, I'd suggest you backup your personal files, and reinstall from your CD.
 
Old 01-25-2007, 07:34 AM   #3
evildarknight
Member
 
Registered: Nov 2006
Location: Paradise Mauritius
Distribution: Debian lenny, Jlime,Delilinux
Posts: 57

Rep: Reputation: 15
LVM are bad new stick to the old and good ext3
got some bugs with fedora running on LVM
grub would not boot the partitions sometimes
me would suggest to backup and reinstall using ext3
 
Old 01-25-2007, 08:59 PM   #4
extendedping
Member
 
Registered: Feb 2004
Posts: 210

Original Poster
Rep: Reputation: 30
ok I perhaps should start a new thread but...I did the shutdown -rF and it did the fsck and did not report any errors...however the computer still freezes after a few minutes. I also ran the live disk fine all day today with no issues so I think that would eliminate the memory as an issue? tonight I reburnt a dvd and reinstalled hoping it was a buggy fedora ... sadly the computer just freezes again after a few minutes. I can move the mouse around but cannot highlight anything. So I am at a loss... the fsck on reboot does not show any errors and it runs the live cd off memory with no issues. I have tried 2 seperate video cards and it froze with both. thing is, if my computer is hosed I would at least live to try to fix it but I have no idea where to start. any thoughts? thanks sad linux newbie
 
Old 01-26-2007, 08:44 AM   #5
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Yes, by all means start a new thread.

But also, look at your hard drive(s). Hint: type "man hdparm" at a command line and then use the command to see whether you have sensible parameters... I don't know fedora, if you use KDE there are loads of system control gadgets included there.

Last edited by JZL240I-U; 01-26-2007 at 08:46 AM.
 
Old 01-27-2007, 02:35 AM   #6
evildarknight
Member
 
Registered: Nov 2006
Location: Paradise Mauritius
Distribution: Debian lenny, Jlime,Delilinux
Posts: 57

Rep: Reputation: 15
try
Dmesg | less
as root
and post the result here
try posting your syslog file and xorglog file here also these are found in /var/log
don't give up yet

Last edited by evildarknight; 01-27-2007 at 02:37 AM. Reason: lousy typing skills
 
Old 01-29-2007, 03:35 PM   #7
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Also:
Code:
smartctl -a /dev/hda  | less

# or

smartctl -H /dev/hda
might help.

Sounds to me like your HD may be flakey -- how old is it?
 
Old 01-30-2007, 03:17 PM   #8
extendedping
Member
 
Registered: Feb 2004
Posts: 210

Original Poster
Rep: Reputation: 30
thanks all...I reseated the cpu and I totally lost my video...or my harddrive don't know...I can't even see the bios messages though the computer so I firure the hd is now totally gone...so friendly forum friends, if you want to help me now please see my new issue in the hardware forum...because I got a new pc and its not working well with linux either

http://www.linuxquestions.org/questi...d.php?t=524150
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I ran fsck.vfat to repair hard drive, and got a bunch of .REC files ! wearetheborg Linux - Hardware 12 04-14-2007 05:54 AM
Hard drive; file system error; fsck failure linubex Mandriva 16 07-24-2006 08:50 PM
Hard drive; file system error;automate fsck jumbo25 Linux - Software 1 10-05-2005 12:08 AM
fsck and lost hard drive space LinuxGeek Linux - Software 1 07-19-2005 08:17 PM
hard-drive check cmandan Linux - General 1 10-02-2003 02:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration