Re: why would fdisk -l take so long?
~
I think there may be a number of things going on here. Let me first
answer Neal's questions:
~
> Have you tried "fdisk -l /dev/sda"?
~
Well, there are no disk attached whatsoever to my box. I am using a
bear live CD (knoppix 7.0.2) right off the DVD drive
~
> How about:
> tail -f /var/log/messages # In a separate window
~
file seems to be empty
~
$ date; time sudo ls -l /KNOPPIX/var/log/messages
Fri Sep 28 21:55:38 UTC 2012
-rw-r----- 1 syslog adm 0 May 13 02:17 /KNOPPIX/var/log/messages
real 0m0.012s
user 0m0.000s
sys 0m0.007s
~
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
~ ~ ~ ~ ~ ~
~
Without having any drive attached I booted into init 2 using:
~
"boot: knoppix no3d init 2"
~
and fdisk -l was returning with timings bellow 0.010s. Then I
suspended the box (again no hard drives attached whatsoever) and after
awakening the box "fdisk -l" started giving me the "38+ seconds"
responses
~
So it may not be a hard drive dying issue after all. Am I the only
debian user suspending his box to whom that happens?
~
lbrtchx
~
$ date; time fdisk -l
Fri Sep 28 21:14:08 UTC 2012
real 0m0.009s
$ date; time fdisk -l
Fri Sep 28 21:14:10 UTC 2012
real 0m0.009s
$ date; time fdisk -l
Fri Sep 28 21:14:11 UTC 2012
real 0m0.009s
sys 0m0.003s
$ date; time fdisk -l
Fri Sep 28 21:14:12 UTC 2012
real 0m0.009s
$ sudo mount /media/sda1
$ date; time fdisk -l
Fri Sep 28 21:14:45 UTC 2012
Disk /dev/sda: 8006 MB, 8006926336 bytes
39 heads, 39 sectors/track, 10281 cylinders, total 15638528 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc3072e18
Device Boot Start End Blocks Id System
/dev/sda1 * 8064 15638527 7815232 c W95 FAT32 (LBA)
real 0m0.017s
$ date; time fdisk -l
Fri Sep 28 21:14:49 UTC 2012
Disk /dev/sda: 8006 MB, 8006926336 bytes
39 heads, 39 sectors/track, 10281 cylinders, total 15638528 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc3072e18
Device Boot Start End Blocks Id System
/dev/sda1 * 8064 15638527 7815232 c W95 FAT32 (LBA)
real 0m0.015s
$ date; time fdisk -l
Fri Sep 28 21:14:50 UTC 2012
Disk /dev/sda: 8006 MB, 8006926336 bytes
39 heads, 39 sectors/track, 10281 cylinders, total 15638528 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc3072e18
Device Boot Start End Blocks Id System
/dev/sda1 * 8064 15638527 7815232 c W95 FAT32 (LBA)
real 0m0.013s
$ date; time fdisk -l
Fri Sep 28 21:14:51 UTC 2012
Disk /dev/sda: 8006 MB, 8006926336 bytes
39 heads, 39 sectors/track, 10281 cylinders, total 15638528 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc3072e18
Device Boot Start End Blocks Id System
/dev/sda1 * 8064 15638527 7815232 c W95 FAT32 (LBA)
real 0m0.014s
$ sudo umount /media/sda1
$ date; time fdisk -l
Fri Sep 28 21:15:02 UTC 2012
Disk /dev/sda: 8006 MB, 8006926336 bytes
39 heads, 39 sectors/track, 10281 cylinders, total 15638528 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc3072e18
Device Boot Start End Blocks Id System
/dev/sda1 * 8064 15638527 7815232 c W95 FAT32 (LBA)
real 0m0.025s
user 0m0.003s
$ date; time fdisk -l
Fri Sep 28 21:15:03 UTC 2012
Disk /dev/sda: 8006 MB, 8006926336 bytes
39 heads, 39 sectors/track, 10281 cylinders, total 15638528 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc3072e18
Device Boot Start End Blocks Id System
/dev/sda1 * 8064 15638527 7815232 c W95 FAT32 (LBA)
real 0m0.022s
$ date; time fdisk -l
Fri Sep 28 21:15:04 UTC 2012
Disk /dev/sda: 8006 MB, 8006926336 bytes
39 heads, 39 sectors/track, 10281 cylinders, total 15638528 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc3072e18
Device Boot Start End Blocks Id System
/dev/sda1 * 8064 15638527 7815232 c W95 FAT32 (LBA)
real 0m0.024s
$ date; time fdisk -l
Fri Sep 28 21:15:04 UTC 2012
Disk /dev/sda: 8006 MB, 8006926336 bytes
39 heads, 39 sectors/track, 10281 cylinders, total 15638528 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc3072e18
Device Boot Start End Blocks Id System
/dev/sda1 * 8064 15638527 7815232 c W95 FAT32 (LBA)
real 0m0.023s
$ date; time fdisk -l
Fri Sep 28 21:17:47 UTC 2012
real 0m0.009s
$ date; time fdisk -l
Fri Sep 28 21:17:51 UTC 2012
real 0m0.009s
$ date; time fdisk -l
Fri Sep 28 21:17:54 UTC 2012
real 0m0.009s
$ date; time fdisk -l
Fri Sep 28 21:17:57 UTC 2012
real 0m0.011s
$ date; time fdisk -l
Fri Sep 28 21:19:58 UTC 2012
real 0m0.011s
$ date; time fdisk -l
Fri Sep 28 21:20:00 UTC 2012
real 0m0.009s
$ date; time fdisk -l
Fri Sep 28 21:20:01 UTC 2012
real 0m0.009s
~ ~ ~ ~ ~ ~ ~ after suspending box for about 10 seconds ~ ~ ~ ~ ~ ~ ~
$ date; time fdisk -l
Fri Sep 28 21:21:09 UTC 2012
real 0m38.089s
$ date; time fdisk -l
Fri Sep 28 21:22:23 UTC 2012
real 0m38.093s
$ date; time fdisk -l
Fri Sep 28 21:23:12 UTC 2012
real 0m38.095s
$ date; time fdisk -l
Fri Sep 28 21:23:58 UTC 2012
real 0m38.101s
Reply to: