Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I noticed that my Ubuntu is lagging EXTREMELY badly but only the first time I do things after what I did gets loaded into RAM the lag stops totally. I ran some tests and I guess one of my laptop hard drives is borked.

Im assuming that I have to replace the drive, is there some command I can issue to see the exact specs on the drive so I can then buy it online?

I don't want to have to open up the laptop, find the specs. Then open it again when the new drive arrives.

share|improve this question
    
Or is there another cool hacky command or way to partition my drive to avoid using the bad spots? A while ago when my drive failed I mounted it useing an alternative superblock and this worked and still does i guess.. –  Banned_User May 15 at 13:42
    
I found the hacky solution I wanted. I ran the command "badblocks /dev/sda1" and then noticed they were all near the front of the drive. So I created an unallocated partition at the front of the drive consisting of 50% of the total size. I then tested the second half of the drive! AND WALAAAAAAAA!!!!!! IT WORKED!!!!! Im going to buy a new drive anyway but this process taught me alot :) –  Banned_User May 15 at 17:01

2 Answers 2

up vote 3 down vote accepted

smartctl command from smartmontools package is what you want for that

% sudo smartctl -i /dev/sda
smartctl 6.2 2013-07-26 r3841 [i686-linux-3.13.0-24-generic] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     SAMSUNG SpinPoint M7
Device Model:     SAMSUNG HM250HI
Serial Number:    <snip>
LU WWN Device Id: 5 0024e9 203520f1d
Firmware Version: 2AC101C4
User Capacity:    250,059,350,016 bytes [250 GB]
Sector Size:      512 bytes logical/physical
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS T13/1699-D revision 6
SATA Version is:  SATA 2.6, 3.0 Gb/s
Local Time is:    Thu May 15 21:49:09 2014 MYT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
share|improve this answer

You can use lshw tool :

Install :

sudo apt-get install lshw 

Command for H.D.D Specs:

lshw -class disk -class storage
share|improve this answer
    
Thanks I hope this helps someone but the first answer was PERFECT so im not even bothering with this, do you know if I can somehow use only part of my hard drive? The hole thing still works but super slow. I know nothing of hardware but maybe there is a way to say only use the good part of the hard drive? Maybe when hard drives go bad only certain portions go bad? –  Banned_User May 15 at 14:06
    
Try to test it for bad boot sectors and repair them . –  nux May 15 at 14:41
    
ok i will try to help you mate . –  nux May 15 at 14:47
    
You already did! I ran the command "badblocks" to find bad boot sectors and it saved 50% of my drive!!! its working super fast :)! THANKS!!! –  Banned_User May 15 at 17:03
1  
you are welcome my friend :) happy to hear that –  nux May 15 at 17:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.