Fedora Linux Support Community & Resources Center
  #1  
Old 1st February 2008, 02:08 PM
icthy Offline
Registered User
 
Join Date: Jun 2005
Location: Washington D.C. area
Posts: 173
help with fdisk--is this usb disk broken?

Hi,

I have a new usb disk that was formatted, partitioned, and working properly until I knocked it off the top of my computer (lesson 1: do not let usb disks sit on top of computer unless they are secured). So, I plug it in, and here's what I get:

Code:
scsi 2:0:0:0: Direct-Access                                    PQ: 0 ANSI: 2 CCS
sdb : very big device. try to use READ CAPACITY(16).
sdb : READ CAPACITY(16) failed.
sdb : status=0, message=00, host=5, driver=00 
sdb : use 0xffffffff as device size
SCSI device sdb: 4294967296 512-byte hdwr sectors (2199023 MB)
sdb: Write Protect is off
sdb: Mode Sense: 00 38 00 00
sdb: assuming drive cache: write through
sdb : very big device. try to use READ CAPACITY(16).
sdb : READ CAPACITY(16) failed.
sdb : status=0, message=00, host=5, driver=00 
sdb : use 0xffffffff as device size
SCSI device sdb: 4294967296 512-byte hdwr sectors (2199023 MB)
sdb: Write Protect is off
sdb: Mode Sense: 00 38 00 00
sdb: assuming drive cache: write through
 sdb: unknown partition table
sd 2:0:0:0: Attached scsi disk sdb
sd 2:0:0:0: Attached scsi generic sg2 type 0
It seems to have lost the partition table. So I'm trying to repartition it using:
Code:
/sbin/fdisk /mnt/sdb
This results in a " Unable to open /mnt/sdb" error.

So, am I doing something dumb, or is my disk trashed? For reference, this is a 500Gb disk, and I'm running FC7. (Please tell me I am doing somthing dumb!) Thanks.
Reply With Quote
  #2  
Old 1st February 2008, 02:21 PM
glennzo Offline
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Age: 57
Posts: 14,759
It's probably not mounted. May have lost the partition. If it were my disk I'd grab a copy of the GParted bootable disk and see what it can do with the disk.
http://gparted-livecd.tuxfamily.org/
__________________
Glenn
The Bassinator © ®

[SIGPIC][/SIGPIC]
Laptop: Just a couple of old single core units
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / Kingston HyperX 3K SSD 240GB SATA 3.0 / 1TB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #3  
Old 1st February 2008, 03:04 PM
sideways Offline
Retired User
 
Join Date: Oct 2004
Location: London, UK
Posts: 4,999
You need to execute fdisk as root, and it should be /dev/sdb surely, not /mnt/sdb

Code:
su -
fdisk /dev/sdb
parted/gparted is probably better

EDIT:
In fact you'll have to use parted/gparted, fdisk doesn't recognize guid partition tables:
Code:
sdb: unknown partition table
Code:
su -
parted /dev/sdb
help
print

Last edited by sideways; 1st February 2008 at 03:11 PM.
Reply With Quote
  #4  
Old 1st February 2008, 03:21 PM
lmo Offline
Registered User
 
Join Date: Mar 2007
Posts: 1,046
Quote:
Originally Posted by icthy
Hi,

I have a new usb disk that was formatted, partitioned, and working properly until I knocked it off the top of my computer (lesson 1: do not let usb disks sit on top of computer unless they are secured).
It sounds to me like it got damaged when it fell.
Maybe the manufacturer will do an RMA and replace it (if they don't know it fell.)
Reply With Quote
  #5  
Old 1st February 2008, 06:41 PM
icthy Offline
Registered User
 
Join Date: Jun 2005
Location: Washington D.C. area
Posts: 173
Thanks for all the advice. Here's what I'm getting with parted .

Code:
(parted) check Error: Unable to open /dev/sdb - unrecognised disk label. (parted) print Error: Unable to open /dev/sdb - unrecognised disk label. (parted) mklabel bsd (parted) print Error: Unable to open /dev/sdb - unrecognised disk label.
Any thoughts on what I need to do to get beyond "Unrecognised disk label" ?
Reply With Quote
  #6  
Old 2nd February 2008, 04:48 AM
lmo Offline
Registered User
 
Join Date: Mar 2007
Posts: 1,046
Quote:
Originally Posted by icthy
Thanks for all the advice. Here's what I'm getting with parted .

Code:
(parted) check Error: Unable to open /dev/sdb - unrecognised disk label. (parted) print Error: Unable to open /dev/sdb - unrecognised disk label. (parted) mklabel bsd (parted) print Error: Unable to open /dev/sdb - unrecognised disk label.
Any thoughts on what I need to do to get beyond "Unrecognised disk label" ?
Make sure the cable is not damaged.
Power everything off.
Make sure all cables are plugged in correctly.
Try one more time.
Reply With Quote
  #7  
Old 1st February 2008, 09:30 PM
glennzo Offline
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Age: 57
Posts: 14,759
Last thought before I agree that the drive is probably junk, get the disk from the manufacturer, be it Seagate, WD, Samsung, Maxtor, whatever it is, you can usually download their partitioning / formatting utility. Boot with it and with the drive plugged in and see what happens. If no good, then try to get an RMA, as imo suggested or use it to hold the screen door open.
__________________
Glenn
The Bassinator © ®

[SIGPIC][/SIGPIC]
Laptop: Just a couple of old single core units
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / Kingston HyperX 3K SSD 240GB SATA 3.0 / 1TB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #8  
Old 2nd February 2008, 12:00 AM
sideways Offline
Retired User
 
Join Date: Oct 2004
Location: London, UK
Posts: 4,999
If you're sure it was working fine before it got knocked on the floor then things don't look promising, but it might also just be a problem with parted. How did you originally format and partition the drive? (Which tool did you use?)

check if you can read the disk manually (as root):
Code:
hexdump -Cv -n 1024 /dev/sdb

Last edited by sideways; 2nd February 2008 at 12:06 AM.
Reply With Quote
Reply

Tags
broken, disk, fdiskis, usb

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fdisk and Disk Druid cleus Installation, Upgrades and Live Media 7 21st August 2009 11:55 PM
0x0000 invalid flag Fdisk external USB hard disk sephiro499 Using Fedora 0 29th October 2007 10:39 AM
SELinux broken after root disk mirror micagreenmachin Using Fedora 7 15th May 2007 11:52 PM
FORMAT , FDISK or any other type of disk util in Fedora 3 eliw Using Fedora 5 14th January 2006 02:56 PM
problem with fdisk and lacie external hard disk Anguilla Hardware & Laptops 0 19th April 2005 11:06 PM


Current GMT-time: 17:58 (Monday, 20-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Stuhr Travel Photos on Instagram - Hampton Instagram Photos - Jalgaon Photos