Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Could not mount floppy
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
samo
Guru
Guru


Joined: 13 Mar 2004
Posts: 489

PostPosted: Fri Jun 03, 2011 9:57 pm    Post subject: Could not mount floppy Reply with quote

Hi,

since updating to kde 4.6.2 I can't mount /dev/fd0 with the kde device icon on my desktop anymore.
Code:
$ cat /etc/fstab
# /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.14 2003/10/13 20:03:38 azarah Exp $
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.

# <fs>                  <mountpoint>    <type>          <opts>                  <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda1               /boot           ext2            noauto,noatime          1 2
/dev/sda2               none            swap            sw                      0 0
/dev/sda3               /               reiserfs        noatime                 0 1
/dev/sdb6               /mnt/store      ext2            noatime                 0 0
/dev/fd0                /mnt/floppy     auto            noauto,user             0 0

# NOTE: The next line is critical for boot!
none                    /proc           proc            defaults                0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:

none                    /dev/shm        tmpfs           nodev,nosuid,noexec     0 0
none                    /proc/bus/usb   usbfs           defaults                0 0

Code:
$ cat Desktop/Floppy\ Device
[Desktop Action Format]
Exec=kfloppy %v
Name=Format
Name[ar]=هيئ
Name[ast]=Formatu
Name[bg]=Форматиране
Name[bn]=ফরমযাট
Name[ca@valencia]=Formata
Name[ca]=Formata
Name[cs]=Formát
Name[da]=Formatér
Name[de]=Formatieren
Name[el]=Μορφή
Name[en_GB]=Format
Name[es]=Formato
Name[et]=Vormindamine
Name[eu]=Formatua
Name[fi]=Alusta
Name[fr]=Format
Name[ga]=Formáidigh
Name[gu]=બધારણ
Name[he]=פירמוט
Name[hi]=फॉरमट
Name[hr]=Formatiranje
Name[hu]=Formátum
Name[ia]=Formato
Name[id]=Format
Name[is]=Forsníða
Name[it]=Formatta
Name[ja]=フォーマット
Name[ka]=ფორმატი
Name[kk]=Пішімдеу
Name[km]=ទរងទរាយ
Name[kn]=ವನಯಾಸ
Name[ko]=포맷
Name[lt]=Formatas
Name[lv]=Formatēt
Name[mai]=परारप
Name[ml]=ഫോരമാററ
Name[nb]=Format
Name[nds]=Formateren
Name[nl]=Formatteren
Name[nn]=Formater
Name[pa]=ਫਾਰਮਟ
Name[pl]=Format
Name[pt]=Formatar
Name[pt_BR]=Formatar
Name[ro]=Formatare
Name[ru]=Форматировать
Name[si]=හැඩතලය
Name[sk]=Formát
Name[sl]=Formatiraj
Name[sr@ijekavian]=Форматирање
Name[sr@ijekavianlatin]=Formatiranje
Name[sr@latin]=Formatiranje
Name[sr]=Форматирање
Name[sv]=Formatera
Name[tg]=Формат
Name[th]=รปแบบ
Name[tr]=Biçim
Name[uk]=Форматувати
Name[wa]=Abwesner
Name[x-test]=xxFormatxx
Name[zh_CN]=格式化
Name[zh_TW]=格式

[Desktop Entry]
Actions=Format;
Dev=/dev/fd0
Icon=media-floppy
MountPoint=/mnt/floppy
ReadOnly=false
Type=FSDevice
X-KDE-Priority=TopLevel

Code:
$ emerge --info
Portage 2.1.9.42 (default/linux/x86/10.0/desktop/kde, gcc-4.4.5, libc-0-r0, 2.6.37-gentoo-r4 i686)
=================================================================
System uname: Linux-2.6.37-gentoo-r4-i686-AMD_Athlon-tm-_XP_3200+-with-gentoo-2.0.2
Timestamp of tree: Tue, 31 May 2011 22:00:01 +0000
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.7.1-r1, 3.1.3-r1
dev-util/cmake:      2.8.4-r1
sys-apps/baselayout: 2.0.2
sys-apps/openrc:     0.8.2-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1-r1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.82
sys-kernel/linux-headers: 2.6.36.1
sys-libs/glibc:      2.12.2
virtual/os-headers:  0
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/mnt/store/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="32bit 3dnow 3dnowext X a52 aac acl acpi alsa amarok amazon apache2 audiofile avi berkdb branding bzip2 cairo caps cdr cjk cli consolekit cracklib crypt css cups curl cxx dbus declarative disk-partition dri dts dvb dvd dvdr dvdread embedded emboss encode exif extras fam fbcondecor ffmpeg firefox flac fortran gd gdbm gdu gif gimp gimpprint gnome-keyring gnutls gpg gphoto2 gpm gstreamer gtk2 history hpcups iconv ipv6 java jpeg json kde kerberos lan lcms ldap libnotify libv4l2 libwww mad mjpeg mmx mng modules mp3 mp4 mpeg mplayer msn mudflap mysql mythtv ncurses nls nptl nptlonly nsplugin odbc ogg oggvorbis opengl openmp oss pam pango pcre pdf perl phonon png policykit posix ppds pppd python qt3support qt4 quicktime rdesktop readline reiserfs rtc rtsp samba scanner sdl semantic-desktop session sip slp snmp spell sql sse ssl startup-notification stream stun svg sysfs tcltk tcpd threads threadsafe tiff truetype udev unicode usb userlocales v4l2 vcd video vorbis wav webkit wicd win32codecs winbind x264 x86 xcb xine xml xorg xulrunner xv xvid yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 wens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev vga radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

I can mount with udisks. What's wrong with kde?
Back to top
View user's profile Send private message
Chris Coleman
n00b
n00b


Joined: 24 Aug 2010
Posts: 19

PostPosted: Sat Jun 04, 2011 12:48 am    Post subject: Re: Could not mount floppy Reply with quote

samo wrote:
I can mount with udisks. What's wrong with kde?


Remove the /dev/fd0 line from /etc/fstab.
Back to top
View user's profile Send private message
samo
Guru
Guru


Joined: 13 Mar 2004
Posts: 489

PostPosted: Sat Jun 04, 2011 8:10 am    Post subject: Reply with quote

Without /dev/fd0 in /etc/fstab I get the following error:
Code:
Could not mount device.
The reported error was:
mount: Konnte /mnt/floppy nicht in /etc/fstab oder /etc/mtab finden

The last line is means, that /mnt/floppy wasn't find in /etc/fstab.
Back to top
View user's profile Send private message
samo
Guru
Guru


Joined: 13 Mar 2004
Posts: 489

PostPosted: Sat Jun 04, 2011 11:34 am    Post subject: Reply with quote

Some additional hints:

1. After I have mounted the floppy with udisks, I can unmount it with the floppy device in kde.

2. When the floppy is not defined in /etc/fstab I can't configure the kde floppy device.

The kde floppy device is only a configuration file. Does someone know, which program process this configuration file?
Back to top
View user's profile Send private message
Chris Coleman
n00b
n00b


Joined: 24 Aug 2010
Posts: 19

PostPosted: Sat Jun 04, 2011 7:39 pm    Post subject: Reply with quote

Do you actually need that desktop file? I think it might be causing the problem. It seems strange that you're using that file to mount your floppy drive. It looks like a shortcut to format a floppy disk.

I use gnome, but I think kde handles removable devices automatically. You should just be able to insert a disk and then it will be mounted automatically.
Back to top
View user's profile Send private message
samo
Guru
Guru


Joined: 13 Mar 2004
Posts: 489

PostPosted: Sun Jun 05, 2011 10:04 am    Post subject: Reply with quote

If the floppy could be mounted with the kde device notifier it would be great. But until now the floppy is not even visible yet. That's why I try to use the "old" kde way.

I also wonder about the content of the configuration file. Probably it's a list of additional user actions. This actions were also available with older kde versions.
Back to top
View user's profile Send private message
samo
Guru
Guru


Joined: 13 Mar 2004
Posts: 489

PostPosted: Thu Jun 23, 2011 9:22 am    Post subject: Reply with quote

Either I'm the only one who has this problem or the only one who still use a floppy.

Are there someone else who is still using a floppy? How do you mount it?
Back to top
View user's profile Send private message
Chris Coleman
n00b
n00b


Joined: 24 Aug 2010
Posts: 19

PostPosted: Wed Jun 29, 2011 9:06 pm    Post subject: Reply with quote

I've been playing with kde 4.5.1 and 4.6.3 in virtualbox. I think I have reproduced your problem. In kde 4.5.1 the floppy drive shows up in dolphin. However, media is not detected automatically, but at least the device is available. The only way I can mount a floppy in kde 4.6.3 is by doing "udisks --mount /dev/fd0".

I'm not sure yet, but I think it might have something to do with this change in udisks:

Code:
commit ca93d4e2d9e7f483b2fde1725da086e2cca44164
Author: Martin Pitt <martin.pitt@ubuntu.com>
Date:   Wed Jun 2 15:56:07 2010 +0200

    Fix long hangs on probing nonexistant floppy drives
   
    A lot of modern machines do not have a floppy drive any more, but still have a
    floppy controller somewhere (or at least the BIOS pretends to). Trying to
    open(/dev/fd0) on these machines causes long hangs, which lead to long desktop
    startup times.
   
    To fix this, avoid probing floppies for media in update_info().
   
    https://launchpad.net/bugs/539515
Back to top
View user's profile Send private message
Chris Coleman
n00b
n00b


Joined: 24 Aug 2010
Posts: 19

PostPosted: Wed Jun 29, 2011 9:43 pm    Post subject: Reply with quote

Or maybe not. I'm really not sure.

Would you be willing to try downgrading to udisks 1.0.1? It's not in portage anymore, but I retrieved it from cvs:

http://www.filedropper.com/udisks-101-ebuildstar

There are two ebuilds included: udisks-1.0.1-r2.ebuild applies the patch for the above commit and udisks-1.0.1-r1.ebuild does not.
Back to top
View user's profile Send private message
Chris Coleman
n00b
n00b


Joined: 24 Aug 2010
Posts: 19

PostPosted: Wed Jun 29, 2011 9:46 pm    Post subject: Reply with quote

You may want to get the ebuilds from cvs yourself. You can do that like this:

Code:
cvs -d :pserver:anonymous@anoncvs.gentoo.org:/var/cvsroot co -D 2010-08-22 gentoo-x86/sys-fs/udisks
Back to top
View user's profile Send private message
Chris Coleman
n00b
n00b


Joined: 24 Aug 2010
Posts: 19

PostPosted: Wed Jun 29, 2011 10:15 pm    Post subject: Reply with quote

I've just noticed your kernel version. Before trying to downgrade udisks, please try upgrading to the latest stable kernel. The latest stable gentoo kernel is gentoo-sources-2.6.38-r6. You are running gentoo-sources-2.6.37-r4.
Back to top
View user's profile Send private message
samo
Guru
Guru


Joined: 13 Mar 2004
Posts: 489

PostPosted: Thu Jun 30, 2011 5:07 pm    Post subject: Reply with quote

I've already updated to linux-2.6.38-gentoo-r6

Today I've downgraded to sys-fs/udisks-1.0.1-r1. But problem is still there. The floppy isn't visible in dolphin.
Back to top
View user's profile Send private message
Chris Coleman
n00b
n00b


Joined: 24 Aug 2010
Posts: 19

PostPosted: Fri Jul 01, 2011 12:07 am    Post subject: Reply with quote

Ok, so it wasn't that. But I've found the general cause of the problem. KDE's hardware library (which is called "solid") was using hal to enumerate and query storage devices. Now it uses udisks. And, for some reason, when it uses udisks, floppy drives don't show up.

I don't know how to fix this, but I've found a way to work around it. It is possible to tell kde to go back to using hal (http://forum.kde.org/viewtopic.php?f=14&t=93337). It's not so simple with Gentoo because hal is blocked by upower which is needed by kde. You would have to copy the upower ebuild to an overlay and remove !sys-apps/hal from DEPEND and RDEPEND. Then re-emerge upower and emerge hal. Then add "export SOLID_HAL_LEGACY=1" to /usr/bin/startkde (just after where it says "export SOLID_HAL_LEGACY=1").

Then your floppy drive will appear in dolphin again.
Back to top
View user's profile Send private message
samo
Guru
Guru


Joined: 13 Mar 2004
Posts: 489

PostPosted: Sat Jul 02, 2011 8:27 am    Post subject: Reply with quote

Thanks for your help and the workaround.
Back to top
View user's profile Send private message
Chris Coleman
n00b
n00b


Joined: 24 Aug 2010
Posts: 19

PostPosted: Mon Jul 04, 2011 1:38 am    Post subject: Reply with quote

It is not a very good workaround. If I were you I would not use it.
Back to top
View user's profile Send private message
Chris Coleman
n00b
n00b


Joined: 24 Aug 2010
Posts: 19

PostPosted: Mon Jul 04, 2011 1:58 am    Post subject: Reply with quote

Chris Coleman wrote:
Then add "export SOLID_HAL_LEGACY=1" to /usr/bin/startkde (just after where it says "export SOLID_HAL_LEGACY=1").


I meant to say "just after where it says "export KDE_SESSION_UID"". Apparently I made a mistake with the clipboard.
Back to top
View user's profile Send private message
samo
Guru
Guru


Joined: 13 Mar 2004
Posts: 489

PostPosted: Sun Jul 10, 2011 12:48 pm    Post subject: Reply with quote

I didn't try the workaround. but thanks for help
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum