Skip navigation.
Home
The QNX Community Portal

View topic - how to repair a filesystem?

how to repair a filesystem?

Discussion about the QNX6 OS.

how to repair a filesystem?

Postby ganesan » Wed Aug 13, 2014 1:06 pm

hi,

sometimes my filesyetem is corrupted due to power failure. i don'e know how to repair a filesystem after corrupted ..
please help me to repair a filesyetem after corrupted..

thanks and regards,
ganesan
ganesan
Active Member
 
Posts: 20
Joined: Tue Jul 08, 2014 6:27 am

Re: how to repair a filesystem?

Postby Tim » Wed Aug 13, 2014 1:14 pm

Use the chkfsys utility to repair the filesystem.

Tim
Tim
Senior Member
 
Posts: 1391
Joined: Wed Mar 10, 2004 12:28 am

Re: how to repair a filesystem?

Postby maschoen » Fri Aug 15, 2014 5:25 pm

Tim is right, but here's just a little more information.

QNX 6 can use either a QNX 4 or QNX 6 file system.
If you initialize with dinit, you get a QNX 4 file system.
If you initialize with mkqnx6fs you get a QNX 6 file system.
If you don't know what you have, you might try using fdisk.
By convention, QNX 4 file systems are 77, 78 or 79. QNX 6 are 177, 178 and 179. Note that this is a convention. You might want to look at the boot file mount command which could have a -t qnx6. The default would be qnx4.

Chkfsys will not work with a QNX 6 file system. If you are using a QNX 6 file system, it is not supposed to get corrupted. If a QNX 6 did get corrupted, I think that your only option would be to copy off the data, re-initalize and copy back.

If you have a corrupted QNX 4 file system you should do the following.
1) stop any processes that have files open
2) Look for any busy files. If you find one you have a choice. If you think they are uncorrupted, you can just unbusy them. If you think they are corrupted, you could try to recover the data. It's best not to copy the data to the currently corrupted file system. In any case, you want to zap the file.
3) Run chkfsys
maschoen
QNX Master
 
Posts: 2644
Joined: Wed Jun 25, 2003 5:18 pm

Re: how to repair a filesystem?

Postby ganesan » Tue Aug 19, 2014 9:06 am

thanks for your reply,

good i am using chkfsys .

io have one more question
how to formate the particular partition?


regards,
ganesan
ganesan
Active Member
 
Posts: 20
Joined: Tue Jul 08, 2014 6:27 am

Re: how to repair a filesystem?

Postby mario » Tue Aug 19, 2014 9:16 pm

All the question you have are easily answer by checking QNX`s documentation.

Go to http://www.qnx.com/developers/docs/6.5.0/index.jsp and type format partition.
mario
QNX Master
 
Posts: 4132
Joined: Sun Sep 01, 2002 1:04 am


Return to QNX6 - OS

Who is online

Users browsing this forum: No registered users and 4 guests