LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-31-2009, 02:08 AM   #1
deepak.nagadi
LQ Newbie
 
Registered: Nov 2009
Posts: 7

Rep: Reputation: 0
how do i enumerate my external hard drive???


guys ive bought a brand new 320 GB seagate portable drive....am using ubuntu ultimate edition 2.5...but b4 i used to be in the basic ubuntu 9.04....i have this prob wen i connect my USB drive to my pc....after sometime the USB DRIVE simply vanishes....i have to restart my system n again do my work...is der any timestamp for it that it safely removes itself???...one more thing....ders no data loss....when i restart my pc again....i mean while shutting down...its shows...

"unable to enumerate USB drive"....

help needed plz
 
Old 12-31-2009, 02:39 AM   #2
deepak.nagadi
LQ Newbie
 
Registered: Nov 2009
Posts: 7

Original Poster
Rep: Reputation: 0
it also shows dis...

hers wad it shows
Attached Thumbnails
Click image for larger version

Name:	mount.jpg
Views:	26
Size:	23.3 KB
ID:	2377  
 
Old 12-31-2009, 02:41 AM   #3
deepak.nagadi
LQ Newbie
 
Registered: Nov 2009
Posts: 7

Original Poster
Rep: Reputation: 0
sorry

i dint enlarge it..
Attached Thumbnails
Click image for larger version

Name:	mount.jpg
Views:	19
Size:	23.3 KB
ID:	2378  
 
Old 12-31-2009, 03:15 AM   #4
ongte
Member
 
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mageia, CentOS, Ubuntu
Posts: 468

Rep: Reputation: 72
The partition was not cleanly unmounted, you need to run chkdsk on the partition from Windows (if you have windows)

To do it in Ubuntu. First install the package ntfsprogs, then run the command ntfsfix
 
Old 12-31-2009, 03:53 AM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
The ntfsfix program fixes some errors and not others. It marks the filesystem as needing checking by Windows. Because there isn't a fsck.ntfs, the ntfs filesystem isn't a good choice for use in Linux. If you don't have access to a Windows installation, don't use it.

You might want to read the kernel messages in /var/log/messages and search for messages pertaining to the usb device. Also, maybe try a different USB port. If you have a usb 1.0 device and a usb 2.0 device plugged into ports that are on the same internal hub, I can imagine that might cause problems. Another issue is power. Sometimes one group of ports can supply more power than the other. On my laptop, the ports on the left hand side work better for my wireless mouse's receiver.

A physically damaged port or cable could also cause intermittent problems. Pay close attention to the ends of the cable. Does it seem bent or spread out? Does the cable plug in snuggly, or is it very loose?
 
Old 12-31-2009, 05:18 AM   #6
deepak.nagadi
LQ Newbie
 
Registered: Nov 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ongte View Post
The partition was not cleanly unmounted, you need to run chkdsk on the partition from Windows (if you have windows)

To do it in Ubuntu. First install the package ntfsprogs, then run the command ntfsfix


"dude....i installed the NTFSPROGS...n then i ran d ntfsfix comman ind terminal...but to run it i have to specify the device ryt....i absolutely have no idea wad my device is..."...as i said its nt displaying"
 
Old 12-31-2009, 05:56 AM   #7
ongte
Member
 
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mageia, CentOS, Ubuntu
Posts: 468

Rep: Reputation: 72
Quote:
Originally Posted by deepak.nagadi View Post
"dude....i installed the NTFSPROGS...n then i ran d ntfsfix comman ind terminal...but to run it i have to specify the device ryt....i absolutely have no idea wad my device is..."...as i said its nt displaying"
Run this to find out which disk/partition refers to your external drive.

Code:
$ sudo fdisk -l
You should find something like this:

Code:
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x6909f232

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1         9729   80713463+   7  HPFS/NTFS
The command line would be something like:
Code:
$ sudo ntfsfix /dev/sdb1
 
Old 12-31-2009, 06:39 AM   #8
deepak.nagadi
LQ Newbie
 
Registered: Nov 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ongte View Post
Run this to find out which disk/partition refers to your external drive.

Code:
$ sudo fdisk -l
You should find something like this:

Code:
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x6909f232

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1         9729   80713463+   7  HPFS/NTFS
The command line would be something like:
Code:
$ sudo ntfsfix /dev/sdb1




"and this is wad i got man"



Device Boot Start End Blocks Id System
/dev/sdb1 * 2 9922816 312568672+ 7 HPFS/NTFS
gooner@TheGooner:~$ sudo ntfsfix /dev/sdb1
Mounting volume... FAILED
Attempting to correct errors...
Processing $MFT and $MFTMirr...
Reading $MFT... OK
Reading $MFTMirr... OK
Comparing $MFTMirr to $MFT... FAILED
Correcting differences in $MFTMirr record 0...OK
Processing of $MFT and $MFTMirr completed successfully.
Setting required flags on partition... OK
Going to empty the journal ($LogFile)... Failed to empty $FILE_LogFile/$DATA: Input/output error.
FAILED
Failed to reset $LogFile: Input/output error.
 
Old 12-31-2009, 07:13 AM   #9
ongte
Member
 
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mageia, CentOS, Ubuntu
Posts: 468

Rep: Reputation: 72
Check out jschiwal's post above, like he said ntfsfix it does not fix every problem. It just does a basic reset for unclean shutdowns.

If you have a Windows box, I'd suggest trying chkdsk from there. If you don't have a Windows box, you really shouldn't be using ntfs.
 
Old 12-31-2009, 11:26 AM   #10
deepak.nagadi
LQ Newbie
 
Registered: Nov 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ongte View Post
Check out jschiwal's post above, like he said ntfsfix it does not fix every problem. It just does a basic reset for unclean shutdowns.

If you have a Windows box, I'd suggest trying chkdsk from there. If you don't have a Windows box, you really shouldn't be using ntfs.






dude basically my XP s corrupt so...i need some basic OS like linux to retrieve d data so that i can format everything dats der in ma pc n install win7....so i ve gotta have this working....
 
Old 12-31-2009, 04:19 PM   #11
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
It would be appreciated if you would use better English in your posts. It's more difficult trying to analyze the problem and propose solutions when one's mental energy is occupied trying to decode the question.

Try mounting the NTFS partition read only. You may be able to move the data you need from this drive to another.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Having a hard time making linux recognizing my new external hard drive jared nelson Linux - Hardware 19 03-24-2009 03:39 PM
ubuntu installed on external hard drive, can't startup without external hard drive. Vanostaajen Linux - Software 23 01-20-2009 09:59 AM
Ubuntu: Installed to external hard drive; boot to primary hard drive gives error 22 dcorb62 Linux - General 7 09-04-2007 11:28 PM
external enclosure for an internal hard drive vs external USB hard drive powah Linux - Hardware 1 03-10-2006 09:03 AM
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 08:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration