Questions tagged [hard-drive]

Questions about hard drives, configuring and formatting them. Hard drives typically provide stateful memory storage for computers, and are the primary location for the operating system and user files.

Hard drives are memory devices used for storing and retrieving information. Hard drives typically store the operating system and user files. This information is then loaded into other memory devices, such as RAM, or flash memory for use by the user.

Hard drives are typically internal components to a computer, connecting directly to the motherboard through a SATA or IDE interface. But it's not at all uncommon to have an external hard drive which connects through USB, Firewire or eSATA. These types of drives are commonly used for backup.

Hard drives may be partitioned so that an operating system sees the disk as more than one device. This is a commonly used technique for keeping system files separate from user files, or for installing multiple operating systems.

Conversely, hard drives may also be put in a RAID, which will cause an operating system to see multiple drives as one device. This is commonly used to prevent data loss in the event of a drive failure.

Most hard drives today are mechanical drives that read from a spinning disk. But increasingly, more drives are solid state drives (SSD), which use flash memory. These are much faster than mechanical drives, but typically they're more expensive and have a smaller capacity.

See also:

5436 questions
762
votes
18 answers

How do I find the amount of free space on my hard drive?

Is there a way to quickly check the amount of free / used disk space in Ubuntu? I would assume you could right click on 'file system' in the file browser and choose 'properties' or something but there is no such option.
greg
  • 10,073
  • 4
  • 18
  • 15
638
votes
23 answers

How do I free up more space in /boot?

My /boot partition is nearly full and I get a warning every time I reboot my system. I already deleted old kernel packages (linux-headers...), actually I did that to install a newer kernel version that came with the automatic updates. After…
user6722
  • 6,655
  • 3
  • 16
  • 13
468
votes
8 answers

How to check hard disk performance

How to check the performance of a hard drive (Either via terminal or GUI). The write speed. The read speed. Cache size and speed. Random speed.
Luis Alvarado
  • 209,003
  • 167
  • 543
  • 707
353
votes
15 answers

How do I increase the hard disk size of the virtual machine?

I have run out of space on my WinXP virtual machine, which I only gave 10 GB space for when I created it. Is there an easy way to increase it to, say, 20 GB? I can't see any obvious option in VirtualBox settings. The suggestion below gives this…
wim
  • 12,548
  • 27
  • 73
  • 101
226
votes
6 answers

Detect and mount devices

I upgraded Ubuntu today and everything works smooth except that Ubuntu doesn't detect any other storage devices. My / and /home partitions work fine, but my other partitions are just not detected. I wouldn't mind, except the same problem goes with…
Calixte
  • 3,423
  • 8
  • 27
  • 34
134
votes
4 answers

How do I add an additional hard drive?

I am going to put an additional (non-USB) hard drive in my system. I already have Ubuntu on my other hard drive so I do not want to install Ubuntu on the additional drive but only use it for storage. How do I add the additional hard drive to my…
N.N.
  • 17,939
  • 18
  • 57
  • 92
133
votes
7 answers

Why are swap partitions discouraged on SSD drives, are they harmful?

I often read that one should not place swap partitions on a SSD drive, as this may harm the device. Is this true? Can you please explain the reason to me? Because I otherwise would have thought that placing swap on an SSD is the best choice, as it's…
Byte Commander
  • 105,631
  • 46
  • 284
  • 425
132
votes
3 answers

How can I check the SMART status of a SSD or HDD on current versions of Ubuntu 14.04 through 20.04?

How can I check the SMART status of a drive under 14.04 and beyond? I've seen Checking HD SMART status on a fresh install but it doesn't seem to apply under 14.04 and later.
Elder Geek
  • 35,476
  • 25
  • 95
  • 181
118
votes
12 answers

Fix corrupt NTFS partition without Windows

MY NTFS Partition has gotten corrupt somehow (it's a relic from the days when I had Windows installed). I'm putting the debug output of fdisk and blkid here. At the same time, any OS is unable to mount my root partition, which is located next to…
Nemo
  • 9,332
  • 8
  • 47
  • 67
118
votes
5 answers

Mount an external drive at boot time only if it is plugged in

I've got an entry for an external harddrive in my fstab: UUID="680C0FE30C0FAAE0" /jgdata ntfs noatime,rw But sometimes this drive isn't plugged in at boot time. This leaves me half way through a boot, with a prompt to "Continue Waiting,…
Jeremy
  • 2,796
  • 4
  • 26
  • 37
104
votes
6 answers

How to monitor disk activity?

How do I view my Disk Activity on Ubuntu? For example, How can I monitor what is being written and read from disk as well as the percentage of disk usage? I am looking for an application similar to the Resource Monitor in Windows.
Fritsen
  • 1,041
  • 2
  • 7
  • 3
103
votes
4 answers

How to mount a hard disk as read-only from the terminal

How do you mount a hard disk from the command line as read-only? I don't want or need a link to the man page, I want the exact thing I will have to type in if the following is true: disk to mount is on /dev/sda it is 2 TB -it is critical that I…
wardr
  • 2,219
  • 4
  • 20
  • 21
102
votes
14 answers

How can I control HDD spin down time?

I have 2 HDDs in my PC. Ubuntu is turning off the secondary HDD very quickly after about 15 minutes, which is short for me. I need to control this time. How can I do it? I tried GNOME power management but did not find it useful.
user16295
  • 1,021
  • 2
  • 8
  • 3
95
votes
5 answers

How can I quickly copy a GPT partition scheme from one hard drive to another?

On a non GPT partition table I can do sfdisk -d /dev/sda | sfdisk /dev/sdb. But sfdisk doesn't support GPT partition tables. What can I use instead? I'm looking for a one or two command solution, not just using GNU parted to output the partition…
Kris Harper
  • 13,397
  • 12
  • 56
  • 73
80
votes
11 answers

How would I speed up a full disk dd?

I am doing a dd on two identical drives with this command: dd if=/dev/sda of=/dev/sdb bs=4096 Both hard drives are the exact same model number, and both have 1TB of storage space. /dev/sda uses a blocksize of 4096. /dev/sda is a local drive and…
Kaz Wolfe
  • 33,802
  • 20
  • 111
  • 168
1
2 3
99 100