Bug 391866

Summary: LiveUSB/GNOME: Couldn't find "/read-write".
Product: [openSUSE] openSUSE 11.0 Reporter: Magnus Boman <captain.magnus>
Component: Live MediumAssignee: Stephan Kulow <coolo>
Status: RESOLVED FIXED QA Contact: Stephan Kulow <coolo>
Severity: Normal    
Priority: P5 - None CC: coolo, ms
Version: Factory   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Screnshot
Screnshot2

Description Magnus Boman 2008-05-18 22:00:03 UTC
Created attachment 216261 [details]
Screnshot

I'm not sure where this goes wrong (GNOME or Live media)

I have an 8gb stick that I put the image on. It created a partition for 'read-write'. But in Nautilus, I can't use it.

See attached screenshots.
Comment 1 Magnus Boman 2008-05-18 22:00:22 UTC
Created attachment 216262 [details]
Screnshot2
Comment 2 Stephan Kulow 2008-05-19 05:08:53 UTC
I assume it's in lshal?
Comment 3 Magnus Boman 2008-05-19 08:07:55 UTC
It, and it says that the mount point is /read-write which doesn't exist. If I create /read-write it works fine.


udi = '/org/freedesktop/Hal/devices/storage_serial_USB_Flash_Disk_AA04012700007435_0_0'
  block.device = '/dev/sdb'  (string)
  block.is_volume = false  (bool)
  block.major = 8  (0x8)  (int)
  block.minor = 16  (0x10)  (int)
  block.storage_device = '/org/freedesktop/Hal/devices/storage_serial_USB_Flash_Disk_AA04012700007435_0_0'  (string)
  info.addons = {'hald-addon-storage'} (string list)
  info.capabilities = {'storage', 'block'} (string list)
  info.category = 'storage'  (string)
  info.interfaces = {'org.freedesktop.Hal.Device.Storage.Removable'} (string list)
  info.parent = '/org/freedesktop/Hal/devices/usb_device_90c_1000_AA04012700007435_if0_scsi_host_scsi_device_lun0'  (string)
  info.product = 'Flash Disk'  (string)
  info.udi = '/org/freedesktop/Hal/devices/storage_serial_USB_Flash_Disk_AA04012700007435_0_0'  (string)
  info.vendor = 'USB'  (string)
  linux.hotplug_type = 3  (0x3)  (int)
  linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-7/1-7:1.0/host2/target2:0:0/2:0:0:0/block/sdb'  (string)
  storage.automount_enabled_hint = true  (bool)
  storage.bus = 'usb'  (string)
  storage.drive_type = 'disk'  (string)
  storage.firmware_version = '1100'  (string)
  storage.hotpluggable = true  (bool)
  storage.lun = 0  (0x0)  (int)
  storage.media_check_enabled = true  (bool)
  storage.model = 'Flash Disk'  (string)
  storage.no_partitions_hint = false  (bool)
  storage.originating_device = '/org/freedesktop/Hal/devices/usb_device_90c_1000_AA04012700007435_if0'  (string)
  storage.partitioning_scheme = 'mbr'  (string)
  storage.removable = true  (bool)
  storage.removable.media_available = true  (bool)
  storage.removable.media_size = 8119648256  (0x1e3f80000)  (uint64)
  storage.removable.support_async_notification = false  (bool)
  storage.requires_eject = false  (bool)
  storage.serial = 'USB_Flash_Disk_AA04012700007435-0:0'  (string)
  storage.size = 0  (0x0)  (uint64)
  storage.vendor = 'USB'  (string)

udi = '/org/freedesktop/Hal/devices/volume_uuid_2e70da7d_55d8_40b4_82ce_a01747b402af'
  block.device = '/dev/sdb3'  (string)
  block.is_volume = true  (bool)
  block.major = 8  (0x8)  (int)
  block.minor = 19  (0x13)  (int)
  block.storage_device = '/org/freedesktop/Hal/devices/storage_serial_USB_Flash_Disk_AA04012700007435_0_0'  (string)
  info.capabilities = {'volume', 'block'} (string list)
  info.category = 'volume'  (string)
  info.parent = '/org/freedesktop/Hal/devices/storage_serial_USB_Flash_Disk_AA04012700007435_0_0'  (string)
  info.product = 'Volume (swap)'  (string)
  info.udi = '/org/freedesktop/Hal/devices/volume_uuid_2e70da7d_55d8_40b4_82ce_a01747b402af'  (string)
  linux.hotplug_type = 3  (0x3)  (int)
  linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-7/1-7:1.0/host2/target2:0:0/2:0:0:0/block/sdb/sdb3'  (string)
  storage.model = ''  (string)
  volume.block_size = 512  (0x200)  (int)
  volume.fstype = 'swap'  (string)
  volume.fsusage = 'other'  (string)
  volume.fsversion = '2'  (string)
  volume.is_disc = false  (bool)
  volume.is_mounted = false  (bool)
  volume.is_mounted_read_only = false  (bool)
  volume.is_partition = true  (bool)
  volume.label = ''  (string)
  volume.linux.is_device_mapper = false  (bool)
  volume.mount_point = ''  (string)
  volume.num_blocks = 658665  (0xa0ce9)  (int)
  volume.partition.flags = {} (string list)
  volume.partition.label = ''  (string)
  volume.partition.media_size = 8119648256  (0x1e3f80000)  (uint64)
  volume.partition.number = 3  (0x3)  (int)
  volume.partition.scheme = 'mbr'  (string)
  volume.partition.start = 7781114880  (0x1cfca6400)  (uint64)
  volume.partition.type = '0x82'  (string)
  volume.partition.uuid = ''  (string)
  volume.size = 337236480  (0x1419d200)  (uint64)
  volume.uuid = '2e70da7d-55d8-40b4-82ce-a01747b402af'  (string)

udi = '/org/freedesktop/Hal/devices/volume_uuid_088d28fd_4539_44d5_ba80_9659ca8bd44d'
  block.device = '/dev/sdb2'  (string)
  block.is_volume = true  (bool)
  block.major = 8  (0x8)  (int)
  block.minor = 18  (0x12)  (int)
  block.storage_device = '/org/freedesktop/Hal/devices/storage_serial_USB_Flash_Disk_AA04012700007435_0_0'  (string)
  info.capabilities = {'volume', 'block'} (string list)
  info.category = 'volume'  (string)
  info.interfaces = {'org.freedesktop.Hal.Device.Volume'} (string list)
  info.parent = '/org/freedesktop/Hal/devices/storage_serial_USB_Flash_Disk_AA04012700007435_0_0'  (string)
  info.product = 'Volume (ext2)'  (string)
  info.udi = '/org/freedesktop/Hal/devices/volume_uuid_088d28fd_4539_44d5_ba80_9659ca8bd44d'  (string)
  linux.hotplug_type = 3  (0x3)  (int)
  linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-7/1-7:1.0/host2/target2:0:0/2:0:0:0/block/sdb/sdb2'  (string)
  org.freedesktop.Hal.Device.Volume.method_argnames = {'mount_point fstype extra_options', 'extra_options', 'extra_options'} (string list)
  org.freedesktop.Hal.Device.Volume.method_execpaths = {'hal-storage-mount', 'hal-storage-unmount', 'hal-storage-eject'} (string list)
  org.freedesktop.Hal.Device.Volume.method_names = {'Mount', 'Unmount', 'Eject'} (string list)
  org.freedesktop.Hal.Device.Volume.method_signatures = {'ssas', 'as', 'as'} (string list)
  storage.model = ''  (string)
  volume.block_size = 512  (0x200)  (int)
  volume.fstype = 'ext2'  (string)
  volume.fsusage = 'filesystem'  (string)
  volume.fsversion = '1.0'  (string)
  volume.ignore = false  (bool)
  volume.is_disc = false  (bool)
  volume.is_mounted = true  (bool)
  volume.is_mounted_read_only = false  (bool)
  volume.is_partition = true  (bool)
  volume.label = ''  (string)
  volume.linux.is_device_mapper = false  (bool)
  volume.mount.valid_options = {'ro', 'sync', 'dirsync', 'noatime', 'nodiratime', 'noexec', 'quiet', 'remount', 'exec', 'acl', 'user_xattr'} (string list)
  volume.mount_point = '/read-write'  (string)
  volume.num_blocks = 13880160  (0xd3cb60)  (int)
  volume.partition.flags = {} (string list)
  volume.partition.label = ''  (string)
  volume.partition.media_size = 8119648256  (0x1e3f80000)  (uint64)
  volume.partition.number = 2  (0x2)  (int)
  volume.partition.scheme = 'mbr'  (string)
  volume.partition.start = 674472960  (0x2833a400)  (uint64)
  volume.partition.type = '0x83'  (string)
  volume.partition.uuid = ''  (string)
  volume.size = 7106641920  (0x1a796c000)  (uint64)
  volume.unmount.valid_options = {'lazy'} (string list)
  volume.uuid = '088d28fd-4539-44d5-ba80-9659ca8bd44d'  (string)

udi = '/org/freedesktop/Hal/devices/volume_part1_size_674440704'
  block.device = '/dev/sdb1'  (string)
  block.is_volume = true  (bool)
  block.major = 8  (0x8)  (int)
  block.minor = 17  (0x11)  (int)
  block.storage_device = '/org/freedesktop/Hal/devices/storage_serial_USB_Flash_Disk_AA04012700007435_0_0'  (string)
  info.capabilities = {'volume', 'block'} (string list)
  info.category = 'volume'  (string)
  info.interfaces = {'org.freedesktop.Hal.Device.Volume'} (string list)
  info.parent = '/org/freedesktop/Hal/devices/storage_serial_USB_Flash_Disk_AA04012700007435_0_0'  (string)
  info.product = 'Volume (squashfs)'  (string)
  info.udi = '/org/freedesktop/Hal/devices/volume_part1_size_674440704'  (string)
  linux.hotplug_type = 3  (0x3)  (int)
  linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-7/1-7:1.0/host2/target2:0:0/2:0:0:0/block/sdb/sdb1'  (string)
  org.freedesktop.Hal.Device.Volume.method_argnames = {'mount_point fstype extra_options', 'extra_options', 'extra_options'} (string list)
  org.freedesktop.Hal.Device.Volume.method_execpaths = {'hal-storage-mount', 'hal-storage-unmount', 'hal-storage-eject'} (string list)
  org.freedesktop.Hal.Device.Volume.method_names = {'Mount', 'Unmount', 'Eject'} (string list)
  org.freedesktop.Hal.Device.Volume.method_signatures = {'ssas', 'as', 'as'} (string list)
  storage.model = ''  (string)
  volume.block_size = 512  (0x200)  (int)
  volume.fstype = 'squashfs'  (string)
  volume.fsusage = 'filesystem'  (string)
  volume.fsversion = '3.0'  (string)
  volume.ignore = false  (bool)
  volume.is_disc = false  (bool)
  volume.is_mounted = true  (bool)
  volume.is_mounted_read_only = true  (bool)
  volume.is_partition = true  (bool)
  volume.label = ''  (string)
  volume.linux.is_device_mapper = false  (bool)
  volume.mount.valid_options = {'ro', 'sync', 'dirsync', 'noatime', 'nodiratime', 'noexec', 'quiet', 'remount', 'exec'} (string list)
  volume.mount_point = '/read-only'  (string)
  volume.num_blocks = 1317267  (0x141993)  (int)
  volume.partition.flags = {} (string list)
  volume.partition.label = ''  (string)
  volume.partition.media_size = 8119648256  (0x1e3f80000)  (uint64)
  volume.partition.number = 1  (0x1)  (int)
  volume.partition.scheme = 'mbr'  (string)
  volume.partition.start = 32256  (0x7e00)  (uint64)
  volume.partition.type = '0x83'  (string)
  volume.partition.uuid = ''  (string)
  volume.size = 674440704  (0x28332600)  (uint64)
  volume.unmount.valid_options = {'lazy'} (string list)
  volume.uuid = ''  (string)
Comment 4 Stephan Kulow 2008-05-19 08:51:59 UTC
Kay, can I set the mount point after the fact? (the system is within a chroot, so the mount point is not reachable)
Comment 5 Kay Sievers 2008-05-20 06:52:34 UTC
Sorry, what's the exact question here? What "set's the mountpoint"?

We do not support anything else than directories below /media, if that may be the reason?
Comment 6 Stephan Kulow 2008-05-20 10:45:23 UTC
ok, sdb2 is mounted under /read-write and is not in a builtin parition. I could either set volume.ignore = true for both these mount points or change the mount point of sdb2 to / - if hal allows that
Comment 7 Kay Sievers 2008-05-20 11:20:17 UTC
Right, HAL refuses to handle anything outside of /media/*.

("System volumes" must be handled by fstab, which will instruct HAL to ignore them. But for fstab listed volumes, there is currently no automounting support.)
Comment 8 Stephan Kulow 2008-05-21 19:37:13 UTC
Kay, you still misunderstand me :)

Look at the lshal output (or spare a stick and "burn" ftp://ftp.suse.com/pub/projects/FactoryLiveCDs/LiveUSB-GNOME-20080518-i686.raw.bz2)

I need a way to hide these volumes - the mount points are simply invisible to the system and as such should not appear. Having them in fstab is wrong too in the chroot is wrong too.
Comment 9 Stephan Kulow 2008-05-21 19:38:21 UTC
*** Bug 391867 has been marked as a duplicate of this bug. ***
Comment 10 Kay Sievers 2008-05-21 19:52:00 UTC
Ok, I see. :)

So tagging them with "volume.ignore", like we do for several different rescue partitions in:
  /usr/share/hal/fdi/policy/10osvendor/20-storage-methods.fdi
would work?
Comment 11 Stephan Kulow 2008-05-22 09:01:04 UTC
Marcus, can we have a specific label in the partition? I still copy oem to myoem, so I can change the repartition code. But can I also influence the volume.label of sda1 ?
Comment 12 Marcus Schaefer 2008-05-22 19:34:10 UTC
I think you can set a label with fdisk on a partition and use this label
to ignore the partition

<match key="volume.label" string="BOB">
   <merge key="volume.ignore" type="bool">true</merge>
</match>

I must admit I never set a label on partitions and the oem repartition
code doesn't take care for it
Comment 13 Stephan Kulow 2008-05-22 20:15:47 UTC
the question was more where to sneed it in to get it in the original image. image.sh? And sda1 I don't need as I figured - as I can match on squashfs
Comment 14 Stephan Kulow 2008-06-07 20:20:12 UTC
This should help:
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
  <device>
    <match key="volume.mount_point" string="/read-write">
      <merge key="volume.ignore" type="bool">true</merge>
    </match>
  </device>
  <device>
    <match key="volume.mount_point" string="/read-only">
      <merge key="volume.ignore" type="bool">true</merge>
    </match>
  </device>
</deviceinfo>