Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 28 Jul 2014, 00:44
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
TestDisk: Flash Drive="CHS and LBA don't match" [SOLVED]
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 11 [156 Posts]   Goto page: 1, 2, 3, ..., 9, 10, 11 Next
Author Message
Sylvander

Joined: 15 Dec 2008
Posts: 3400
Location: West Lothian, Scotland, UK

PostPosted: Sun 24 Feb 2013, 07:03    Post subject:  TestDisk: Flash Drive="CHS and LBA don't match" [SOLVED]
Subject description: Incorrect number of heads/cylinder 255 (FAT) !=32 (HD)
 

1. Re-formatted the only 962 MiB Flash Drive partition from EXT3 to FAT32 = SUCCESS.

2. Tried to copy some photo files from external HDD to Flash Drive = FAIL.
Files were OK at 1st, then file names changed to strange characters.
Was I trying to copy too much content to the destination partition?

3. Using GParted...
Tried to re-format = FAILED.
Tried to re-partition = FAILED.
UNKNOWN File System!

4. Installed and ran TestDisk on the problem Flash Drive.
Ran OK.
I have made a testdisk.log file, so that's available if wanted.
Don't know how to get TestDisk to fix this problem.

5. Any advice or instructions? Very Happy

Last edited by Sylvander on Thu 21 Mar 2013, 07:57; edited 3 times in total
Back to top
View user's profile Send private message 
amigo

Joined: 02 Apr 2007
Posts: 2221

PostPosted: Sun 24 Feb 2013, 13:03    Post subject:  

Have you changed the partition type or only reformatted? I think gparted may fail if the partition type is not correct for the filesystem.
Back to top
View user's profile Send private message 
Sylvander

Joined: 15 Dec 2008
Posts: 3400
Location: West Lothian, Scotland, UK

PostPosted: Sun 24 Feb 2013, 16:46    Post subject:  

1. What do you mean by "partition type"? Confused
GParted isn't displaying any info about "partition type".

2. All I did was reformat the existing partition from EXT3 to FAT32.
Back to top
View user's profile Send private message 
Peterm321

Joined: 29 Jan 2009
Posts: 222

PostPosted: Sun 24 Feb 2013, 23:18    Post subject:  

Sylvander Today 07:03 wrote:
Files were OK at 1st, then file names changed to strange characters.


This hapepened to one of my USB pen drives, I reformatted, used dd to write from /dev/zero to it, low level reformatted etc to no avail. Before all of this I copied from it what I could. It seems it was just a dodgy device. I replaced it with a new one.
Back to top
View user's profile Send private message 
Monsie


Joined: 01 Dec 2011
Posts: 633
Location: Kamloops BC Canada

PostPosted: Mon 25 Feb 2013, 00:46    Post subject: TestDisk: Flash Drive="CHS and LBA don't match"  

Hi Sylvander,

Quote:
2. All I did was reformat the existing partition from EXT3 to FAT32.


When using gparted did you delete the existing partition, create a new one, and then format it as fat32?

For what it is worth, as I recall, I have had problems with gparted in the past when it came to formatting a disk with Windows file systems. Initially everything appeared okay, but as soon as I tried to store some data, I came up with error messages. Maybe this is a bug in gparted still...

A suggestion: if you are wanting to use fat32, see if you can access a Windows PC to do the re-format... it might make a difference --otherwise as has been suggested, it could be that your flash drive is dodgy.

Hope this helps,
Monsie

_________________
My username is pronounced: "mun-see". Derived from my surname, it was my nickname throughout high school.
Back to top
View user's profile Send private message 
Sylvander

Joined: 15 Dec 2008
Posts: 3400
Location: West Lothian, Scotland, UK

PostPosted: Mon 25 Feb 2013, 05:34    Post subject: Re: TestDisk: Flash Drive="CHS and LBA don't match"  

Monsie wrote:
When using gparted did you delete the existing partition, create a new one, and then format it as fat32?

1. No...
The EXT3 partition was empty...
And I did nothing more than reformat it to FAT32.
The files I then copied [using Xfe] to the newly formatted and empty FAT32 partition...
Do not need to be preserved or recovered.
Since they still exist on the source [external USB HDD].

2. I don't have a Windows OS available to me.
...Unless I ask a neighbor for the use of their PC.
Might try using my "FalconFour's UBCD 44.5" XP-light, and report back.
Back to top
View user's profile Send private message 
proebler

Joined: 24 Jan 2012
Posts: 70
Location: TAS

PostPosted: Mon 25 Feb 2013, 06:29    Post subject:
Subject description: Gparted not working
 

Sylvander,

I have had similar experience[s] where Gparted could no longer be used to reformat a flash drive.
I then tried the disk utility available in Mint, which did the job ok.
Also other Linux distros have disk utilities similar to or the same as Mint, I think.

So, if you have access to an other distro, you might want to try that.

cheers
proebler
Back to top
View user's profile Send private message 
Sylvander

Joined: 15 Dec 2008
Posts: 3400
Location: West Lothian, Scotland, UK

PostPosted: Tue 26 Feb 2013, 05:21    Post subject:  

@Monsie:
Tried "FalconFour's UBCD"...
No success here either.
Disk Management: D:>Format>FAT32>Quick Format>FAILED!
Status="Healthy"; Type="Basic".
Check Disk: File system is "RAW"; CHKDSK "not available" for RAW drives.

@Proebler:
Recently tried Mint, but couldn't get it to do stuff, so blanked the CD-RW.
Might re-burn a CD-RW and try it again on this problem.
Will report back if I do.
Tried the following 2 versions of Mint:
linuxmint-13-mate-dvd-64bit.iso [Failed to boot, blinking cursor]
linuxmint-14-xfce-dvd-64bit.iso [failed to boot, "Machine check error"]
My PC was bought 2012, and is 64-bit hardware.
Mobo=ASRock H61M-S.
Back to top
View user's profile Send private message 
Semme

Joined: 07 Aug 2011
Posts: 3578
Location: World_Hub

PostPosted: Tue 26 Feb 2013, 06:53    Post subject:  

GParted? NOT a fan. Partition *type* refers to one of these:

Code:
 0  Empty           24  NEC DOS         81  Minix / old Lin bf  Solaris       
 1  FAT12           39  Plan 9          82  Linux swap / So c1  DRDOS/sec (FAT-
 2  XENIX root      3c  PartitionMagic  83  Linux           c4  DRDOS/sec (FAT-
 3  XENIX usr       40  Venix 80286     84  OS/2 hidden C:  c6  DRDOS/sec (FAT-
 4  FAT16 <32M      41  PPC PReP Boot   85  Linux extended  c7  Syrinx         
 5  Extended        42  SFS             86  NTFS volume set da  Non-FS data   
 6  FAT16           4d  QNX4.x          87  NTFS volume set db  CP/M / CTOS / .
 7  HPFS/NTFS       4e  QNX4.x 2nd part 88  Linux plaintext de  Dell Utility   
 8  AIX             4f  QNX4.x 3rd part 8e  Linux LVM       df  BootIt         
 9  AIX bootable    50  OnTrack DM      93  Amoeba          e1  DOS access     
 a  OS/2 Boot Manag 51  OnTrack DM6 Aux 94  Amoeba BBT      e3  DOS R/O       
 b  W95 FAT32       52  CP/M            9f  BSD/OS          e4  SpeedStor     
 c  W95 FAT32 (LBA) 53  OnTrack DM6 Aux a0  IBM Thinkpad hi eb  BeOS fs       
 e  W95 FAT16 (LBA) 54  OnTrackDM6      a5  FreeBSD         ee  GPT           
 f  W95 Ext'd (LBA) 55  EZ-Drive        a6  OpenBSD         ef  EFI (FAT-12/16/
10  OPUS            56  Golden Bow      a7  NeXTSTEP        f0  Linux/PA-RISC b
11  Hidden FAT12    5c  Priam Edisk     a8  Darwin UFS      f1  SpeedStor     
12  Compaq diagnost 61  SpeedStor       a9  NetBSD          f4  SpeedStor     
14  Hidden FAT16 <3 63  GNU HURD or Sys ab  Darwin boot     f2  DOS secondary 
16  Hidden FAT16    64  Novell Netware  af  HFS / HFS+      fb  VMware VMFS   
17  Hidden HPFS/NTF 65  Novell Netware  b7  BSDI fs         fc  VMware VMKCORE
18  AST SmartSleep  70  DiskSecure Mult b8  BSDI swap       fd  Linux raid auto
1b  Hidden W95 FAT3 75  PC/IX           bb  Boot Wizard hid fe  LANstep       
1c  Hidden W95 FAT3 80  Old Minix       be  Solaris boot    ff  BBT           
1e  Hidden W95 FAT1
Back to top
View user's profile Send private message 
Sylvander

Joined: 15 Dec 2008
Posts: 3400
Location: West Lothian, Scotland, UK

PostPosted: Tue 26 Feb 2013, 08:06    Post subject:  

1. Tried the Linux instructions given HERE...
Step B7 failed as follows:
Code:
# fdisk /dev/sdb

Command (m for help): d
Selected partition 1

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4, default 1): 1
First sector (2048-1974270, default 2048):
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-1974270, default 1974270):
Using default value 1974270

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
# umount /dev/sdb1
umount: can't umount /dev/sdb1: Invalid argument

Instructions seemed to be failing to give all <Enter> steps.

2. Here's the pertinent portion of the output given by following instruction B2:
Code:
Disk /dev/sdb: 1010 MB, 1010826752 bytes
196 heads, 9 sectors/track, 1119 cylinders, total 1974271 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: 0x0009dcf9

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048     1972223      985088    b  W95 FAT32
Back to top
View user's profile Send private message 
Semme

Joined: 07 Aug 2011
Posts: 3578
Location: World_Hub

PostPosted: Tue 26 Feb 2013, 08:11    Post subject:  

That's a <just incase you're mounted step>.. pay it no mind.

After the (w)rite, remove, reinsert, then format.

From here, retry your photo copy.
Back to top
View user's profile Send private message 
Sylvander

Joined: 15 Dec 2008
Posts: 3400
Location: West Lothian, Scotland, UK

PostPosted: Tue 26 Feb 2013, 10:34    Post subject:  

Still no success after trying again and following your latest instruction to "(w)rite, remove, reinsert, then format".

Here's the console output text:
Code:
# fdisk /dev/sdb

Command (m for help): d
Selected partition 1

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4, default 1): 1
First sector (2048-1974270, default 2048):
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-1974270, default 1974270):
Using default value 1974270

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
# umount /dev/sdb1
umount: can't umount /dev/sdb1: Invalid argument
# mkfs.vfat -F 32 /dev/sdb1
mkfs.vfat 3.0.11 (24 Dec 2010)
#


After umount, I removed the drive and then re-inserted, and used mkfs.vfat...
It appears to have completed successfully, but...
When I close the console window...
And...
Run GParted to view drive sdb [he Flash Drive]...
The file system of sdb1 is still shown as "unknown".
Should I attempt to use GParted to "Device>Create partition table"?
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3956
Location: Kiel,Germany

PostPosted: Tue 26 Feb 2013, 10:54    Post subject:  

Quote:
Calling ioctl() to re-read partition table.
Syncing disks.


Though it says so I always run the
Code:
partprobe

command after fdisk 'ing a drive to update the nodes in the /dev directory .

* IMO it seems that the flash had gone faulty and should be replaced . If the whole procedure you went through works on a new fresh flash pen then it is a hardware issue .
Back to top
View user's profile Send private message Visit poster's website 
Semme

Joined: 07 Aug 2011
Posts: 3578
Location: World_Hub

PostPosted: Tue 26 Feb 2013, 13:55    Post subject:  

Yeah, ya know- that you didn't mention the brand of this thing suggests some third-rate drive. I'm with faulty..
Back to top
View user's profile Send private message 
Sylvander

Joined: 15 Dec 2008
Posts: 3400
Location: West Lothian, Scotland, UK

PostPosted: Tue 26 Feb 2013, 15:55    Post subject:  

Semme wrote:
Yeah, ya know- that you didn't mention the brand of this thing suggests some third-rate drive. I'm with faulty..

Didn't mention the brand because I didn't think it was relevant.
It's a Verbatim 1GB.
Has performed flawlessly up to this point.
I'm always reluctant to assume faulty hardware unless I see something that convinces me.

e.g. In the past I'd been told a particular HDD was dying.
Still using it after MANY years of reliable service.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 11 [156 Posts]   Goto page: 1, 2, 3, ..., 9, 10, 11 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1008s ][ Queries: 13 (0.0061s) ][ GZIP on ]