[BUG] Swap partition recognized as an UsbDisk

Kay Sievers kay.sievers at vrfy.org
Fri Jul 6 23:32:10 PDT 2007


On 6/9/07, Andrea Cimitan <andrea.cimitan at gmail.com> wrote:
> I'm using new pata drivers which causes the device names to be sdaX.
> My swap partition is sda1, and under "Computer" (in nautilus/gnome and in kde) is shown (it shouldn't since it
> isn't browsable) and named UsbDisk, so when I put a _real_ UsbDisk it is
> renamed as disk-1 and so on...
> It is also placed in gtk-gilechooser, causing usability problems
>
> What it was expected to do:
> 1. Not show swap under Computer and gtk-filechooser
> 2. Not name it as "UsbDisk", since it isn't browsable and it isn't an usbdisk
>
> First submitted here:
> http://bugzilla.gnome.org/show_bug.cgi?id=445647

It is likely a leftover signature from a former formatting. You have
to clear the first few kilobytes of the partition before doing mkswap.
As Danny already mentioned:
  /lib/udev/vol_id --probe-all /dev/sdX
is likely to show you two detected filesystems instead of only "linux_swap".

Some of the Linux tools are just horrible broken regarding cleaning
old signatures before applying new ones.

Kay


More information about the hal mailing list