Announcement

Collapse
No announcement yet.

Device mount point name suddenly, randomly changed?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Device mount point name suddenly, randomly changed?

    Oneric, 11.10; installed as 11.04 then ... "updated"? "upgraded?" Whatever Synaptic said, it happened months ago.

    Have been using Dolphin to work my lifetime archive of files into a more sensible structure, culling from a half dozen DVDs I've burned over the past decade and several flash drives of more recent files. I'm moving MP3s, payment statements, photos/videos from cellphones and so forth. The target of aggregating all these files was a specific partition on my internal hard disk.

    Then, along the way, something hiccupped, and one split of the Dolphin window went blank. Fortunately, I was not actively transferring files at that moment, and all that happened was I needed to quit Dolphin, unmount the external stuff (2 flash drives and an optical disc in the DVDRW drive), restarted the PC and almost everything was normal. The name that Dolphin displays for the hard disk partition is not what it used to be. The name used to say "56.0 GiB Hard Drive". It now reads "z%zn)". Groan. Was this caused by those stinking Windows files with ampersands in the file name? Whatever, damage is done. Now how do I fix this name? I glanced this: http://www.kubuntuforums.net/showthr...ghlight=udisks and discovered the name is not Dolphins fault, it appears to be caused by the information which udevadm is using. Now, how do I edit that name? Here is some of my support data.

    mmmmna@mmmmna-MCP61SM2MA:~$ uname -a
    Linux mmmmna-MCP61SM2MA 3.0.0-23-generic #39-Ubuntu SMP Thu Jul 19 19:18:53 UTC 2012 i686 athlon i386 GNU/Linux
    mmmmna@mmmmna-MCP61SM2MA:~$
    mmmmna@mmmmna-MCP61SM2MA:~$
    mmmmna@mmmmna-MCP61SM2MA:~$ udevadm info --query=all -n /dev/sda1
    P: /devices/pci0000:00/0000:00:08.0/host1/target1:0:0/1:0:0:0/block/sda/sda1
    N: sda1
    S: disk/by-id/ata-ST500DM002-1BC142_Z2AEM4KJ-part1
    S: disk/by-id/scsi-SATA_ST500DM002-1BC1_Z2AEM4KJ-part1
    S: disk/by-path/pci-0000:00:08.0-scsi-0:0:0:0-part1
    S: disk/by-uuid/E1DB-AE04
    S: disk/by-label/z\x25zn\x29\xbbr\xef\xd5¡
    S: disk/by-id/wwn-0x5000c5003f0ae97b-part1
    E: UDEV_LOG=3
    E: DEVPATH=/devices/pci0000:00/0000:00:08.0/host1/target1:0:0/1:0:0:0/block/sda/sda1
    E: MAJOR=8
    E: MINOR=1
    E: DEVNAME=/dev/sda1
    E: DEVTYPE=partition
    E: SUBSYSTEM=block
    E: ID_ATA=1
    E: ID_TYPE=disk
    E: ID_BUS=ata
    E: ID_MODEL=ST500DM002-1BC142
    E: ID_MODEL_ENC=ST500DM002-1BC142\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20 \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
    E: ID_REVISION=JC4B
    E: ID_SERIAL=ST500DM002-1BC142_Z2AEM4KJ
    E: ID_SERIAL_SHORT=Z2AEM4KJ
    E: ID_ATA_WRITE_CACHE=1
    E: ID_ATA_WRITE_CACHE_ENABLED=1
    E: ID_ATA_FEATURE_SET_HPA=1
    E: ID_ATA_FEATURE_SET_HPA_ENABLED=1
    E: ID_ATA_FEATURE_SET_PM=1
    E: ID_ATA_FEATURE_SET_PM_ENABLED=1
    E: ID_ATA_FEATURE_SET_SECURITY=1
    E: ID_ATA_FEATURE_SET_SECURITY_ENABLED=0
    E: ID_ATA_FEATURE_SET_SECURITY_ERASE_UNIT_MIN=78
    E: ID_ATA_FEATURE_SET_SECURITY_ENHANCED_ERASE_UNIT_MI N=78
    E: ID_ATA_FEATURE_SET_SMART=1
    E: ID_ATA_FEATURE_SET_SMART_ENABLED=1
    E: ID_ATA_FEATURE_SET_AAM=1
    E: ID_ATA_FEATURE_SET_AAM_ENABLED=1
    E: ID_ATA_FEATURE_SET_AAM_VENDOR_RECOMMENDED_VALUE=20 8
    E: ID_ATA_FEATURE_SET_AAM_CURRENT_VALUE=208
    E: ID_ATA_DOWNLOAD_MICROCODE=1
    E: ID_ATA_SATA=1
    E: ID_ATA_SATA_SIGNAL_RATE_GEN2=1
    E: ID_ATA_SATA_SIGNAL_RATE_GEN1=1
    E: ID_ATA_ROTATION_RATE_RPM=7200
    E: ID_WWN=0x5000c5003f0ae97b
    E: ID_WWN_WITH_EXTENSION=0x5000c5003f0ae97b
    E: ID_SCSI_COMPAT=SATA_ST500DM002-1BC1_Z2AEM4KJ
    E: ID_PATH=pci-0000:00:08.0-scsi-0:0:0:0
    E: ID_PATH_TAG=pci-0000_00_08_0-scsi-0_0_0_0
    E: ID_PART_TABLE_TYPE=dos
    E: ID_FS_LABEL=z%zn__r__¡
    E: ID_FS_LABEL_ENC=z\x25zn\x29\xbbr\xef\xd5¡

    E: ID_FS_UUID=E1DB-AE04
    E: ID_FS_UUID_ENC=E1DB-AE04
    E: ID_FS_VERSION=FAT32
    E: ID_FS_TYPE=vfat
    E: ID_FS_USAGE=filesystem
    E: ID_PART_ENTRY_SCHEME=dos
    E: ID_PART_ENTRY_TYPE=0xb
    E: ID_PART_ENTRY_NUMBER=1
    E: UDISKS_PRESENTATION_NOPOLICY=0
    E: UDISKS_PARTITION=1
    E: UDISKS_PARTITION_SCHEME=mbr
    E: UDISKS_PARTITION_NUMBER=1
    E: UDISKS_PARTITION_TYPE=0x0b
    E: UDISKS_PARTITION_SIZE=60121153536
    E: UDISKS_PARTITION_SLAVE=/sys/devices/pci0000:00/0000:00:08.0/host1/target1:0:0/1:0:0:0/block/sda
    E: UDISKS_PARTITION_OFFSET=1048576
    E: UDISKS_PARTITION_ALIGNMENT_OFFSET=0
    E: DEVLINKS=/dev/disk/by-id/ata-ST500DM002-1BC142_Z2AEM4KJ-part1 /dev/disk/by-id/scsi-SATA_ST500DM002-1BC1_Z2AEM4KJ-part1 /dev/disk/by-path/pci-0000:00:08.0-scsi-0:0:0:0-part1 /dev/disk/by-uuid/E1DB-AE04 /dev/disk/by-label/z\x25zn\x29\xbbr\xef\xd5¡ /dev/disk/by-id/wwn-0x5000c5003f0ae97b-part1

    mmmmna@mmmmna-MCP61SM2MA:~$
    The highlighted information is the name that is incorrect.

    I have skimmed over man 8 udevadm but I do not see a "files" section of the man page.

    Any tutorials on how to force udev/udisks/udevadm to use the proper string, and to store that string as it used to be stored these many months?

    oh, btw, this partition is set up as fat, because I wanted the possibility to install Windows in the event something happened with Linux - I own Broadcom wireless hardware, which hardware seems to never be supported by a default install of any Linux distro I've tried, so if Linux can't go online, Windows might save me.
    Last edited by mmmmna; Aug 07, 2012, 12:51 PM. Reason: added information

    #2
    My fstab is not naming the partition:
    root@mmmmna-MCP61SM2MA:/home/mmmmna# cat /etc/fstab
    proc /proc proc nodev,noexec,nosuid 0 0
    UUID=8df68c97-0fd8-429c-87b3-4bf40dca9ae1 / ext3 errors=remount-ro 0 1
    UUID=9eb36f19-7db9-46e5-8e29-2faa74788446 none swap sw 0 0
    root@mmmmna-MCP61SM2MA:/home/mmmmna#
    I trimmed out the comment lines.

    Comment


      #3
      What's the output of blkid -o udev with the USB drive in?

      This might help:

      http://superuser.com/questions/53978...ot-without-a-u

      Please Read Me

      Comment


        #4
        Originally posted by mmmmna View Post
        Any tutorials on how to force udev/udisks/udevadm to use the proper string, and to store that string as it used to be stored these many months?
        udev dose not store names of the drives like this, however, it does look for a label on the drive first before making up the name like that ^^ so you could try giving the drive a label and see if that helps.

        I assume the drive is working find in all other respects? If so another option could be to backup the data off the drive and reformat the drive if renaming it does not work.

        Originally posted by mmmmna View Post
        My fstab is not naming the partition:I trimmed out the comment lines.
        /etc/fstab only lists drives that should be mounted at boot so removable media is rarely listed here and this file never changes automatically after the initial install. A better command to list the current drives is blkid (as oshunluvr suggested) although I find that I sometimes need to add the option "-c /dev/null" to it to get it to update its cached values (especially when adding/removing media and reformatting things).

        Comment


          #5
          Originally posted by mmmmna View Post
          The name that Dolphin displays for the hard disk partition is not what it used to be. The name used to say "56.0 GiB Hard Drive". It now reads "z%zn)".
          Originally posted by oshunluvr View Post
          What's the output of blkid -o udev with the USB drive in?
          Post is not about any USB device.

          Comment


            #6
            Fixed.

            root@mmmmna-MCP61SM2MA:/home/mmmmna# mkdosfs /dev/sda1
            mkdosfs 3.0.9 (31 Jan 2010)
            root@mmmmna-MCP61SM2MA:/home/mmmmna#
            The mkdosfs command provided a null file name, and seconds later, Dolphin updated its 'Places' to read the original string: "56.0 GiB Hard Drive".

            What scares me is that the label should not have been edited at all, I was not using a root account during this event. I hate it when the file system gets wonked from a normal user doing normal stuff.

            Comment


              #7
              The Ubuntu rename/label guide: https://help.ubuntu.com/community/RenameUSBDrive
              ...This guide covers editing partition labels (disk names) for FAT16/FAT32, NTFS, ext2/ext3, JFS, ReiserFS, and XFS filesystems...

              It can be used with the external/internal drives (non usb).
              Have you tried ?

              - How to Ask a Question on the Internet and Get It Answered
              - How To Ask Questions The Smart Way

              Comment

              Working...
              X