Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

hal messing up cd fs type [SOLVED]

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
pjv
Guru
Guru
User avatar
Posts: 353
Joined: Wed Jul 02, 2003 12:51 pm
Location: Belgium

hal messing up cd fs type [SOLVED]

  • Quote

Post by pjv » Thu Feb 14, 2008 2:32 pm

When I insert any (data) cdrom/cdr I get an error popup in gnome saying:

Code: Select all

mount: wrong fs type, bad option, bad superblock on /dev/hda,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg|tail or so 
I should however get a successful automount here. When I try to do it manually it works perfectly, so it isn't a problem with hardware, fstab, or any core drivers:

Code: Select all

mount -t auto /dev/hda /media/cd
This was working before I had put back a backup of the whole system. I already had some small problems with wrong permissions for system files and directories (such as .so files and things in /usr/share/). I'm guessing this has the same cause however I cannot pinpoint the problem. I'm pretty sure a real fresh hal doesn't have this problem. I already tried emerge -c and then reemerge of several things: hal, dbus, some of hal's deps.

The hald debug output has nothing that looks to be wrong, except maybe:

Code: Select all

[19045]: 15:15:02.782 [D] probe-storage.c:303: Doing open ("/dev/hda", O_RDONLY | O_NONBLOCK | O_EXCL)
[19045]: 15:15:02.785 [D] probe-storage.c:315: Open failed - Device Busy
[19045]: 15:15:02.885 [D] probe-storage.c:319: Attempting open w/ O_EXCL again
[19045]: 15:15:02.887 [D] probe-storage.c:333: PROBE HAS EXCLUSIVE LOCK ON CDROM
[19045]: 15:15:02.891 [D] probe-storage.c:375: media size = 736882688
[19045]: 15:15:02.892 [D] probe-storage.c:383: PROBE CLOSED LOCK ON CDROM
...
15:15:05.613 [I] hald.c:107: Added device to GDL; udi=/org/freedesktop/Hal/devices/volume_label_BACKUP28
[30165]: 15:15:06.780 [I] addon-storage.c:346: Checking whether device /dev/hda is locked on HAL
[30165]: 15:15:06.780 [I] addon-storage.c:354: ... device /dev/hda is not locked on HAL
On a higher level the problem clearly is hal is not doing "mount -t auto /dev/hda /media/cd" or "mount -t iso9660 /dev/hda /media/cd" itself. But why? Any thoughts without blaming me if some random system file has wrong permissions? Thx, pjv.

PS: Anyone know a good way to reemerge the whole system (reinstalling without erasing everything) while also repairing wrong permissions of files and dirs?[/code]
Last edited by pjv on Thu Feb 14, 2008 3:34 pm, edited 1 time in total.
Top
baaann
Guru
Guru
Posts: 558
Joined: Mon Jan 23, 2006 4:36 am
Location: uk

  • Quote

Post by baaann » Thu Feb 14, 2008 3:28 pm

I had this problem both with cdrom and usb stick. I spent ages seaching and re-emerging/updating packages without success. It was only after giving up and thinking it was easier to live with it, that I recalled that when installing Gentoo fstab does not contain an entry for a usb stick, but my fstab did. So I commented out the entries for cdrom and usb stick and it worked as it should. The only thing I can think of causing this in my case, is a recent power outage that presumably left hal settings that should have been removed.

Not working

Code: Select all

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

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda1		/boot		ext2		defaults,noatime	1 2
/dev/hda5		/		reiserfs	noatime			0 1
/dev/hda2		none		swap		sw			0 0
/dev/cdroms/cdrom0	/mnt/cdrom	auto		noauto,ro,user		0 0
/dev/fd0		/mnt/floppy	auto		noauto,user		0 0
/dev/hda6		/home		reiserfs	noatime			0 2

# 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		defaults		0 0

/dev/sda1               /media/usbdisk          vfat    user,exec,noauto,utf8,noatime,sync,managed 0 0
/dev/hdd                /media/cdrom            auto    user,exec,noauto,managed 0 0
Working

Code: Select all

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

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda1		/boot		ext2		defaults,noatime	1 2
/dev/hda5		/		reiserfs	noatime			0 1
/dev/hda2		none		swap		sw			0 0
/dev/cdroms/cdrom0	/mnt/cdrom	auto		noauto,ro,user		0 0
/dev/fd0		/mnt/floppy	auto		noauto,user		0 0
/dev/hda6		/home		reiserfs	noatime			0 2

# 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		defaults		0 0

#/dev/sda1               /media/usbdisk          vfat    user,exec,noauto,utf8,noatime,sync,managed 0 0
#/dev/hdd                /media/cdrom            auto    user,exec,noauto,managed 0 0
Top
pjv
Guru
Guru
User avatar
Posts: 353
Joined: Wed Jul 02, 2003 12:51 pm
Location: Belgium

  • Quote

Post by pjv » Thu Feb 14, 2008 3:34 pm

Heh, that was quick. I was looking in the wrong direction.

The culprit is the "managed" option, that you had also and that I must have added when restoring the backup. Remove it (only that word) in your fstab and it's solved.

Thanks for the insight!
Top
xiber
Apprentice
Apprentice
User avatar
Posts: 245
Joined: Tue Oct 28, 2003 6:33 pm
Location: Fremont, CA

  • Quote

Post by xiber » Sat Feb 16, 2008 5:29 pm

Posted something abit a go trying to find out why util-linux-2.13-r2 is nolonger patched to ignore "managed" in fstab.

http://forums.gentoo.org/viewtopic-t-65 ... ight-.html
Athlon XP-M 2600 @ 2.3 GHz OC | Abit NF7-S r2.0 | 2x512MB PC3200 | 6600GT OC | Audigy 2 | Gentoo | 2005

Athlon 64 X2 4600 @ 2.4 GHz | Asus M2N-SLI DLX | 4x1GB PC6400 | 7600GT KO | 7HD @ 3.1TB | OpenSolaris SXCE | 2007
Top
Post Reply

4 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic