Author Topic: Fsck  (Read 3238 times)

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Fsck
« on: July 26, 2005, 04:27:54 pm »
Is there a way to run this from command line, tried Meanies instruction, didnt work for the 3100, kept "bouncing me out" so I just reset.
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Fsck
« Reply #1 on: July 27, 2005, 06:52:02 am »
Yes.

fsck /dev/whatever-device-you-want-to-check


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Fsck
« Reply #2 on: July 27, 2005, 03:42:55 pm »
but its not safe to run fsck on a mounted file system, right?
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Fsck
« Reply #3 on: July 28, 2005, 05:12:27 am »
That's right, in fact it's actually not possible afaik.

Do 'umount /dev/whatever-device-you-want-to-check' first

(you may be able to get away with 'umount /mnt/whatever-mountpoint' actually)


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

zeigerpuppy

  • Full Member
  • ***
  • Posts: 109
    • View Profile
Fsck
« Reply #4 on: February 01, 2007, 08:30:41 am »
Quote
That's right, in fact it's actually not possible afaik.

Do 'umount /dev/whatever-device-you-want-to-check' first

(you may be able to get away with 'umount /mnt/whatever-mountpoint' actually)


Si
[div align=\"right\"][a href=\"index.php?act=findpost&pid=89876\"][{POST_SNAPBACK}][/a][/div]

How about a filesystem that doesn't want to be unmounted,
my large /dev/hda2 on pdaXrom needs fsck gravely,
but the full check is not done from the maintenance menu and
when I try after booting, there are services running which prevent unmounting,
how do I enter a lower runlevel on the zaurus?
Zaurus C3100, CE-RH2, Socket lowpower CF Wifi, Socket CF Bluetooth
pdaXrom r198 - testing!, IceWM, Bluetooth modem: Sony Ericsson v600i with 3G.
see some howtos and tips at http://greenant.net/portal/greenant/wiki/Zaurus3100

zeigerpuppy

  • Full Member
  • ***
  • Posts: 109
    • View Profile
Fsck
« Reply #5 on: February 01, 2007, 08:36:44 am »
Quote
Quote
That's right, in fact it's actually not possible afaik.

Do 'umount /dev/whatever-device-you-want-to-check' first

(you may be able to get away with 'umount /mnt/whatever-mountpoint' actually)


Si
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

How about a filesystem that doesn't want to be unmounted,
my large /dev/hda2 on pdaXrom needs fsck gravely,
but the full check is not done from the maintenance menu and
when I try after booting, there are services running which prevent unmounting,
how do I enter a lower runlevel on the zaurus?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=153199\"][{POST_SNAPBACK}][/a][/div]

OK, found a solution, from [a href=\"http://www.eleves.ens.fr/home/leurent/zaurus.html]http://www.eleves.ens.fr/home/leurent/zaurus.html[/url],
thanks Gaëtan:

"You will need to kill the apps using this partition first, you can find them fuser -m /dev/hdc3 and kill them with kill -9 $PID where $PID is one the numbers returned by fuser."

This is getting a little off topic... but how do I know what processes the returned numbers are... can I pipe the command to show me what those processes are?
« Last Edit: February 01, 2007, 08:38:08 am by zeigerpuppy »
Zaurus C3100, CE-RH2, Socket lowpower CF Wifi, Socket CF Bluetooth
pdaXrom r198 - testing!, IceWM, Bluetooth modem: Sony Ericsson v600i with 3G.
see some howtos and tips at http://greenant.net/portal/greenant/wiki/Zaurus3100

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Fsck
« Reply #6 on: February 01, 2007, 08:41:07 am »
Quote
Quote
Quote
That's right, in fact it's actually not possible afaik.

Do 'umount /dev/whatever-device-you-want-to-check' first

(you may be able to get away with 'umount /mnt/whatever-mountpoint' actually)


Si
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

How about a filesystem that doesn't want to be unmounted,
my large /dev/hda2 on pdaXrom needs fsck gravely,
but the full check is not done from the maintenance menu and
when I try after booting, there are services running which prevent unmounting,
how do I enter a lower runlevel on the zaurus?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=153199\"][{POST_SNAPBACK}][/a][/div]

OK, found a solution, from [a href=\"http://www.eleves.ens.fr/home/leurent/zaurus.html]http://www.eleves.ens.fr/home/leurent/zaurus.html[/url],
thanks Gaëtan:

"You will need to kill the apps using this partition first, you can find them fuser -m /dev/hdc3 and kill them with kill -9 $PID where $PID is one the numbers returned by fuser."

This is getting a little off topic... but how do I know what processes the returned numbers are... can I pipe the command to show me what those processes are?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=153203\"][{POST_SNAPBACK}][/a][/div]

even after you kill all the processes, there still may be some inodes being locked which you can unlock using losetup -d /dev/...
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

zeigerpuppy

  • Full Member
  • ***
  • Posts: 109
    • View Profile
Fsck
« Reply #7 on: February 01, 2007, 08:46:59 am »
Thanks Meanie,

Added the summary of this discussion to:

http://greenant.net/portal/greenant/wiki/MaintenenceWithFsck
Zaurus C3100, CE-RH2, Socket lowpower CF Wifi, Socket CF Bluetooth
pdaXrom r198 - testing!, IceWM, Bluetooth modem: Sony Ericsson v600i with 3G.
see some howtos and tips at http://greenant.net/portal/greenant/wiki/Zaurus3100