Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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...
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?
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"
"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
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.
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....
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.