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.
regards Abhijeet D Mhatre
Hi,
You can use rescue disk to do the stuff.
If you have Installation CD then u can use the option for rescue ..
You can rescue option , it will not mount your root partition. U can then run fsck on root.
BTW if your file system is corrupt then while system boots fsck does check for any corruptions on your disk and falls back to a shell ( where you can run fsck manually ) if fsck couldnot correct the file system itself.
ciao Tapesh
--- Abhijeet D Mhatre abhijeetmhatre@hotpop.com 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.
regards Abhijeet D Mhatre
__________________________________________________ Do you Yahoo!? Yahoo! Web Hosting - Let the expert host your site http://webhosting.yahoo.com
-----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.
On Wed, 20 Nov 2002 09:43:54 +0530 Abhijeet D Mhatre wrote:
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.
Boot into rescue mode from a bootable Linux CD. You'll end up with a minimal filesystem on a ramdisk and (optionally) your hard disk partitions installed in some subdir of that filesystem. Try Googlizing linux rescue for more help.
simple 1 line command to achieve fsck on reboot
#shutdown -rF now
sometimes simple things are hard to find... lilo
--- Tahir Hashmi code_martial@softhome.net wrote: >
________________________________________________________________________ Missed your favourite TV serial last night? Try the new, Yahoo! TV. visit http://in.tv.yahoo.com
Hi,
I am looking to write a mountable filesystem for Linux where data is obtained from sources other that a disk.
Something like the proc fs.
I must admit that I am new to Linux "internals", but have writtten an MS-DOS block device driver in the past, that wold read/write sectors from a Sco Unix file system over the serial port.
What I am looking for is code for a Skeleton driver in Linux that has the necessary framework in place.
For my DOS project, the Ray Duncan book provided me with such a Skeleton.
I have searched the net in the past, but have not been able to find a good example. Therefore I put this project on hold for a long time.
I have not even looked at the /proc fs source code, as I think it may be too complex.
Any pointers / hints / tips will be appriciated.
Regards Shahed
Hi Shahed,
I must admit that I am new to Linux "internals"
What I am looking for is code for a Skeleton driver in Linux that has the necessary framework in place.
Check out the free online book by Oreilly - Linux Device drivers Maybe it will help. http://www.xml.com/ldd/chapter/book/
Also check out this article on LWN. http://lwn.net/Articles/13325/
For further references regarding the Linux kernel take a look at. www.kernelnewbies.org
Also, hanging in on the #kernelnewbies channel on irc.oftc.net will help.
-- ashok
Thanks for the tips.
I did find the HTTPFS
http://okmij.org/ftp/HTTP-VFS.html
which may be what I am looking for.
Has anyone used this before ?
Before I try an hack the code, it would be helpful for me to get any feedback from someone who may have used this before :-)
Anyway, my eventual goal is to comeup with a filesystem that allows me to read/write from a smartcard.
There is an existing implementation called SCFS which I looked at a while ago, but it was for Unix. I dont think the FS related stuff there would work for Linux.
Thanks Shahed.
as root type shutdown -rF at next reboot it will run fsck
lilo
--- Abhijeet D Mhatre abhijeetmhatre@hotpop.com 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.
regards Abhijeet D Mhatre
________________________________________________________________________ Missed your favourite TV serial last night? Try the new, Yahoo! TV. visit http://in.tv.yahoo.com
as root type shutdown -rF
at next reboot the system forces fsck on unmounted filesystems.
lilo
________________________________________________________________________ Missed your favourite TV serial last night? Try the new, Yahoo! TV. visit http://in.tv.yahoo.com
On Wed, 20 Nov 2002, liloindia wrote:
liloin > as root type liloin > shutdown -rF liloin > liloin > at next reboot the system forces fsck on unmounted liloin > filesystems. liloin > liloin > lilo
hi,
thats what man shutdown says, remove if you have file /forcefsck.
HTH i didnt test it.
sanjeev
hi,
sorry for my mail, didnt follow the thread.
sanjeev
On Wed, 20 Nov 2002, Sanjeev wrote:
sanjee > On Wed, 20 Nov 2002, liloindia wrote: sanjee > sanjee > liloin > as root type sanjee > liloin > shutdown -rF sanjee > liloin > sanjee > liloin > at next reboot the system forces fsck on unmounted sanjee > liloin > filesystems. sanjee > liloin > sanjee > liloin > lilo sanjee > sanjee > hi, sanjee > sanjee > thats what man shutdown says, remove if you have file /forcefsck. sanjee > sanjee > HTH i didnt test it. sanjee > sanjee > sanjeev
On Wed, 20 Nov 2002, Abhijeet D Mhatre wrote:
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.
have it mounted read-only, or use shutdown -rF