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:

5643 questions
824
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,693
658
votes
26 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,855
508
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
  • 216,643
374
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
  • 13,088
231
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,503
144
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
  • 36,752
139
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
  • 110,243
139
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.
  • 18,589
130
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,610
128
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,926
116
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,161
113
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,429
109
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.
100
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,705
84
votes
2 answers

Terminal method of formatting storage drive

I want to know how to format a storage drive from the terminal. Helpful things to provide in the answer would be often used options for commands and base knowledge that one can use to extrapolate future uses. Specifically I would like to know how to…
1
2 3
99 100