badblocks: No such file or directory while trying to determine device size
Hi,
Any one can explain the following?
tdev=sdb5
$ badblocks -p 99 -c 90000 -wv /dev/$tdev
badblocks: No such file or directory while trying to determine device size
$ fdisk -l /dev/sdb
Disk /dev/sdb: 1500.3 GB, 1500301910016 bytes
255 heads, 63 sectors/track, 182401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 1 7649 61440592 7 HPFS/NTFS
/dev/sdb2 7650 11474 30724312+ 83 Linux
/dev/sdb3 11475 182401 1372971127+ 5 Extended
/dev/sdb5 11475 182401 1372971127 83 Linux
$ sfdisk -V /dev/sdb
Warning: no primary partition is marked bootable (active)
This does not matter for LILO, but the DOS MBR will not boot this disk.
/dev/sdb: OK
PS, was doing
tdev=sdb and/or tdev=sdb1, and they both went well.
--
Tong (remove underscore(s) to reply)
http://xpt.sourceforge.net/techdocs/
http://xpt.sourceforge.net/tools/
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: i6umlr$tdf$1@dough.gmane.org">http://lists.debian.org/i6umlr$tdf$1@dough.gmane.org
09-17-2010, 02:09 PM
T o n g
badblocks: No such file or directory while trying to determine device size
On Fri, 17 Sep 2010 03:18:19 +0000, T o n g wrote:
> tdev=sdb5
>
> $ badblocks -p 99 -c 90000 -wv /dev/$tdev badblocks: No such file or
> directory while trying to determine device size
>
> . . . was doing
>
> tdev=sdb and/or tdev=sdb1, and they both went well.
>
> $ apt-cache policy e2fsprogs
> e2fsprogs:
> Installed: 1.41.3-1
> Candidate: 1.41.3-1
> Version table:
> *** 1.41.3-1 0
> 500 http://cdn.debian.net lenny/main Packages 100
> /var/lib/dpkg/status
that was lenny, rebooted into squeeze and all are fine:
tdev=sdb5
$ badbloctks -p 99 -c 90000 -wv /dev/$tdev
Checking for bad blocks in read-write mode
>From block 0 to 1372971126
Testing with pattern 0xaa:
--
Tong (remove underscore(s) to reply)
http://xpt.sourceforge.net/techdocs/
http://xpt.sourceforge.net/tools/
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: i6vsqh$go8$1@dough.gmane.org">http://lists.debian.org/i6vsqh$go8$1@dough.gmane.org
09-18-2010, 06:58 PM
T o n g
badblocks: No such file or directory while trying to determine device size
On Fri, 17 Sep 2010 14:09:22 +0000, T o n g wrote:
>> $ badblocks -p 99 -c 90000 -wv /dev/$tdev badblocks: No such file or
>> directory while trying to determine device size
The keyword here is "newly created" partition.
> that was lenny, rebooted into squeeze and all are fine:
The key here is "reboot".
No all tools realize the change in partition without a reboot, badblocks
being one of them.
--
Tong (remove underscore(s) to reply)
http://xpt.sourceforge.net/techdocs/
http://xpt.sourceforge.net/tools/
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: i7324j$ukc$1@dough.gmane.org">http://lists.debian.org/i7324j$ukc$1@dough.gmane.org