Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old November 29th, 2002, 09:54 PM
paulx82 paulx82 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Brisbane, Australia
Posts: 19 paulx82 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unmounting filesystem for fsck

I need to repair the filesystem on my Linux partition in order to resize it with Partition Magic 8. fsck sometimes runs automatically, on startup, when my filesystem is too bad, but I cannot seem to run it manually. I've tried unmounting my filesystem in the single user run-level, but I get the following error message:
sh-2.05b# umount /dev/hda2
umount: /: device is busy

The partition for my boot directory, /dev/hda1 unmounted fine.

I did go through all run-levels, to Gnome, and then typed 'telinit 1' in an xterm.

I have two questions:
How can I make '/' unbusy, so I can unmount it?
and
Are there other programs that repair linux filesystems and where can you get them?

Reply With Quote
  #2  
Old November 29th, 2002, 10:35 PM
riv's Avatar
riv riv is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Posts: 463 riv User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 37 m 50 sec
Reputation Power: 8
Repairing a live fs is a dangerous thing! Don't do it!

Use fuser -v /dev/hdxy to check which app is using that file. However, since you're trying to check the root fs this is a bit tricky because that's where e2fsck is so it automatically tags that hard drive has busy. You could try to force e2fsck to read the fs in read-only mode and if any error gets spitted out just go through all the hassle of booting off a floppy (or use tune2fs to mark as dirty and reboot).
__________________
Words must be weighed, not counted.

Reply With Quote
  #3  
Old November 30th, 2002, 05:43 PM
damonbrinkley damonbrinkley is offline
Modz
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: NC, USA
Posts: 364 damonbrinkley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 m 18 sec
Reputation Power: 6
Send a message via AIM to damonbrinkley
You need to boot to runlevel 1 and not change to runlevel one from an xterm, that won't work. Whenever you boot type linux 1 or whatever your kerenl name is from GRUB/LILO. This will automatically boot to runlevel 1 so you can unmount the root filesystem and fschk it.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > Unmounting filesystem for fsck


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway