- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- How use fsck command to repair /usr partition
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2005 06:03 PM
тАО12-06-2005 06:03 PM
How use fsck command to repair /usr partition
When I turned my computer this morning--running linix Debian Sarge I got a message about forced checking my disks--mounted more than 30 times --checking forced.
Then when checking my /usr partition I got a message about an error.
After couple minutes it asks for root paswword to repair system manualy using command fsck....
what is syntax of fsck commandd to repair my /usr partition, I had never do this before
and I have very important data on my disk, so if you know what is solution for my problem please write it down.
I have root privileges, and I am root on this mashine.
Thank you in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2005 07:02 PM
тАО12-06-2005 07:02 PM
Re: How use fsck command to repair /usr partition
# df -T
# fsck.ext3 -s -v /usr
like that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-07-2005 02:51 AM
тАО12-07-2005 02:51 AM
Re: How use fsck command to repair /usr partition
There is an option there to add the -y flag
to fsck during startup. This will cause
fsck to automatically fix errors if it finds
them.
As root run 'fsck /usr'. It will prompt you
for each fix.
After it is done exit or reboot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-07-2005 05:08 AM
тАО12-07-2005 05:08 AM
Re: How use fsck command to repair /usr partition
Then run the command:
fsck -f /usr -y
To repair the filesystem.
If you are using ext3, you can disable the check interval using
tune2fs -i 0 -c 0 /dev/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-07-2005 06:05 PM
тАО12-07-2005 06:05 PM
Re: How use fsck command to repair /usr partition
current sda: Sense key Medium Error
Additional sense: Unrecovered read error-auto reallocate failed
end_request: I/O error, dev sda, sector 26585499
Error reading block 33558536 (Attempt to read block from filesystem resulted in short read) while doing inode scan.
after couple minutes scroling on screen it stoped and wrote next
current sda: Sense key Medium Error
Additional sense: Unrecovered read error-auto reallocate failed
end_request: I/O error, dev sda, sector 26585592
Error reading block 33558629 (Attempt to read block from filesystem resulted in short read) while doing inode scan.
/usr: UNESPECTED INCONSISTENCY: RUN fsck MANUALLY
and ask for root password.
I entered root password and as root enter next command as suggested some of you
#fsck -f /dev -y
tneh I got output
fsck.ext2 is directory while trying to open /usr
the superblock could not be read or does not describe a correct ext2 filesystem (and not swap or ufs or something else), then the superblock is corupted, you might try running e2fsck with an alternate superblock...
and then I run next command
#e2fsck -b 8193 /dev/sda6
then I got output like this
fsck.ext2 is directory while trying to open /usr
the superblock could not be read or does not describe a correct ext2 filesystem (and not swap or ufs or something else), then the superblock is corupted, you might try running e2fsck with an alternate superblock...
I do not know what to do in this situation, and I am compleatelly confused.
Thanks for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-07-2005 07:09 PM
тАО12-07-2005 07:09 PM
Re: How use fsck command to repair /usr partition
#fsck -y /usr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-07-2005 07:33 PM
тАО12-07-2005 07:33 PM
Re: How use fsck command to repair /usr partition
Thank You for your sugggestions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2005 02:24 AM
тАО12-08-2005 02:24 AM
Re: How use fsck command to repair /usr partition
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2005 05:35 PM
тАО12-08-2005 05:35 PM
Re: How use fsck command to repair /usr partition
Partittion is not mounted, I am trying to repair during booting system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2005 03:42 AM
тАО12-09-2005 03:42 AM
Re: How use fsck command to repair /usr partition
Do you have a backup of the partition? you may need to re-create the file system and restore the backup.