Errors in file system !

Asked by Rich.b

OS Ubuntu 12.04 Dell 2400 Dimmension.

At start the system starts checking the file each time the PC is switch on.

Please advise as to what to do?

Thanks for any help

Kind regards,

Richard

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Rich.b
Solved:
Last query:
Last reply:
Revision history for this message
Ubfan (ubfan1) said :
#1

How are you shutting the system down? Just turning off power will leave a "dirty" filesystem, forcing a check next reboot. Use the "shutdown" choice instead a power button. You can install the smartmontools package to get a disk checking utility:
sudo smartctl -a /dev/sda
And check the "When Failed" column. for any disk problems.

Revision history for this message
Manfred Hampl (m-hampl) said :
#2

I recommend that you boot into a live system (by using an Ubuntu installation kit on DVD or USB stick in the "Try Ubuntu without installing" mode) and perform a full filesystem check on your hard disk partition(s).

Revision history for this message
Rich.b (aybi30) said :
#3

Thanks Ubfan,

I shut down using the normal route which I always used ( top right of screen and select Shut down)

Ran GSmart Control all seams to be OK.

Ran Extended Self Test and the Short Self Test, both Completed without error.

Although at restart "Checking disk for Errors" started again

Can I switch this off and only do this check every 30 start up as it used to do?

PC seams run OK but have notice that since an update the screen goes to black some times when I have clicked on something!

Revision history for this message
Rich.b (aybi30) said :
#4

Thanks Manfred,

I will try that soon.

Revision history for this message
Rich.b (aybi30) said :
#5

So how do I do that Manfred - perform a full filesystem check now that I have started from a live cd?

Revision history for this message
Rich.b (aybi30) said :
#6

I did run Rescatux and most things said that they were OK.

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

open a terminal window and issue the command

sudo fdisk -l

this should list the partitions. Select those that are listed as "Linux", and then run fsck on them

If your root system is /dev/sda1, then the command most probably has to be

sudo fsck -f /dev/sda1

Revision history for this message
Rich.b (aybi30) said :
#8

While using a live CD ?

I tried this :- "sudo fdisk-l" (in Terminal) and got this :- sudo: fdisk-l: command not found, the same for:- sudo fsck -f /dev/sda1 command not found. see below:-

ubuntu@ubuntu:~$ sudo fsck-f/dev/sda1
sudo: fsck-f/dev/sda1: command not found
ubuntu@ubuntu:~$ sudo fdisk-l
sudo: fdisk-l: command not found
ubuntu@ubuntu:~$

Revision history for this message
Rich.b (aybi30) said :
#9

Sorry I left out spaces:-

ubuntu@ubuntu:~$ sudo fdisk -l

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00080934

   Device Boot Start End Blocks Id System
/dev/sda1 * 63 153372554 76686246 83 Linux
/dev/sda2 153372555 156296384 1461915 5 Extended
/dev/sda5 153372618 156296384 1461883+ 82 Linux swap / Solaris
ubuntu@ubuntu:~$

Revision history for this message
Manfred Hampl (m-hampl) said :
#10

yes, you missed the space characters,
yes, it is /dev/sda1

Revision history for this message
Rich.b (aybi30) said :
#11

ubuntu@ubuntu:~$ sudo fsck -f /dev/sda1
fsck from util-linux 2.20.1
e2fsck 1.42.5 (29-Jul-2012)
/dev/sda1 is mounted.
e2fsck: Cannot continue, aborting.

ubuntu@ubuntu:~$

How do I unmount sda1

Revision history for this message
Rich.b (aybi30) said :
#12

I am still running a live CD

Revision history for this message
Manfred Hampl (m-hampl) said :
#13

sudo umount /dev/sda1

Revision history for this message
Rich.b (aybi30) said :
#14

Sorry I have now found how to umount sda1

Running sudo: fsck-f/dev/sda1

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
/dev/sda1: 2777556/4800512 files (0.1% non-contiguous), 14800566/19171561
Ubuntu@Ubuntu:~$

Revision history for this message
Manfred Hampl (m-hampl) said :
#15

Ok, the file system seems to be in a consistent state again.
There should not be another check of the file system at the next normal booting.

Revision history for this message
Rich.b (aybi30) said :
#16

All OK and thank you again Manfred