View previous topic :: View next topic |
Author |
Message |
isoaga Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/50963587740c3ebb0d9d95.png)
Joined: 31 Oct 2002 Posts: 206 Location: Newcastle, Australia
|
Posted: Tue Dec 20, 2005 7:29 am Post subject: USB Stick partition and filesystem cannot be changed? |
|
|
I recently purchased a Sandisk 512 MB usb stick and all was fine for the first few weeks until i plugged it into one of my friends winXP machines. For some reason after that it has serious problems. I have tried to remove the parition and start again but consider the follwing...
Code: |
plasma4 / # fdisk /dev/sdd
Command (m for help): p
Disk /dev/sdd: 512 MB, 512483328 bytes
16 heads, 63 sectors/track, 993 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/sdd1 1 993 500440+ 83 Linux
Command (m for help): d
Selected partition 1
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
plasma4 / # fdisk /dev/sdd
Command (m for help): p
Disk /dev/sdd: 512 MB, 512483328 bytes
16 heads, 63 sectors/track, 993 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/sdd1 1 993 500440+ 83 Linux
Command (m for help):
|
the partition remains... All i want to do is delete the partition and reformat. Any ideas?
Code: |
plasma4 / # parted /dev/sdd
GNU Parted 1.6.23
Copyright (C) 1998 - 2005 Free Software Foundation, Inc.
This program is free software, covered by the GNU General Public License.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
Using /dev/sdd
(parted) print
Disk geometry for /dev/sdd: 0kB - 512MB
Disk label type: msdos
Number Start End Size Type File system Flags
1 32kB 512MB 512MB primary fat32
(parted) rm 1
Error: Input/output error during write on /dev/sdd
Retry/Ignore/Cancel? r
(parted) quit
Information: Don't forget to update /etc/fstab, if necessary.
plasma4 / #
|
is this error an indication the drive is faulty? its brand new
Code: |
plasma4 / # fsck -vtrV /dev/sdd1
fsck 1.36 (05-Feb-2005)
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 "mkdosfs"
Media byte 0xf8 (hard disk)
512 bytes per logical sector
4096 bytes per cluster
32 reserved sectors
First FAT starts at byte 16384 (sector 32)
2 FATs, 32 bit entries
499712 bytes per FAT (= 976 sectors)
Root directory start at cluster 2 (arbitrary size)
Data area starts at byte 1015808 (sector 1984)
124862 data clusters (511434752 bytes)
63 sectors/track, 16 heads
0 hidden sectors
1000880 sectors total
Checking for unused clusters.
Checking free cluster summary.
/dev/sdd1: 294 files, 103953/124862 clusters
plasma4 / #
|
and if i examine the dmesg output after i have unmounted the stick i see this...
Code: |
Dec 20 17:50:50 plasma4 end_request: I/O error, dev sdd, sector 64
Dec 20 17:50:50 plasma4 Buffer I/O error on device sdd1, logical block 1
Dec 20 17:50:50 plasma4 lost page write due to I/O error on sdd1
Dec 20 17:51:20 plasma4 ehci_hcd 0000:00:1d.7: port 1 high speed
Dec 20 17:51:20 plasma4 ehci_hcd 0000:00:1d.7: GetStatus port 1 status 001005 POWER sig=se0 PE CONNE CT
Dec 20 17:51:20 plasma4 usb 1-1: reset high speed USB device using ehci_hcd and address 32
Dec 20 17:51:20 plasma4 ehci_hcd 0000:00:1d.7: port 1 high speed
Dec 20 17:51:20 plasma4 ehci_hcd 0000:00:1d.7: GetStatus port 1 status 001005 POWER sig=se0 PE CONNE CT
Dec 20 17:51:20 plasma4 ehci_hcd 0000:00:1d.7: port 1 high speed
Dec 20 17:51:20 plasma4 ehci_hcd 0000:00:1d.7: GetStatus port 1 status 001005 POWER sig=se0 PE CONNE CT
Dec 20 17:51:20 plasma4 usb 1-1: reset high speed USB device using ehci_hcd and address 32
Dec 20 17:51:20 plasma4 ehci_hcd 0000:00:1d.7: port 1 high speed
Dec 20 17:51:20 plasma4 ehci_hcd 0000:00:1d.7: GetStatus port 1 status 001005 POWER sig=se0 PE CONNE CT
Dec 20 17:51:20 plasma4 ehci_hcd 0000:00:1d.7: port 1 high speed
Dec 20 17:51:20 plasma4 ehci_hcd 0000:00:1d.7: GetStatus port 1 status 001005 POWER sig=se0 PE CONNE CT
Dec 20 17:51:20 plasma4 usb 1-1: reset high speed USB device using ehci_hcd and address 32
Dec 20 17:51:20 plasma4 ehci_hcd 0000:00:1d.7: port 1 high speed
Dec 20 17:51:20 plasma4 ehci_hcd 0000:00:1d.7: GetStatus port 1 status 001005 POWER sig=se0 PE CONNE CT
Dec 20 17:51:21 plasma4 ehci_hcd 0000:00:1d.7: port 1 high speed
Dec 20 17:51:21 plasma4 ehci_hcd 0000:00:1d.7: GetStatus port 1 status 001005 POWER sig=se0 PE CONNE CT
Dec 20 17:51:21 plasma4 usb 1-1: reset high speed USB device using ehci_hcd and address 32
Dec 20 17:51:21 plasma4 ehci_hcd 0000:00:1d.7: port 1 high speed
Dec 20 17:51:21 plasma4 ehci_hcd 0000:00:1d.7: GetStatus port 1 status 001005 POWER sig=se0 PE CONNE CT
Dec 20 17:51:21 plasma4 ehci_hcd 0000:00:1d.7: port 1 high speed
Dec 20 17:51:21 plasma4 ehci_hcd 0000:00:1d.7: GetStatus port 1 status 001005 POWER sig=se0 PE CONNE CT
Dec 20 17:51:21 plasma4 usb 1-1: reset high speed USB device using ehci_hcd and address 32
Dec 20 17:51:21 plasma4 ehci_hcd 0000:00:1d.7: port 1 high speed
Dec 20 17:51:21 plasma4 ehci_hcd 0000:00:1d.7: GetStatus port 1 status 001005 POWER sig=se0 PE CONNE CT
Dec 20 17:51:21 plasma4 SCSI error : <27 0 0 0> return code = 0x70000
Dec 20 17:51:21 plasma4 end_request: I/O error, dev sdd, sector 64
Dec 20 17:51:21 plasma4 Buffer I/O error on device sdd1, logical block 1
Dec 20 17:51:21 plasma4 lost page write due to I/O error on sdd1
|
_________________ If your life was a book, would anyone want to read it? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Moriah Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/5229545064dad0ea85f50b.gif)
Joined: 27 Mar 2004 Posts: 2383 Location: Kentucky
|
Posted: Tue Dec 20, 2005 5:00 pm Post subject: |
|
|
Just a thought... Does that USB drive have a write-protect switch on it? If so, maybe it got flipped accidently when it was put in the M$ box. ![Surprised :o](images/smiles/icon_surprised.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
isoaga Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/50963587740c3ebb0d9d95.png)
Joined: 31 Oct 2002 Posts: 206 Location: Newcastle, Australia
|
Posted: Tue Dec 20, 2005 11:35 pm Post subject: |
|
|
nope, can't see any switches on it at all, it is being very stubborn! _________________ If your life was a book, would anyone want to read it? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Corona688 Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/164511503041338d913f8fb.gif)
Joined: 10 Jan 2004 Posts: 1204
|
Posted: Wed Dec 21, 2005 3:08 am Post subject: |
|
|
Those error messages strongly suggest to me a faulty flash disk. It's also possible that XP's really screwed up the partition table somehow; this caught my eye:
Code: | Device Boot Start End Blocks Id System
/dev/sdd1 1 993 500440+ 83 Linux | As far as I know Windows XP will neither recognize linux boot sectors nor linux partition types, so I have no idea what XP thought it was doing.
If you want to brute-force getting rid of the partition table, you can try this:
Code: | dd if=/dev/zero of=/dev/sdd bs=512 count=1 | i.e., overwriting the entire boot sector with zeroes. Then remove and plug back in the drive to make it reread the blanked boot sector. The boot sector does NOT get written often, so if you can get it successfully written ONCE, maybye the rest will work thereafter. Or not. Where one bad sector is found, more may be lurking. _________________ Petition for Better 64-bit ATI Drivers - Sign Here
http://www.petitiononline.com/atipet/petition.html |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|