You are not logged in.

#1 2009-02-25 01:25:36

stringchopper
Member
Registered: 2009-02-19
Posts: 38

no automount of sd card or cdrom or dvd at boot time

my peripheral media on my laptop will no mount when booting up.  If I remove the media from the devices, boot up, then insert, the KDE4 Device Notifier will show a pop-up indicating the media is recognized.

I have a dvdram drive, with write capabilities for cd, and dvd, as well as a Digital Media slot that takes multiple sizes/types of cards (SD, XD, SM, MMC, etc - this is  a Texas Instruments 5-in-1 multimedia card reader).

fstab

# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0

#/dev/cdrom             /media/cd   auto    ro,user,noauto,unhide   0      0
#/dev/dvd               /media/dvd  auto    ro,user,noauto,unhide   0      0
#/dev/fd0               /media/fl   auto    user,noauto             0      0

UUID=22207ef5-48d0-459e-b85a-c00627d40566 /home ext3 defaults 0 1
UUID=83fa5d0a-0988-4fd3-9ae4-c4374bf5f303 swap swap defaults 0 0
UUID=b5d25706-c81b-4ab3-bdca-92c22d2f1c59 /boot ext2 defaults 0 1
UUID=f8778b4e-4127-4b6c-b691-5e328c63dc02 / ext3 defaults 0 1

directory listing of /media (no cards or cd's inserted - but note these directories are always there)

drwxr-xr-x  2 root root 4096 2009-01-11 09:32 cd
drwxr-xr-x  2 root root 4096 2009-01-11 09:32 dvd
drwxr-xr-x  2 root root 4096 2009-01-11 09:32 fl

lspci

00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub (rev 03)
00:01.0 PCI bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express PCI Express Root Port (rev 03)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 01)
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)
00:1f.2 SATA controller: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA AHCI Controller (rev 01)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
01:00.0 VGA compatible controller: nVidia Corporation G72M [GeForce Go 7400] (rev a1)
06:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection (rev 02)
08:06.0 CardBus bridge: Texas Instruments PCIxx12 Cardbus Controller
08:06.1 FireWire (IEEE 1394): Texas Instruments PCIxx12 OHCI Compliant IEEE 1394 Host Controller
08:06.2 Mass storage controller: Texas Instruments 5-in-1 Multimedia Card Reader (SD/MMC/MS/MS PRO/xD)
08:06.3 SD Host controller: Texas Instruments PCIxx12 SDA Standard Compliant SD Host Controller
08:08.0 Ethernet controller: Intel Corporation PRO/100 VE Network Connection (rev 01)

Regards,
Brian

Offline

#2 2009-02-25 02:41:19

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,549

Re: no automount of sd card or cdrom or dvd at boot time

Did you read the Wiki page on automounting?

Offline

#3 2009-02-26 01:43:58

stringchopper
Member
Registered: 2009-02-19
Posts: 38

Re: no automount of sd card or cdrom or dvd at boot time

yes I have read wiki.  one wiki said to use autofs4, but I don't think that is my issue.

first, I guess I need to see if I can sucessfully mount manually

I can't find the music cd contents anwhere, after inserting into my dvdram drive.  I try /media/cd, but nothing in that directory.  I try /mnt/cd, still nothing

I'm a little confused about the mount command perhaps (yes, I've read the man page).  I try "mount -t iso9660 /dev/cdrom /media/cd" and I get the following messing with after trying to mount, and then with dmesg|tail

bash-3.2# mount -t iso9660 /dev/cdrom /media/cd/
mount: block device /dev/sr0 is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/sr0,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

and dmesg | tail gives this

end_request: I/O error, dev sr0, sector 64
isofs_fill_super: bread failed, dev=sr0, iso_blknum=16, block=16

Then I can run KsCD and it recognizes the music CD.  Other than that, I have no indication that the CD is recognized.  But JuK doesn't know about the CD at all

Last edited by stringchopper (2009-02-26 01:45:03)


Regards,
Brian

Offline

#4 2009-02-26 05:05:49

broch
Banned
From: L.A. California
Registered: 2006-11-13
Posts: 975

Re: no automount of sd card or cdrom or dvd at boot time

audio cd is not data cd

mount -t iso9660 /dev/cdrom /media/cd/

wrong command. In fact this is what kernel is trying to tell you. Just listen;

wrong fs type..

in kde use kioslave to mount audio cd same in gnome.

Offline

#5 2009-02-26 09:17:31

artiom
Member
From: France
Registered: 2008-07-29
Posts: 111

Re: no automount of sd card or cdrom or dvd at boot time

If you want automount your CD at boot time (while I don't understand why you may need this) you should put this line to fstab:

/dev/cdrom             /media/cd   auto    ro,user,unhide   0      0

Likewise for your memory cards. To know the devices allocated for the card reader look at dmesg after inserting a media.

Offline

#6 2009-02-26 14:33:45

broch
Banned
From: L.A. California
Registered: 2006-11-13
Posts: 975

Re: no automount of sd card or cdrom or dvd at boot time

artiom wrote:

If you want automount your CD at boot time (while I don't understand why you may need this) you should put this line to fstab:

/dev/cdrom             /media/cd   auto    ro,user,unhide   0      0

Likewise for your memory cards. To know the devices allocated for the card reader look at dmesg after inserting a media.

nope, you are making exactly the same mistake as op:
you can't mount audio cd with command that mounts data cd. There is no standard fs to mount.

Last edited by broch (2009-02-26 14:34:11)

Offline

#7 2009-02-26 14:45:35

stringchopper
Member
Registered: 2009-02-19
Posts: 38

Re: no automount of sd card or cdrom or dvd at boot time

artiom wrote:

If you want automount your CD at boot time (while I don't understand why you may need this) you should put this line to fstab:

/dev/cdrom             /media/cd   auto    ro,user,unhide   0      0

Likewise for your memory cards. To know the devices allocated for the card reader look at dmesg after inserting a media.

I took that out because of hal instructions, which I thought was supposed to be able to automount cd's and memory cards.  But apparently, it wouldn't work for audio CD's anyway.

broch wrote:

audio cd is not data cd

    mount -t iso9660 /dev/cdrom /media/cd/

wrong command. In fact this is what kernel is trying to tell you. Just listen;

    wrong fs type..

in kde use kioslave to mount audio cd same in gnome.

are you saying to also use KDE Input/Output for gnome too? That doesn't make sense to me.  Listening to the kernel is not a problem, the kernel offers no suggestion here though, and neither do man pages.  aber verstanden den kernel ist nicht immer so einfach.

What about the issue with my SD Card.  It doesn't appear accessible (that I know of) when it is already inserted and I boot up.  If it is not inserted and I boot up, I will see a message from the Device Notifier Widget.  I just took it out and re-inserted (which always works because my issue with SD is only at boot), and this is what I got from dmesg | tail

EDIT: I got the SD Card Manually mounted with
pmount /dev/mmcblk0p1



bash-3.2# dmesg | tail
Registered led device: iwl-phy0:TX
ADDRCONF(NETDEV_UP): wlan0: link is not ready
tifm0 : demand removing card from socket 0:1
mmc1: card 9ffc removed
tifm_core: SmartMedia/xD card detected in socket 0:0
tifm0 : demand removing card from socket 0:0
tifm_core: MMC/SD card detected in socket 0:1
mmc1: new SD card at address 9ffc
mmcblk0: mmc1:9ffc SD01G 968 MiB
 mmcblk0: p1
bash-3.2#

Last edited by stringchopper (2009-02-26 14:58:18)


Regards,
Brian

Offline

#8 2009-02-26 14:48:30

artiom
Member
From: France
Registered: 2008-07-29
Posts: 111

Re: no automount of sd card or cdrom or dvd at boot time

There is no command, it's a line for fstab - configuration file. This will not mount audio CD or empty drive, or empty media. If he wants to automount on boot a CD containing a valid filesystem - that is. Audio CD has no filesystem, so nothing to mount.

Offline

#9 2009-02-26 14:54:50

artiom
Member
From: France
Registered: 2008-07-29
Posts: 111

Re: no automount of sd card or cdrom or dvd at boot time

It doesn't appear accessible (that I know of) when it is already inserted and I boot up.  If it is not inserted and I boot up, I will see a message from the Device Notifier Widget.  I just took it out and re-inserted (which always works because my issue with SD is only at boot),

Your automount problem is in HAL. HAL will send a message about inserting a media and by this message a desktop application (applet or other depending your desktop) will mount the media. So if the media is connected during the boot there is no insertion message. Like for your internal hard drive for example. But you must anyway have the ability to mount it manually.

Offline

#10 2009-02-26 15:12:47

broch
Banned
From: L.A. California
Registered: 2006-11-13
Posts: 975

Re: no automount of sd card or cdrom or dvd at boot time

are you saying to also use KDE Input/Output for gnome too? That doesn't make sense to me.

no what I am saying is that gnome has similar mechanism. This has nothing to do with old and trusty mount command.
I think that you are mixing different things: again audio cd is not data cd so your command with iso9660 wil not mount audio cd because audio cd does not have standard fs.

did you try as i suggested to use kioslave in konqueror as i suggested?

sd card
1) create entry in /mnt or /media
2) because this device is created dynamically you need to know what device is added (block) - directory diff before and after connecting device (you can also use konqueror to check for device/block_to_mount name
3) create the entry in /etc/fstab
4) create symlink to the device on your desktop

Offline

#11 2009-02-26 15:55:35

mandog
Member
From: Peru
Registered: 2008-09-17
Posts: 218

Re: no automount of sd card or cdrom or dvd at boot time

Surely if your sd card is not mounting at boot time its because Hal is not mounting before KDM/GDM, dbus  hal need to startup early and not in the background to mount your card before KDM/GDM starts. that how I do it.


I'm dyslexic Please do not complain about puntuation or spelling and remember most dyslexic people have above average iq.

Offline

Board footer

Powered by FluxBB