LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Kubuntu:8.04.2: HAL running but not functioning properly (https://www.linuxquestions.org/questions/linux-hardware-18/kubuntu-8-04-2-hal-running-but-not-functioning-properly-705174/)

DarkReverend 02-16-2009 04:43 PM

Kubuntu:8.04.2: HAL running but not functioning properly
 
I have Kubuntu 7.10 upgraded to 8.04 (apparently. don't know why it doesn't go up to 8.10) as shown by /etc/issue:

Code:

$ cat /etc/issue
Ubuntu 8.04.2 \n \l

my usb flashdrives mounted fine after a safe upgrade, but then I finally preformed the full upgrade and they are no longer automounting.

the device appears in /dev, I got sudo blkid and sudo fdisk -l from another thread, and they look fine to me (/dev/sdc1 is the flashdrive)
Code:

$ sudo blkid
/dev/sda1: UUID="36d6b9e2-4892-4e06-b6ac-265eade82f97" SEC_TYPE="ext2" TYPE="ext
3"
/dev/sda2: UUID="6afa3cd6-603c-421c-8824-e1d776be1f3f" SEC_TYPE="ext2" TYPE="ext
3"
/dev/sda3: TYPE="swap" UUID="06c299f4-afe6-4881-9e53-0bf7b4be0e30"
/dev/sdb2: UUID="a314fda2-7446-4925-a38d-83ecb744356a" SEC_TYPE="ext2" TYPE="ext
3"
/dev/sdc1: SEC_TYPE="msdos" UUID="C2F8-E4F2" TYPE="vfat"

Code:

$ sudo fdisk -l

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000c1457

** Device Boot* * * Start* * * ** End* * * Blocks** Id* System
/dev/sda1** ** * * * ** 1* * * * 9118* * 73240303+* 83* Linux
/dev/sda2* * * * * * 9119* * ** 30276** 169951635** 83* Linux
/dev/sda3* * * * ** 30277* * ** 30401* ** 1004062+* 82* Linux swap / Solaris

Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000ac16c

** Device Boot* * * Start* * * ** End* * * Blocks** Id* System
/dev/sdb2** ** * * * ** 1* * ** 30276** 243191938+* 83* Linux

Disk /dev/sdc: 1006 MB, 1006632960 bytes
65 heads, 32 sectors/track, 945 cylinders
Units = cylinders of 2080 * 512 = 1064960 bytes
Disk identifier: 0xc3072e18

** Device Boot* * * Start* * * ** End* * * Blocks** Id* System
/dev/sdc1** ** * * * ** 1* * * ** 946* * * 983024* * 6* FAT16
Partition 1 has different physical/logical endings:
* ** phys=(960, 64, 32) logical=(945, 14, 32)

I tried using the following command to mount manually
(directory created):
Code:

sudo mount -t vfat /dev/sdc /home/robert/usbtemp
and got the following results (dmesg)
Code:

[433509.676251] usb 6-6: reset high speed USB device using ehci_hcd and address 8
[433710.982584] FAT: invalid media value (0xb9)
[433710.982589] VFS: Can't find a valid FAT filesystem on dev sdc.
[433772.995066] usb 6-7: USB disconnect, address 9
[434066.197864] usb 6-7: new high speed USB device using ehci_hcd and address 10
[434066.370878] usb 6-7: configuration #1 chosen from 1 choice
[434066.400231] scsi9 : SCSI emulation for USB Mass Storage devices
[434066.402632] usb-storage: device found at 10
[434066.402636] usb-storage: waiting for device to settle before scanning
[434071.398351] usb-storage: device scan complete
[434071.399441] scsi 9:0:0:0: Direct-Access* ** Sony* ** Storage Media* * 0100 PQ: 0 ANSI: 0 CCS
[434071.401802] sd 9:0:0:0: [sdc] 1966080 512-byte hardware sectors (1007 MB)
[434071.402544] sd 9:0:0:0: [sdc] Write Protect is off
[434071.402548] sd 9:0:0:0: [sdc] Mode Sense: 43 00 00 00
[434071.402550] sd 9:0:0:0: [sdc] Assuming drive cache: write through
[434071.413169] sd 9:0:0:0: [sdc] 1966080 512-byte hardware sectors (1007 MB)
[434071.413914] sd 9:0:0:0: [sdc] Write Protect is off
[434071.413919] sd 9:0:0:0: [sdc] Mode Sense: 43 00 00 00
[434071.413921] sd 9:0:0:0: [sdc] Assuming drive cache: write through
[434071.413930]* sdc: sdc1
[434071.414770] sd 9:0:0:0: [sdc] Attached SCSI removable disk
[434071.414820] sd 9:0:0:0: Attached scsi generic sg2 type 0
[434091.194087] FAT: invalid media value (0xb9)
[434091.194094] VFS: Can't find a valid FAT filesystem on dev sdc.
[434117.962023] usb 6-7: USB disconnect, address 10
[434124.513161] usb 6-7: new high speed USB device using ehci_hcd and address 11
[434124.648405] usb 6-7: configuration #1 chosen from 1 choice
[434124.667546] scsi10 : SCSI emulation for USB Mass Storage devices
[434124.667830] usb-storage: device found at 11
[434124.667835] usb-storage: waiting for device to settle before scanning
[434129.679474] usb-storage: device scan complete
[434129.680440] scsi 10:0:0:0: Direct-Access* ** I0MEGA** UMni64MB*IOM2C4* * ** PQ: 0 ANSI: 2
[434129.681802] sd 10:0:0:0: [sdc] 126976 512-byte hardware sectors (65 MB)
[434129.682424] sd 10:0:0:0: [sdc] Write Protect is off
[434129.682431] sd 10:0:0:0: [sdc] Mode Sense: 03 00 00 00
[434129.682433] sd 10:0:0:0: [sdc] Assuming drive cache: write through
[434129.692543] sd 10:0:0:0: [sdc] 126976 512-byte hardware sectors (65 MB)
[434129.693167] sd 10:0:0:0: [sdc] Write Protect is off
[434129.693174] sd 10:0:0:0: [sdc] Mode Sense: 03 00 00 00
[434129.693176] sd 10:0:0:0: [sdc] Assuming drive cache: write through
[434129.693185]* sdc: sdc1
[434129.695123] sd 10:0:0:0: [sdc] Attached SCSI removable disk
[434129.695170] sd 10:0:0:0: Attached scsi generic sg2 type 0
[434136.281363] FAT: invalid media value (0x01)
[434136.281370] VFS: Can't find a valid FAT filesystem on dev sdc.

The flash drive is FAT - tested on a windows computer. Also, i tried two separate flashdrives, no go.

fdisk -l output:
Code:

Disk /dev/sdc: 1006 MB, 1006632960 bytes
65 heads, 32 sectors/track, 945 cylinders
Units = cylinders of 2080 * 512 = 1064960 bytes
Disk identifier: 0xc3072e18

** Device Boot* * * Start* * * ** End* * * Blocks** Id* System
/dev/sdc1** ** * * * ** 1* * * ** 946* * * 983024* * 6* FAT16
Partition 1 has different physical/logical endings:
* ** phys=(960, 64, 32) logical=(945, 14, 32)

I think the problem is something wrong with hal, but it could be where the issue is just presenting itself. the hal service claims not to be running in system settings -> services, but if I try to start it, it gives the error it's already running. My media shows devices it should not be, and if I click on the CD, for example, it says that I need to have HAL running to use the feature.* If I browse to system:/media/ in dolphin (or media:/), and try to get into anything, even my hard drives, I get "Feature only available with Hal"


Code:

$ ps -ef | grep hal
107* * ** 8379* ** 1* 0 01:30 ?* * * * 00:00:00 /usr/sbin/hald
root* * * 8380* 8379* 0 01:30 ?* * * * 00:00:00 hald-runner
107* * ** 8406* 8380* 0 01:30 ?* * * * 00:00:00 hald-addon-acpi: listening on acpid socket /var/run/acpid.socket
root* * * 8426* 8380* 0 01:30 ?* * * * 00:00:00 hald-addon-input: Listening on /dev/input/event3 /dev/input/event2 /dev/input/event1
root* * * 8451* 8380* 0 01:30 ?* * * * 00:00:00 hald-addon-storage: polling /dev/hda (every 2 sec)
root* ** 10523* 8380* 0 01:50 ?* * * * 00:00:00 hald-addon-storage: polling /dev/sdc (every 2 sec)
robert** 11143 10920* 0 02:07 pts/3* * 00:00:00 grep hal


I'm at my limit - I need help.

Junior Hacker 02-17-2009 05:44 PM

Quote:

sudo mount -t vfat /dev/sdc /home/robert/usbtemp
When you mount a drive manually, you mount it to a directory that exists. Did you make the /home/robert/usbtemp directory first with command: sudo mkdir /home/robert/usbtemp
Now, your biggest problem is trying to mount the drive instead of the partition on the drive, try this:
Code:

sudo mount /dev/sdc1 /home/robert/usbtemp
No need to specify file system type with FAT 16/32

Junior Hacker 02-17-2009 05:55 PM

If it complains that /dev/sdc1 is already mounted, look in /media/name_of_drive.

I've just started using Ubuntu 8.10, I noticed it is quite well locked down for users. In Ubuntu 8.10, you would probably need to edit: org/free_desktop/hal/storage/mount_file_systems_from_removable_drives to allow the system to mount the flash drive automatically for users in System/Administration/Authorizations.

Probably in the same area for Ubuntu 8.04

DarkReverend 02-21-2009 11:55 AM

Quote:

Originally Posted by Junior Hacker (Post 3447561)
When you mount a drive manually, you mount it to a directory that exists. Did you make the /home/robert/usbtemp directory first with command: sudo mkdir /home/robert/usbtemp
Now, your biggest problem is trying to mount the drive instead of the partition on the drive, try this:
Code:

sudo mount /dev/sdc1 /home/robert/usbtemp
No need to specify file system type with FAT 16/32

I did create the directory before attempting the mount. However, yeah, I did screw up the mount syntax. When I tried mounting the partition instead of the device, the mount was successful. It was not already mounted anywhere. I could unmount it as well.

It should go without saying, but it didn't magically fix my auto-mount problems. In another forum, I was asked if I had usbmount. I don't but based on the package description and the fact that this is a regression, it sounds like that's a separate package that provides a similar but more lightweight functionality.

Junior Hacker 02-21-2009 03:02 PM

OK
I overlooked the part about "K"ubuntu, which won't have the directory System/Administration/Authorizations which is a Gnome directory. As mentioned, in my Ubuntu I had to give my user permission to mount external drives. It was not available by default.
EDIT: Only mounting via active console 'CLI' was enabled by default.

DarkReverend 04-25-2009 10:54 AM

I have finally found out what my issue was

http://ubuntuforums.org/showpost.php...2&postcount=11

polkit-auth --user user --grant org.freedesktop.hal.storage.mount-removable wasn't the problem, though, it was org.freedesktop.hal.storage.mount-fixed that needed to be added. i have no idea how this got changes, or what USB flashdrives are fixed, but adding this permission solved my problem.


All times are GMT -5. The time now is 12:48 PM.