All of lore.kernel.org
 help / color / mirror / Atom feed
* fdisk -l hits floppy drive
@ 2015-02-06 19:13 Felix Miata
  2015-02-08  2:37 ` Dale R. Worley
  2015-02-09 14:45 ` Phillip Susi
  0 siblings, 2 replies; 10+ messages in thread
From: Felix Miata @ 2015-02-06 19:13 UTC (permalink / raw)
  To: util-linux

util-linux-2.25.1-5.2.x86_64 on openSUSE
kernels 3.16.6 and 3.18.3

fdisk -l is causing the floppy drive to get hit, which reflects the 4 kernel
messages onto the tty running fdisk. Is this expected or intended?
-- 
"The wise are known for their understanding, and pleasant
words are persuasive." Proverbs 16:21 (New Living Translation)

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata  ***  http://fm.no-ip.com/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: fdisk -l hits floppy drive
  2015-02-06 19:13 fdisk -l hits floppy drive Felix Miata
@ 2015-02-08  2:37 ` Dale R. Worley
  2015-02-08  7:52   ` Felix Miata
  2015-02-09 14:45 ` Phillip Susi
  1 sibling, 1 reply; 10+ messages in thread
From: Dale R. Worley @ 2015-02-08  2:37 UTC (permalink / raw)
  To: Felix Miata; +Cc: util-linux

Felix Miata <mrmazda@earthlink.net> writes:
> fdisk -l is causing the floppy drive to get hit, which reflects the 4 kernel
> messages onto the tty running fdisk. Is this expected or intended?

I see in the manual page:

       -l     List the partition tables for the  specified  devices  and  then
              exit.   If no devices are given, those mentioned in /proc/parti-
              tions (if that exists) are used.

Is the floppy listed in /proc/partitions?

Dale

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: fdisk -l hits floppy drive
  2015-02-08  2:37 ` Dale R. Worley
@ 2015-02-08  7:52   ` Felix Miata
  2015-02-09 10:36     ` Karel Zak
  2015-02-17  2:30     ` Dale R. Worley
  0 siblings, 2 replies; 10+ messages in thread
From: Felix Miata @ 2015-02-08  7:52 UTC (permalink / raw)
  To: util-linux

Dale R. Worley composed on 2015-02-07 21:37 (UTC-0500):

> Felix Miata wrote:

>> fdisk -l is causing the floppy drive to get hit, which reflects the 4 kernel
>> messages onto the tty running fdisk. Is this expected or intended?

> I see in the manual page:
> 
>        -l     List the partition tables for the  specified  devices  and  then
>               exit.   If no devices are given, those mentioned in /proc/parti-
>               tions (if that exists) are used.

> Is the floppy listed in /proc/partitions?

Yes, as is the OM drive:
3.18.3-1-desktop #1 SMP PREEMPT Mon Jan 19 12:38:51 UTC 2015 (c3e148f) x86_64
x86_64 x86_64 GNU/Linux (openSUSE Tumbleweed)
major minor  #blocks  name

   8        0 1953514584 sda
   8        1     409600 sda1
   8        2    2048000 sda2
   8        3     409600 sda3
   8        4          1 sda4
   8        5    4245488 sda5
   8        6   49151984 sda6
   8        7     258032 sda7
   8        8   10239984 sda8
   8        9   10239984 sda9
   8       10   10239984 sda10
   8       11   10239984 sda11
   8       12    5119984 sda12
   8       13    4095984 sda13
   8       14    2047984 sda14
   8       15   24575984 sda15
 259        0   77823984 sda16
 259        1  240639984 sda17
 259        2  972799984 sda18
 259        3     450544 sda19
 259        4   49151984 sda20
   2        0          4 fd0
  11        0    1048575 sr0

Knoppix 7.4's 3.16.3 and openSUSE 13.2's 3.16.7 have fd0 in /proc/partitions
too. openSUSE 13.1's 3.12.36 lists sr0, but not fd0. Tumbleweed's hwinfo
--[cdrom|disk|ide|partition|redasd|scsi] (v21.11) all produce fd0 messages on
vttys too. hwinfo --floppy produces 6 messages instead of 4, so I suspect
this is about something exclusive to openSUSE other than util-linux, but
what? Kernel? Systemd logging? Other?

All above are on a Dell Optiplex 760 SFF (ICH10D) with BIOS A12, 4 versions
older than latest
available (A16; too big to fit on a 1.44M floppy).
http://www.dell.com/us/dfb/p/optiplex-760/pd

A similar age Biostar (NM10/ICH7) with Tumbleweed's 3.18.3 and 13.2's 3.16.7
lists fd0, sr0 & sr1, but Tumbleweed's fdisk (2.25.1) and 13.2's fdisk
(2.25.1) don't result in the floppy hits trailing output. 13.1's 3.16.7 has
sr0 & sr0 in /proc/partitions, but not fd0, same as Rawhide's 3.19.rc7.

An older Optiplex GX280 SFF (ICH6; BIOS A04) with floppy and Tumbleweed's
3.18.1 and
13.2's 3.16.7 list both sr0 and fd0 in /proc/partitions, but drop no fd0
messages on the ttys from fdisk -l or hwinfo.
-- 
"The wise are known for their understanding, and pleasant
words are persuasive." Proverbs 16:21 (New Living Translation)

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata  ***  http://fm.no-ip.com/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: fdisk -l hits floppy drive
  2015-02-08  7:52   ` Felix Miata
@ 2015-02-09 10:36     ` Karel Zak
  2015-02-17  2:30     ` Dale R. Worley
  1 sibling, 0 replies; 10+ messages in thread
From: Karel Zak @ 2015-02-09 10:36 UTC (permalink / raw)
  To: Felix Miata; +Cc: util-linux

On Sun, Feb 08, 2015 at 02:52:27AM -0500, Felix Miata wrote:
> Knoppix 7.4's 3.16.3 and openSUSE 13.2's 3.16.7 have fd0 in /proc/partitions
> too. openSUSE 13.1's 3.12.36 lists sr0, but not fd0. Tumbleweed's hwinfo
> --[cdrom|disk|ide|partition|redasd|scsi] (v21.11) all produce fd0 messages on
> vttys too. hwinfo --floppy produces 6 messages instead of 4, so I suspect
> this is about something exclusive to openSUSE other than util-linux, but
> what? Kernel? Systemd logging? Other?

I guess it's the same situation like with cdroms, years ago has been
added the removable media to /proc/partitions, the attempt to revert
this regression has been rejected.

  https://lkml.org/lkml/2012/11/19/572

Maybe we can ignore the floppies according to size (4KiB in you
example) or devno.

    Karel


-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: fdisk -l hits floppy drive
  2015-02-06 19:13 fdisk -l hits floppy drive Felix Miata
  2015-02-08  2:37 ` Dale R. Worley
@ 2015-02-09 14:45 ` Phillip Susi
  2015-02-10 14:59   ` Felix Miata
  1 sibling, 1 reply; 10+ messages in thread
From: Phillip Susi @ 2015-02-09 14:45 UTC (permalink / raw)
  To: Felix Miata, util-linux

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2/6/2015 2:13 PM, Felix Miata wrote:
> util-linux-2.25.1-5.2.x86_64 on openSUSE kernels 3.16.6 and 3.18.3
> 
> fdisk -l is causing the floppy drive to get hit, which reflects the
> 4 kernel messages onto the tty running fdisk. Is this expected or
> intended?

I'm guessing you don't actually have a floppy, in which case, your
bios is misconfigured to think you do and you should fix that.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)

iQEcBAEBAgAGBQJU2MgcAAoJENRVrw2cjl5RAWIH/R6n+VbEfKcUhbjlbUR0wSzo
E6fqw+3G+MCUH6O0L/e+MvbME8WrJagtzgfvBcTMLjZUihOamcyZ8icQncybDp13
60lsaTosvrwWwt3lNTQvEVAVTnJem5Yj987zTDY4tHpmZushL2a6oeVLCmy5s8WU
zN4CBlJnWJ+xZd+OWe11s5owacxrasty4nUIAwrQKmH75+hdS7z3BRV3YUJ7YVkl
XDGprm5g/XOgu+QlS2VRFW7n/OS0Jp0Hx0cHY3KBVokI/i4+gqSn5yIbA+qqSSok
KlBDtHQG1uNfif+00aoLBNb/8RfDjZ9IYzY6qIIhvlKlIJW7rgWiDD19+ysPDm8=
=Q8uE
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: fdisk -l hits floppy drive
  2015-02-09 14:45 ` Phillip Susi
@ 2015-02-10 14:59   ` Felix Miata
  2015-04-07  1:03     ` Phillip Susi
  0 siblings, 1 reply; 10+ messages in thread
From: Felix Miata @ 2015-02-10 14:59 UTC (permalink / raw)
  To: util-linux

Phillip Susi composed on 2015-02-09 09:45 (UTC-0500):

> On 2/6/2015 2:13 PM, Felix Miata wrote:

>> util-linux-2.25.1-5.2.x86_64 on openSUSE kernels 3.16.6 and 3.18.3

>> fdisk -l is causing the floppy drive to get hit, which reflects the
>> 4 kernel messages onto the tty running fdisk. Is this expected or
>> intended?

> I'm guessing you don't actually have a floppy, in which case, your
> bios is misconfigured to think you do and you should fix that.

You guessed wrong:
https://bugzilla.opensuse.org/show_bug.cgi?id=773058
https://bugzilla.opensuse.org/show_bug.cgi?id=916773
-- 
"The wise are known for their understanding, and pleasant
words are persuasive." Proverbs 16:21 (New Living Translation)

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata  ***  http://fm.no-ip.com/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: fdisk -l hits floppy drive
  2015-02-08  7:52   ` Felix Miata
  2015-02-09 10:36     ` Karel Zak
@ 2015-02-17  2:30     ` Dale R. Worley
  2015-02-17  8:32       ` Felix Miata
  1 sibling, 1 reply; 10+ messages in thread
From: Dale R. Worley @ 2015-02-17  2:30 UTC (permalink / raw)
  To: Felix Miata; +Cc: util-linux

Felix Miata <mrmazda@earthlink.net> writes:
> Dale R. Worley composed on 2015-02-07 21:37 (UTC-0500):
>
>> Felix Miata wrote:
>
>>> fdisk -l is causing the floppy drive to get hit, which reflects the 4 kernel
>>> messages onto the tty running fdisk. Is this expected or intended?
>
>> I see in the manual page:
>> 
>>        -l     List the partition tables for the  specified  devices  and  then
>>               exit.   If no devices are given, those mentioned in /proc/parti-
>>               tions (if that exists) are used.
>
>> Is the floppy listed in /proc/partitions?
>
> Yes, as is the OM drive:
>...
>    2        0          4 fd0
>...

Then the answer to your question is, "Yes, it is expected and intended."

Are you saying that you find this undesirable?  If so, do you have a
proposal for how "fdisk -l" should determine the list of devices that it
should list?

Dale

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: fdisk -l hits floppy drive
  2015-02-17  2:30     ` Dale R. Worley
@ 2015-02-17  8:32       ` Felix Miata
  2015-02-18  3:29         ` Dale R. Worley
  0 siblings, 1 reply; 10+ messages in thread
From: Felix Miata @ 2015-02-17  8:32 UTC (permalink / raw)
  To: util-linux

worley@alum.mit.edu (Dale R. Worley) composed on 2015-02-16 21:30 (UTC-0500):

> Felix Miata wrote:

>> Dale R. Worley composed on 2015-02-07 21:37 (UTC-0500):

>>> Felix Miata wrote:

>>>> fdisk -l is causing the floppy drive to get hit, which reflects the 4 kernel
>>>> messages onto the tty running fdisk. Is this expected or intended?

>>> I see in the manual page:

>>>        -l     List the partition tables for the  specified  devices  and  then
>>>               exit.   If no devices are given, those mentioned in /proc/parti-
>>>               tions (if that exists) are used.

>>> Is the floppy listed in /proc/partitions?

>> Yes, as is the OM drive:
>>...
>>    2        0          4 fd0
>>...

> Then the answer to your question is, "Yes, it is expected and intended."

Why?

> Are you saying that you find this undesirable? 

Based on my understanding of the meaning of partition, yes. From the man page:

	fdisk is a dialog-driven program for creation and manipulation of
	partition tables.

sr0 and fd0 don't have partition tables. Are sr0 and fd0 not always invalid
targets for fdisk? If yes, what reason is there for /proc/partitions to
contain them?

> If so, do you have a
> proposal for how "fdisk -l" should determine the list of devices that it
> should list?

AFAICT, it should list all items in /proc/partitions, which should contain
only devices that are partitionable. Including /dev/md* in /proc/partitions
also seems wrong.

How fdisk does what it does doesn't really matter to me. What matters is not
hearing unexpected attempts to access an old floppy drive that I expect to
work when I need it instead of being worn out by unwanted and useless access
attempts; and not seeing floppy access failure messages appear in the middle
of other activity.
-- 
"The wise are known for their understanding, and pleasant
words are persuasive." Proverbs 16:21 (New Living Translation)

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata  ***  http://fm.no-ip.com/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: fdisk -l hits floppy drive
  2015-02-17  8:32       ` Felix Miata
@ 2015-02-18  3:29         ` Dale R. Worley
  0 siblings, 0 replies; 10+ messages in thread
From: Dale R. Worley @ 2015-02-18  3:29 UTC (permalink / raw)
  To: Felix Miata; +Cc: util-linux

Felix Miata <mrmazda@earthlink.net> writes:

>>>>> fdisk -l is causing the floppy drive to get hit, which reflects the 4 kernel
>>>>> messages onto the tty running fdisk. Is this expected or intended?
>
>>>> I see in the manual page:
>
>>>>        -l     List the partition tables for the  specified  devices  and  then
>>>>               exit.   If no devices are given, those mentioned in /proc/parti-
>>>>               tions (if that exists) are used.
>
>>>> Is the floppy listed in /proc/partitions?
>
>> Then the answer to your question is, "Yes, it is expected and intended."
>
> Why?

Because "fdisk -l lists the partition tables for all devices listed in
/proc/partitions", as it says in the manual page.

Your complaint is not really about the behavior of fdisk, but about the
contents of /proc/partitions, which is maintained by some other group.

>> Are you saying that you find this undesirable? 
>
> Based on my understanding of the meaning of partition, yes. From the man page:
>
> 	fdisk is a dialog-driven program for creation and manipulation of
> 	partition tables.
>
> sr0 and fd0 don't have partition tables. Are sr0 and fd0 not always invalid
> targets for fdisk? If yes, what reason is there for /proc/partitions to
> contain them?

Actually, you *can* write a partition table to fd0, though people rarely
bother to.  It makes more sense if fd0 is an LS-120 (120 MiB) device,
which I had on one computer.

Dale

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: fdisk -l hits floppy drive
  2015-02-10 14:59   ` Felix Miata
@ 2015-04-07  1:03     ` Phillip Susi
  0 siblings, 0 replies; 10+ messages in thread
From: Phillip Susi @ 2015-04-07  1:03 UTC (permalink / raw)
  To: Felix Miata, util-linux

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 02/10/2015 09:59 AM, Felix Miata wrote:
>> I'm guessing you don't actually have a floppy, in which case,
>> your bios is misconfigured to think you do and you should fix
>> that.
> 
> You guessed wrong: 
> https://bugzilla.opensuse.org/show_bug.cgi?id=773058 
> https://bugzilla.opensuse.org/show_bug.cgi?id=916773

Huh?  That bug report echos exactly what I said: the bios is
misconfigured to think there is a floppy when in fact, there is not.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBCgAGBQJVIyz4AAoJENRVrw2cjl5RIvsH/A6h5V9R9yTQtNZv4RPQFU9I
XRG7RZORiB25EXbunKQ9Ry+HqG0WucOC/fM5LJIKQCnl1c1osy3bpdg6Vy5UceiZ
le9Awn7fH6+naOpdPIJjdT3FXTaL0oqXpAuHG839PqcHO0QxWFWOujHJX1op1cUw
oXTLDlP6KN3+z/5M4SZoLxtqas6nqtyWFp64jqARhI6ry6wjTbO+IgKYjKa9PXBe
O1Y1dOBiHkrCmFfPIVCoIrX4Zs0PVFZfozOk5v8bU62hmCG0bv7joxJgAAS3G8uu
7UoZjPZwF9UHFBX/5qT2MfrPjfgPxu6QopXrmqmaGCxaPXEvWem+/YZPCUGlYWg=
=65/7
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-04-07  1:05 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-06 19:13 fdisk -l hits floppy drive Felix Miata
2015-02-08  2:37 ` Dale R. Worley
2015-02-08  7:52   ` Felix Miata
2015-02-09 10:36     ` Karel Zak
2015-02-17  2:30     ` Dale R. Worley
2015-02-17  8:32       ` Felix Miata
2015-02-18  3:29         ` Dale R. Worley
2015-02-09 14:45 ` Phillip Susi
2015-02-10 14:59   ` Felix Miata
2015-04-07  1:03     ` Phillip Susi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.