A permanent data storage device used for storing and retrieving digital information using rapidly rotating discs (platters) coated with magnetic material in a rigid form factor (as opposed to floppy disks).

learn more… | top users | synonyms (1)

61
votes
12answers
194k views

How do I find out what hard disks are in the system?

I need to know what hard disks are available, including ones that aren't mounted and possibly aren't formatted. I can't find them in dmesg or /var/log/messages (too much to scroll through). I'm hoping ...
44
votes
2answers
4k views

What NOT to put on an SSD?

I bought an SSD and I am going to set up my desktop system with a completely fresh Linux installation. SSDs are known to be fast, but they have a disadvantage: The number of writes (per block?) is ...
21
votes
3answers
796 views

How can I limit the output speed of stdout?

I'm running CentOS 5.7 and I have a backup utility that has the option of dumping its backup file to stdout. The backup file is rather large (multiple gigabytes). The target is an SSHFS filesystem. To ...
11
votes
3answers
1k views

saving data from a failing drive

An external 3½" HDD seems to be in danger of failing — it's making ticking sounds when idle. I've acquired a replacement drive, and want to know the best strategy to get the data off of the dubious ...
6
votes
3answers
3k views

How to clone a NTFS partition (WinXP) from a damaged disk to a new one?

I'm an Italian Windows programmer. I know almost nothing of Linux, so please be patient if the question is dumb and pardon my bad english. I need to clone a NTFS partition from a damaged, near to die ...
4
votes
2answers
15k views

How to repair a corrupted HFS+ partition from a damaged hard-disk?

I have a friend's Mac OS X disk that comes with an HFS+ partition. I am supposed to recover the personal data from this disk, and I'm not yet sure if the filesystem is corrupted or the disk is dying). ...
56
votes
10answers
30k views

How do I know if dd is still working?

I've not used dd all that much, but so far it's not failed me yet. Right now, I've had a dd going for over 12 hours - I'm writing an image back to the disk it came from - and I'm getting a little ...
13
votes
3answers
6k views

Differences between volume, partition and drive

What do these terms mean exactly? partition volume drive On Windows, one may say drive C: or partition C:. On Linux I'm not sure what should be used for partitions because they don't have a name.
12
votes
7answers
6k views

What's the best way to format a HDD in Linux in order to leave no trace?

I'm running Debian and need a way to format the entire hdd in order to not leave any trace on it because I want to donate it to a friend. So what will be the best way in order to format it? If I ...
7
votes
5answers
5k views

Backup whole hard disk Linux

I am looking for a method to backup a whole disk in case something is screwed up... I don't even know what to install on some special devices of the server, and every time it is not the same. ...
4
votes
4answers
3k views

How can I run an hdparm command after boot and resume on Fedora 19?

I bought a new HD(WD5000BPVT) which unfortunately tries to sleep every 5-8 seconds. Not only is the clicking noise quite audible, the 1-second spinup time adds very noticeable latency in day-to-day ...
8
votes
5answers
6k views

How to know if /dev/sdX is a connected USB or HDD?

How can I know if /dev/sdX is a local HDD or usb key ? best doing this without root privileges. OK , udevadm helped a lot: For local HDD: udevadm info --query=all --name=sdb | grep ID_BUS E: ...
2
votes
2answers
448 views

Can I recover from a system disk error on Ubuntu Linux?

I got a strange looking warning message in Windows Vista about a potential hard disk failure. I say strange because I have never in my life seen that type of warning in Windows. It suggested that I ...
2
votes
4answers
328 views

USB 500GB external drive mounted with undetermined permissions, missing data

Note: This situation is evolving. Please see the output at the end of this question for the current situation. I'm using Linux Mint 14. Recently, I repartitioned one of my hard drives, and I backed ...
3
votes
3answers
5k views

Recovering data from a damaged hard-drive: the “freezer trick”

I'm currently in the business of recovering data from a damaged---and dying---hard-drive (check this question for background info). The drive was dropped while the system was running; and while ...
3
votes
0answers
69 views

Which 'smartctl -d' option should I use on this hard-disk: 'scsi' or 'ata'? [duplicate]

On the back of How to repair a corrupted HFS+ partition?, I have separate question. I'd like to run smartctl tests on a hard disk, but I'm not sure which option I should use to correctly initialize ...
3
votes
2answers
2k views

What command do I use to spin up a “power up in standby” drive?

I have 8 drives in my server connected via PATA. The drives are set for no-spin via jumpers on the drive. hdparm -I says powers-up in standby; SET FEATURES subcmd spins-up What command do I use ...
2
votes
3answers
2k views

Can't mount EXT4 hard drive after mounting it in windows

I have a 2TB Western external HDD. Its original filesystem was NTFS but I formatted it to EXT4. I had no problem in Linux; But today after I mounted it using ext2fsd in a windows box, I cant mount it ...
1
vote
3answers
280 views

Get Position of RAID Hard Drives

I was recently tasked with creating a hard drive management system on Linux. I needed to write a program that monitored when drives came online and offline and created/removed links to the drive ...
0
votes
2answers
684 views

Issue with bad sectors on a laptop hard drive

I had Windows installed on my laptop and suddenly one morning Windows couldn't start. Then I tried after formatting and for once it became possible. I also installed Ubuntu as logical drive (deleted ...
30
votes
3answers
16k views

How to know if a disk is an SSD or an HDD

I want to know whether a disk is a solid-state drive or hard disk. lshw is not installed. I do yum install lshw and it says there is no package named lshw. I do not know which version of ...
10
votes
1answer
4k views

Using a LVM partition as a Virtualbox drive

Is it possible to use a LVM partition as a Virtualbox disk? I can't find any option to use a device as a Virtualbox disk, only disk images.
11
votes
1answer
981 views

What is the difference between “extended” partition and “logical” partition

What is the difference between "extended" partitions and "logical" partitions on my hard disk? What's the need for each? I am using Linux
7
votes
3answers
9k views

How can I benchmark my HDD?

I've seen commands to benchmark one's HDD such as this using dd: $ time sh -c "dd if=/dev/zero of=ddfile bs=8k count=250000 && sync" Are there better methods to do so than this?
10
votes
4answers
5k views

Convert image of a partition into image of a disk with partition table

I have an image of an existing partition generated with dd if=/dev/sdXN of=image.bin. Now I want to use this image as the basis for a virtual machine. I know how to convert the image into a format ...
7
votes
5answers
619 views

Can I see what HDD I have installed? [duplicate]

I use lspci for pci devices and lsusb to list the usb hardware devices, is there something similar to list my SATA HDD model ?
7
votes
2answers
1k views

How to time grep commands accurately?

I want to compare the speed of these two commands: grep pattern1 files* grep pattern2 files* Unfortunately, the first grep reads much of files* into memory buffers, so the second grep runs ...
7
votes
2answers
275 views

Reduce bad block retry / wait times in Ubuntu

How can I reduce the IO wait time and retry times so that the OS doesn't continually try to write to a failing drive? I have an system that I use to make copies of demo content that gets loaned out ...
7
votes
3answers
537 views

Harddrive I/O per Pid

is there any way to see the disk I/O per pid/process ? Monitorix shows me the following and correct me if I´m wrong, but it looks like that the harddrive is slowing down the whole system: UPDATE #1 ...
3
votes
1answer
3k views

recovery data from RAID and disk failure (Linux)

Some background A friend of mine was using in his office a NAS Buffalo-LS-WVL with two disks of 1TB each. It seems that the two disks were mounted as raid 1, but, as you will read, probably they have ...
3
votes
2answers
7k views

What does this hard disk error message mean: “Current Pending Sector Count …”?

I grabbed this information from Disk Utillity on Linux Mint: Current Pending Sector Count: Normalized: 200 Worst: 200 Threshold: 0 Value: 22 sectors What does it mean? Is it possible to ...
1
vote
1answer
649 views

How can I create an encrypted, file-system–agnostic, mountable volume?

At work, we have an iMac (running OS X) that shares a partitioned hard drive over the network. I'd like to back up to my partition from my Linux machine. I've attempted connecting via cifs, then ...
1
vote
3answers
1k views

How to mount multiple partitions

Is there a way to mount multiple partitions, or even all partitions, of a disk with a single command in Linux? Is there, perhaps, an option that the mount command accepts that would facilitate this? ...
4
votes
4answers
539 views

If I have an SSD and a hard disk in a system, can the SSD act as cache for the hard disk?

Say I have some partitions; one on a SATA drive and one on an SSD. I want to create a "virtual" hybrid disk. Is this possible?
3
votes
2answers
563 views

dumpe2fs - lifetime writes - what is it

For example, if I run: sudo dumpe2fs /dev/sda1 I get detailed information about the partition. I'm confused about this part, Lifetime writes, returns the following for my boot partition: Lifetime ...
3
votes
2answers
423 views

LVM with SSD and SATA hard disks

Is it possible to create LVM partitions for both SSD and SATA hard disks? I mean if there isn't any conflicts.
3
votes
4answers
3k views

From df device name to physical drive name (vendor / type)

Seeing the device name by df, is it somehow possible to resolve it to the physical drive name such as vendor / type. /dev/sda3 915.4G 34.9G 880.0G 4% /share/HDA_DATA /dev/sdd3 ...
3
votes
4answers
4k views

External hard drive fails to mount

I have an external 2.5" 1TB Samsung hard drive, and it fails mount. Here's what palimpsest says about it: It's even able to do a benchmark on it: When I try to mount it normally, it fails: $ ...
3
votes
1answer
401 views

How to recover a missing file

I am running ubuntu and last week the system didn't let me alter files as if I had no write permissions. Then on reboot the system did a check of the system which took some time. Then everything went ...
2
votes
1answer
310 views

Linux big disk partition issue

I have a big disk around 4.8 TB (RAID) and it has following partition (created by fdisk) [root@server1 ~]# fdisk -l /dev/sde WARNING: The size of this disk is 4.8 TB (4796404727808 bytes). DOS ...
2
votes
2answers
176 views

Are disks interchangeable in a mirrored RAID setup?

It is often written that disks in a mirrored RAID (like RAID 1) are an exact mirror copy one of another. So can I turn the machine off and simply swap the two harddisks cables? And if one of the two ...
2
votes
1answer
4k views

fdisk isn't showing my hard drive as properly formatted (but it is)

I've got 3 1TB drives which I've set up to use LVM. Here's the output of pvdisplay: --- Physical volume --- PV Name /dev/sda1 VG Name vgpool PV Size ...
2
votes
2answers
575 views

How to troubleshoot a computer freeze from liveCD?

I'm helping my dad fixing his old computer. I am now running it from Fedora 16 with XFCE Live CD. If I try to install, as soon as it gets to the part where it writes partition to disk however, the ...
1
vote
2answers
86 views

Use MegaCLI to add a new hard disk to existing RAID0 in Linux

There are two hard disks on my machine, but after installing the operating system, it uses only one hard disk to build RAID0. After installing MegaCLI, I used: MegaCli64 -pdlist -aALL to display ...
1
vote
1answer
49 views

How to decrease the time the processes would wait (blocked) for disk reads (only to discover an error)?

Waiting too long when encountering an unreadable sector on a disk is really very annoying. (Especially if you are trying to read as much data as can be read from a disk with bad sectors, and do it ...
1
vote
1answer
501 views

How can I resize my encrypted root and home partitions, to give root more space?

I need to enlarge my / (root) partition, I have a lot of space on my /home partition so how can I do this? The drive is encrypted with LUKS. My system is Fedora 20. I have another thread here which ...
1
vote
1answer
184 views

How to make an unallocated space “exist”?

I have Ubuntu and Windows installed together. I'm going to install Arch also along with them. For now, I what them to live there all together in my computer. I have the following: I'd like to ...
0
votes
1answer
93 views

where is the user content on a Mac OS X disk?

I have a friend's Mac OS X disk that comes with an HFS+ partition. I am supposed to recover the personal data from this disk (it's not yet clear if the FS is corrupted or the disk dying), but for the ...
-1
votes
1answer
140 views

Can not mount drive after installing windows vista

I have searched for weeks now and have not found an answer to my question. Hopefully you guys can give me a push in the right direction :) Ok, here is what happened: I have linux mint on a 1.5 TB ...