2007-07-16

Solution to Debian's Problem with 'mount /dev/sda1'

There is a problem - as mentioned previously - with the default Debian-blows-goats install. For whatever reason, the system refuses to mount a USB mass-storage device when it is connected - that is, the Debian-POS system neither automounts the new storage device, nor will it allow either root or any loggeg-in use to mount it, despite the appropriate entries in /etc/fstab and the expected messges in /var/log/messges.

The forum thread /dev/sda1 missing [now closed] at LinuxForums describes the problem, some attempts at solutions, and some "workarounds" (see our post Found a workaround, maybe...) in detail, but the information we're posting here is not there [or if it is, it's in another thread and we didn't find it], and since the thread is "closed" we are posting it here...

Basically, the solution is very straight-forward: Install the udev package.

While that sounds straight-forward, Debian-blows-dogs-for-quarters has [again] gone out of their way to make the administrators life as difficult as possible by making sure that there is no apparent way to navigate to 'stable' distro from the 'untable' distro, and furthermore there is no clea way to select which Debian-POS distro you want to get .deb packages from. There appears to be no way to do a substring match when seraching packages. And there seems no way to either know which distro (eg.. 'stable', 'unstable', etc) the packages installed on a given machine came from, either.

And now IceWeasel-POS is crashing - randomly deleting characters from the textarea on blogger.com, and taking a good .7sec per charcteer typed to echo the characters typed - andddddddddddddddddddddddddddddddddddddddddddddd this with dysfunctional spell checking! Also, as you can see, the IceWeasel-POS is repeating characters and words randomly when blogger does its autosave operation.

So this is like : I'm typing a sentence, then stopping and waiting fffffffffffffffffffffffor the words to appeare. - and when they do- the repeats.

We have [sort of] found a solution. Note that in the log below, the 'apt-get install udev' command output is from the second run of same command. Ran it, then ran it again. Not sure why, but it worked.

root@juggalo:/dev# apt-get install udev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  bluez-bcm203x hotplug
The following NEW packages will be installed:
  udev
0 upgraded, 1 newly installed, 2 to remove and 2 not upgraded.
Need to get 263kB of archives.
After unpacking 471kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://ftp.de.debian.org stable/main udev 0.105-4 [263kB]
Fetched 263kB in 1s (183kB/s)
Preconfiguring packages ...
(Reading database ... 139905 files and directories currently installed.)
Removing bluez-bcm203x ...
dpkg: hotplug: dependency problems, but removing anyway as you request:
 atmel-firmware depends on udev (>= 0.070-3) | hotplug (>= 0.0.20040329-12); however:
  Package udev is not installed.
  Package hotplug is to be removed.
Removing hotplug ...
Selecting previously deselected package udev.
(Reading database ... 139875 files and directories currently installed.)
Unpacking udev (from .../archives/udev_0.105-4_i386.deb) ...

**************************************************************
* Please purge the hotplug package!
* (/etc/init.d/hotplug has been found on this system)
**************************************************************

Setting up udev (0.105-4) ...
Installing new version of config file /etc/init.d/udev ...
Installing new version of config file /etc/udev/links.conf ...
Installing new version of config file /etc/udev/persistent-input.rules ...
Installing new version of config file /etc/udev/persistent.rules ...
Installing new version of config file /etc/udev/cd-aliases-generator.rules ...
Installing new version of config file /etc/udev/udev.rules ...
Installing new version of config file /etc/udev/devfs.rules ...
Installing new version of config file /etc/udev/hotplug.rules ...
Installing new version of config file /etc/udev/permissions.rules ...
Installing new version of config file /etc/udev/persistent-net-generator.rules ...
Installing new version of config file /etc/scsi_id.config ...

Note that it is not clear how or why bluez-bcm203x hotplug got installed - it was not requested or wanted, as this machine has no Bluetooth devices, and probably never will.

Other notes of note:

  • The udev package was already installed, but wasn't working right.
  • The installed version of udev did not include the documentation that was [according to the Debian udev package description] supposed to exist in /usr/share/udev/
  • As with so many other Debian-POS commands, there was no man page installed, despite the fact that 'apropos udev' showed a number of [non-existent] man pages for the command. This seems to be a pervasive problem with this particular Debian-lies-like-a-whore distro - many [we're inclined to say "most" actually] of the administrative manual pages are notably missing, even though 'apropos' claims they are there - perhaps there is some issue with the configuration of the 'makewhatis' cron job on Debian-blows? Why would these man pages be left out? And if they are going to be left out, why lie about it through apropos?

So yes, we seem to have fixed this problem, but Debian still sux0r.