Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

hard disk partition that has reached its maximum mount-count

Jun 12, 2010 1:11AM PDT

I am running Mandriva 2010 on a Toshiba Satellite laptop.

No history of problems.

Until now as the system hangs on boot as it checks for new hardware.

I can get into single user mode using the rescue disk.

However, I cannot find a fix to this.

I somehow need to reset the maximum counter fs check through
control center but this is not possible in current locked out state.

Discussion is locked

- Collapse -
Link, comment.
Jun 12, 2010 1:23AM PDT

"tune2fs -j /dev/hda2
(as root, only for kernel that support ext3--RH7.2) Adjust the tuneable parameter of an ext2 filesystem. The example above shows how to add a journal to a disk partition (hda2 in this example), effectively converting the file system to ext3 (journaling) filesystem. To complete the transition, you must also edit the file /etc/fstab and change the filesystem type from ext2 to ext3, else you may run into problems--ext2 will not mount an uncleanly shut down journaled filesystem! To check what is the type of the filesystem use mount (with no arguments) or cat /etc/mtab. If you need more information on ext3 setup, try: http://www.symonds.net/~rajesh/howto/ext3/ext3-5.html.
Other options of tune2fs let you me add a volume label, adjust the number of mounts after which the filesystem check is performed (maximal mount count), or turn on time-based filesystem checks instead (less often used). "

http://linux.about.com/od/linux101/l/blnewbie5_13.htm

This should not lock out a mount but simply cause a file system check when this count is reached. My only comment here is that the command line might be the best way to adjust this.
Bob

- Collapse -
Great
Jun 12, 2010 1:29AM PDT

I'll give that a try. Through single user mode, I will try this. I know there are limited things I can do through this mode.

I was able to log in as root however the only binary is "nuser"
(number of users)

- Collapse -
I am using ext3
Jun 12, 2010 2:13AM PDT

and the suggested link for ext3 is dead.

Any other link(s) appreciated.

Thanks.

- Collapse -
The idea here is
Jun 12, 2010 2:18AM PDT

That the tune2fs command may be what you need. Since you could use a search engine to learn more about tune2fs I'm unsure why I should limit you to just links I find.
Bob

- Collapse -
The following worked
Jun 12, 2010 4:03AM PDT

1. dumpe2fs /dev/YourDev | grep Max
to see what the current max mount count on a given partition
is. Replace the YourDev by the appropriate device (e.g hda5).

Mine was -1

2. To change the maximum mount count to a higher value (e.g 50) use
tune2fs -c 50 /dev/YourDev

I set to 50


3. Run the above tune2fs command for all your hard disk partitions which are marked as "Linux native". You can also change the mount count value a bit for every partition (e.g 50, 60, 70...). That way not all partitions get a forced check at once.


I'm doing that now and noticed that the first partition has been mounted 600 times without being checked!

- Collapse -
Did
Jun 14, 2010 12:13AM PDT

You setup URPMI correctly?

Ran any Updates?

If so, are you using the latest Kernel?

- Collapse -
nah
Jun 14, 2010 1:03AM PDT

He simply forgot to run fsck at all for maybe one year or sth like that and there is no fsck in autorun somehow.

- Collapse -
Update
Jun 14, 2010 2:55AM PDT

OK, yes I have run urpmi religiously for quite some time.
I prefer to run it from the command line.

As for fsck - no I have not run it lately. I wasn't aware of this
problem until now.

Anyway, currently I have the same situation....

I ran and cleaned up both native Linux partitions. They show "clean" on boot.

I am running the lates kernel whatever the number is 2.31?

Still on boot, the Linux hangs on "checking for new hardware"

Then, the message bus fails and then it either hangs with a blank black screeen and a blinking cursor or skips out to a single user mode prompt.

I should mention that the hard drive is okay as the windows partition works fine and I have diagnosed it as such.

I still don't know, but I think a corrupt sector needs to be fixed.

I will next try to use a Live One Mandriva CD to enter Control Center to copy data to a usb drive and then go from there.

Any other comments welcome.

- Collapse -
Looks like bug
Jun 14, 2010 6:50AM PDT
- Collapse -
Thanks
Jun 14, 2010 7:07AM PDT

I had a feeling that's it. I have encountered
urpmi bugs in the past and they are realsy "buggers"
sorry for bad pun

mostly because you assume urpmi's are all bug free.

Frustrating taking the time to fix 'em, very frustrating...

- Collapse -
Very strange
Jun 14, 2010 10:10PM PDT

I have the latest and greates Updates and I have not encounter such thing on 6 systems (from AMD64. Dual Xeon to EeePC 1008HA).


Will try to ask in the Mandriva Forum and see what they say,

- Collapse -
Joint the forum
Jun 15, 2010 6:26AM PDT
- Collapse -
Output of command
Jun 15, 2010 3:54PM PDT

lspcidrake -v


ohci1394 : Texas Instruments|PCI4510 IEEE-1394 Controller [SERIAL_FIREWIRE] (vendor:104c device:8029 subv:1179 subd:ff10) (rev: 01)
yenta_socket : Texas Instruments|PCI4510 PC card Cardbus Controller [BRIDGE_CARDBUS] (vendor:104c device:ac44 subv:8000 subd:0000) (rev: 03)
ipw2200 : Intel Corporation|PRO/Wireless 2200BG [Calexico2] Network Connection [NETWORK_OTHER] (vendor:8086 device:4220 subv:8086 subd:2741) (rev: 05)
sky2 : Marvell Technology Group Ltd.|88E8036 PCI-E Fast Ethernet Controller [NETWORK_ETHERNET] (vendor:11ab device:4351 subv:1179 subd:ff10) (rev: 10)
ahci : Intel Corporation|82801FBM (ICH6M) SATA Controller [STORAGE_IDE] (vendor:8086 device:2653 subv:1179 subd:ff10) (rev: 04)
iTCO_wdt : Intel Corporation|82801FBM (ICH6M) LPC Interface Bridge [BRIDGE_ISA] (vendor:8086 device:2641 subv:1179 subd:ff10) (rev: 04)
snd_intel8x0m : Intel Corporation|82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Modem Controller [COMMUNICATION_MODEM] (vendor:8086 device:266d subv:1179 subd:0001) (rev: 04)
snd_intel8x0 : Intel Corporation|82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller [MULTIMEDIA_AUDIO] (vendor:8086 device:266e subv:1179 subd:ff10) (rev: 04)
unknown : Intel Corporation|82801 Mobile PCI Bridge [BRIDGE_PCI] (vendor:8086 device:244Cool (rev: d4)
ehci_hcd : Intel Corporation|82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller [SERIAL_USB] (vendor:8086 device:265c subv:1179 subd:ff10) (rev: 04)
uhci_hcd : Intel Corporation|82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 [SERIAL_USB] (vendor:8086 device:265b subv:1179 subd:ff10) (rev: 04)
uhci_hcd : Intel Corporation|82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 [SERIAL_USB] (vendor:8086 device:265a subv:1179 subd:ff10) (rev: 04)
uhci_hcd : Intel Corporation|82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 [SERIAL_USB] (vendor:8086 device:2659 subv:1179 subd:ff10) (rev: 04)
uhci_hcd : Intel Corporation|82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 [SERIAL_USB] (vendor:8086 device:2658 subv:1179 subd:ff10) (rev: 04)
shpchp : Intel Corporation|82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 2 [BRIDGE_PCI] (vendor:8086 device:2662) (rev: 04)
shpchp : Intel Corporation|82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 1 [BRIDGE_PCI] (vendor:8086 device:2660) (rev: 04)
unknown : Intel Corporation|Mobile 915GM/GMS/910GML Express Graphics Controller [DISPLAY_OTHER] (vendor:8086 device:2792 subv:1179 subd:ff10) (rev: 03)
Card:Intel 810 and later: Intel Corporation|Mobile 915GM/GMS/910GML Express Graphics Controller [DISPLAY_VGA] (vendor:8086 device:2592 subv:1179 subd:ff10) (rev: 03)
unknown : Intel Corporation|Mobile 915GM/PM/GMS/910GML Express Processor to DRAM Controller [BRIDGE_HOST] (vendor:8086 device:2590 subv:1179 subd:ff10) (rev: 03)
hub : Linux 2.6.31.5-desktop586-1mnb ehci_hcd|EHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0002)
hub : Linux 2.6.31.5-desktop586-1mnb uhci_hcd|UHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0001)
hub : Linux 2.6.31.5-desktop586-1mnb uhci_hcd|UHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0001)
hub : Linux 2.6.31.5-desktop586-1mnb uhci_hcd|UHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0001)
Mouse:evdev|imwheel:MX500: Logitech|USB Receiver [Human Interface Device|Boot Interface Subclass|Mouse] (vendor:046d device:c521)
hub : Linux 2.6.31.5-desktop586-1mnb uhci_hcd|UHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0001)
Module:toshiba : TOSHIBA|TOSHIBA
Pkg:toshutils : TOSHIBA|TOSHIBA


I don't notice any irregularity here.

- Collapse -
What about
Jun 16, 2010 3:16AM PDT

As Root?

- Collapse -
As root
Jun 16, 2010 3:37AM PDT

Yes

- Collapse -
Follow up
Jun 16, 2010 6:11AM PDT

Actually, the previous output from lspcidrake -v was executed
inside of a Mandriva Live One root user.

Prior to this, more closely to the time when this bug was discovered,
I was only able to end up as a single user (tty2) from which
I became a superuser and then ran the lspcidrake -v command which
yielded the following output:

I su'd from single user mode (tty2) and tried to run "lspcidrake -v"

with no output other than:

"lspcidrake: I/O error at /usr/share/pci.ids, line
7258"


I don't know how helpful this will be ultimately as now there is no
movement in Bugzilla.

Please let me know.

Thanks.

- Collapse -
Windows XP partition has same bug
Jun 23, 2010 12:06AM PDT

I think because it's suddently running very slow and
upon opening the task manager and watching the performance
monitor go crazy between 50 and 100% regardless of
what processes are running. Memory is very low, though
(3.37 gb out of 50gb left on this partition).


This is a dual boot grub Mandriva hd1 and XP hd0 (MBR)
setup.

I'm wondering if the Linux bug

https://qa.mandriva.com/show_bug.cgi?id=59770

could be the same problem with this odd behavior in XP?

I ran Norton light scan and minor alerts resulted.

To summarize:

1. Could the same virus be affecting both partitions

2. If I want to wipe this thing, what would be the
best way - Norton?

I haven't had to deal with this kind of thing for quite some time.

- Collapse -
Did you
Jun 23, 2010 9:49AM PDT

Changed the repos?

Use the MCC, go to Software Management>Configure Media Sources. Highlight them all and Remove the repositories, Hit Ok and close the MCC.

Go to Star>Tools>Konsole

Type su and hit enter, give root's password.

Copy and paste the following... After that hit enter.

urpmi.addmedia main ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/MandrivaLinux/official/2010.0/i586/media/main/release with media_info/hdlist.cz
urpmi.addmedia --update main_updates ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/MandrivaLinux/official/2010.0/i586/media/main/updates with media_info/hdlist.cz
urpmi.addmedia main_backports ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/MandrivaLinux/official/2010.0/i586/media/main/backports with media_info/hdlist.cz
urpmi.addmedia contrib ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/MandrivaLinux/official/2010.0/i586/media/contrib/release with media_info/hdlist.cz
urpmi.addmedia --update contrib_updates ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/MandrivaLinux/official/2010.0/i586/media/contrib/updates with media_info/hdlist.cz
urpmi.addmedia non-free ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/MandrivaLinux/official/2010.0/i586/media/non-free/release with media_info/hdlist.cz
urpmi.addmedia --update non-free_updates ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/MandrivaLinux/official/2010.0/i586/media/non-free/updates with media_info/hdlist.cz
urpmi.addmedia --update plf-free ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/plf/mandriva/2010.0/free/release/binary/i586/ with media_info/hdlist.cz
urpmi.addmedia --update plf-nonfree ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/plf/mandriva/2010.0/non-free/release/binary/i586/ with media_info/hdlist.cz



I use the repos in France since 2002 and they always worked.

One time I noticed that it hung for a while trying to contact the repos.

See if is that.

- Collapse -
If I use Live One CD
Jun 24, 2010 3:41AM PDT

then I can use MCC, otherwise I have no Xserver to run.

Will MCC run from Live One work, do you know?

My understanding is that it is limited in changes it can
make to the existing partition.

- Collapse -
Followed your
Jun 24, 2010 3:18PM PDT

suggestion with no luck. Same problem as originally described.

I've considered taking the laptop cover off and doing a thorough
cleaning.

- Collapse -
Followed your
Jun 24, 2010 11:29PM PDT

suggestion with no luck. Same problem as originally described.

I've considered taking the laptop cover off and doing a thorough
cleaning.

- Collapse -
We have a link about this.
Jun 24, 2010 11:31PM PDT
- Collapse -
It was nice getting under the hood
Jun 27, 2010 3:49AM PDT

however it was not the magic bullet in this case.

Almost 100% sure that during an update, a harddrake bug
was contracted.

Eventually a cure will prevail...

- Collapse -
Is that Mandriva?
Jun 27, 2010 3:51AM PDT

There are other distros.

- Collapse -
Yes
Jun 27, 2010 4:38AM PDT

it is Mandriva 2010

- Collapse -
Aswer to 1
Jun 24, 2010 1:00AM PDT

1. Could the same virus be affecting both partitions
Likely no. Windows lack drivers for Linux partition format. Of course virus can carry drivers with him.
2. If I want to wipe this thing, what would be the
best way - Norton?
What is 'this thing'?

- Collapse -
The...
Jun 26, 2010 9:24AM PDT

Windows side, I do not know beside a destructive method.

On Mandriva, if you use the Distro Boot Disk (Free or Power Pack) you can reinstall GRUB just by booting up the disc. Also, you can take the disk, wipe (reformat) the root's partition leaving the home and others alone and reinstall it that way. Most user's settings are stored on a file at the Home partition.

I would reload the Bootloader only, that just takes a few mins with the boot disc. And work from there.

- Collapse -
I resolved the
Jun 27, 2010 1:57AM PDT

Windows problem. I know about using the distro disk and
the GRUB reinstall.


I'm a little hesitant about

"disk, wipe (reformat) the root's partition leaving the home and others alone and reinstall it that way. Most user's settings are stored on a file at the Home partition."

Do you mean to say that from the distro disk, I can reformat root and then re-install the entire distro again?

Thanks.

- Collapse -
I just tried an upgrade
Jun 27, 2010 3:52AM PDT

instead of an install. It proceeded to go all the
way and then hang without exiting.


This was an attempt to upgrade.

You're recommending an install instead, is this correct?

- Collapse -
...
Jun 27, 2010 6:45AM PDT

I have done it before.

Like any computer system. Save all you important info, nothing is guarantied to work 100% and that is a fact.

Boot the Mandriva Disc and install as usual. When you go on the wizard, you can choose costume partition and leave it like it is or rename it, your choice.

It will ask about formating the drive, choose carefully and choose the root's partition only. Load the OS as usual.

When done, go to the MCC, delete the Disc entries.

Open a Konsole, run it as su.

Copy and paste the repos I gave you and hit enter.

Do all the updates (I think they are like 700some packets).

Reboot to the new Kernel.

Log in, and go to the MCC. Under Boot, follow the wizard and choose as default the new Kernel.

See if that does the trick.

Mandriva 2010.1 is coming out soon (is facing some delays due to last minutes bug fixings). So you could either wait to the new one or do the updates.