drive check hangs on startup and asks for user confirmation ?!

drive check hangs on startup and asks for user confirmation ?!

Post by Bonny Gijze » Thu, 27 Mar 2003 19:51:36



Hi,

I am test running an embedded Linux product.
It really is a standard industrial PC running a minimized Linux distro on a
compactflash disk.

The root filesystem is mounted as RO, although I set it to RO from
rc.sysinit.
Perhaps it is better to set it to RO from fstab ?
(can anybody give me an example?)

Back to the problem:

Today I needed to change a parameter, so I logged in on the box,
mounted the root fs as RW and opened some config file, changed it, and saved
it.

Then I rebooted the box (without changing the fs to RO again, becuase I
always do it like this ..)
and after the box booted again I saw this on the console:

hdc1 (my compactflash drive) not properly unmounted.
Check forced
..

then it found some damaged INODE and asked the user to repair it or not, so
the system hung
while waiting for YES or NO.

Is there any way to prevent the system from doing this?
I mean, to automaticly let it repair the inode's or  ignore the check, or
... ?

Also, why would this have happened?
The box rebooted fine after closing its apps, and unmounting its
filesystems,
so I really have no idea why this happens and if it will happen more in the
future ....

--
Many regards,

Bonny Gijzen
TB Systems
Holland

 
 
 

drive check hangs on startup and asks for user confirmation ?!

Post by Damion de Sot » Fri, 28 Mar 2003 09:43:09


Hi Bonny,

If you're not writing to the filesystem at all, then you may as well
make it RO from fstab.  just add the ro option after the defaults option
"defaults,ro"

fsck by default runs in interactive mode.  you can turn this off with
the -p and -y options.
(or perhaps -a depending on your version of fsck)

Not sure why it would've happened if it got unmounted correctly.
perhaps your flash card didn't really finish unmounting even though the
driver thought it had or something weird.

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

SnapGear ---                            ph:         +61 7 3435 2809
  | Custom Embedded Solutions           fax:         +61 7 3891 3630
  | and Security Appliances             web: http://www.snapgear.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 
 
 

drive check hangs on startup and asks for user confirmation ?!

Post by Bonny Gijze » Sat, 29 Mar 2003 16:19:15


Thankx

--
Many regards,

Bonny Gijzen
TB Systems
Holland



> Hi Bonny,

> If you're not writing to the filesystem at all, then you may as well
> make it RO from fstab.  just add the ro option after the defaults option
> "defaults,ro"

> fsck by default runs in interactive mode.  you can turn this off with
> the -p and -y options.
> (or perhaps -a depending on your version of fsck)

> Not sure why it would've happened if it got unmounted correctly.
> perhaps your flash card didn't really finish unmounting even though the
> driver thought it had or something weird.

> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

> SnapGear ---                            ph:         +61 7 3435 2809
>   | Custom Embedded Solutions           fax:         +61 7 3891 3630
>   | and Security Appliances             web: http://www.snapgear.com
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 
 
 

1. IBM drive hangs at partition check

I have just acquired an IBM DJNA-351520 15GB UATA/66 hard drive. After
installing Mandrake 9.0 on it and rebooting, it hangs when it does a
partition check. Is this because my old computer doesn't support UATA/66
drives? If so, is there anything I can do about it? I'm running a Celeron
333 with 256MB RAM.

Thanks,
Wayne

2. installing solaris 9

3. cron job and e-mail confirmation to users

4. Can a-term/xterm/rxvt use .ttf fonts?

5. Matrox Mystique ands X.

6. Connecting a modem

7. Checking permissions for other user, while running script as one user

8. X-windows dos server. help

9. Tomcat startup/shutdown behavior checking

10. Checking the filesystems on startup

11. Compaq Presario 1500 : "Partition Check" freeze on startup

12. avoiding but satisfying disk check on startup

13. checking email at startup