I gather that the linux command to use to check a disk for errors/bad
sectors is called fsck [prefixed depending on whether it is vfat,
ext2, ext3]. In my case for a remote drive vfat so that i can use it
on windows or ubuntu.
In the terminal: man dosfsck gives the syntax for the command. -n just
checks for errors, v is for verbose output, df -h gives me the drive
sdg1
presume permissions required so i did sudo
james@james-desktop:~$ sudo dosfsck -nv /dev/sdg1
dosfsck 2.11 (12 Mar 2005)
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
Checking we can access the last sector of the filesystem
Boot sector contents:
System ID "MSWIN4.1"
Media byte 0xf8 (hard disk)
512 bytes per logical sector
16384 bytes per cluster
32 reserved sectors
First FAT starts at byte 16384 (sector 32)
2 FATs, 32 bit entries
4781056 bytes per FAT (= 9338 sectors)
Root directory start at cluster 2 (arbitrary size)
Data area starts at byte 9578496 (sector 18708)
1195251 data clusters (19582992384 bytes)
63 sectors/track, 255 heads
63 hidden sectors
38266766 sectors total
Checking for unused clusters.
Checking free cluster summary.
/dev/sdg1: 2 files, 3/1195251 clusters
james@james-desktop:~$
Be grateful if someone could clarify - does this mean that there are
NO BAD SECTORS on this disk, should i have used a different switch or
approached this differently. I always checked hard drives in windows,
defrag and checkdisk [you could say why not do it in windows! but hope
not to use windows for much longer!!]