-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Abhijeet D Mhatre wrote:
Hi Friends I want to carry out some file system repairs (fsck, badblocks, etc)
The problem is that I want to carry out the repairs on my root partition and swap partitions but when my system boots those partitions are already mounted.
There should be a way in which, after my system boots I unmount the partitions or else my system boots such that the partitions are not used at all.
That brings us to the typical chicken and egg situation. You want to fsck root by getting out of it, but you cant use fsck if you are out of it. I have seen many distros do fsck on boot at certain regular intervals of time. So i am sure its possible, I dont know how they do it. But u might want to look at the init/shutdown scripts of distros like Slackware or RH as these are the two that i know do it.
- -- Bhargav Bhatt, Department of Applied Physics and Applied Mathematics, Columbia University. - -- "If English was commutative, we could all talk like Yoda." - Anonymous.