Questions tagged [hard-disk]

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).

1
vote
1answer
11 views

Erasing hard drive to reinstall Mint

After installing Linux Mint, I had a problem with the hard drive (more than 200GB) getting full without me downloading anything. This was probably because of timeshift and some users said it also had ...
0
votes
0answers
4 views

Potentially faulty disk hangs up, but the problem is gone with a restart

I was recently able to track some system hangups due to one of my disks simply hanging up indefinitely. This has happened multiple times but it always goes back to normal after a restart. The disk ...
1
vote
1answer
25 views

How to preserve filename and folder structure when using foremost recovery program?

I am desperately needing to run the linux recovery software foremost and preserve filenames and folder structure. As you might know the program renames the recovered files with a numerical value and ...
0
votes
1answer
21 views

Ubuntu lsblk drive size

I am setting up a ZFS NAS using Ubuntu 18 with 8 hard drives for storage. When I use sudo lsblk -P to check what the drive names are, I only see sdb-sdh. I know this is because it will skip over the ...
1
vote
1answer
24 views

Disk I/O misalignment (I/O unaligned) issue … who is to blame?

If an application, such as a database, is using the OS for writing/reading (that is, it is not directly writing to disk, i.e not using DIRECT IO or such) ... who would be to blame for I/O misalignment?...
0
votes
3answers
28 views

USB-attached HDD visible in dmesg, but can't be opened with fdisk

I've attached a SATA to my computer via a "plugable" (that's the company name) disk docking station. The docking station is fine, since I've attached another HDD and was able to see its partitions' ...
4
votes
1answer
34 views

gdisk, make a non-permanent fix to a corrupted GPT table

My laptop is unable to boot. So, I run Ubuntu 18.04 live from a bootable USB. It didn't automatically mount the 500 GB hard disk /dev/sda, which uses GPT. lsblk shows only the disk, not the ...
0
votes
0answers
20 views

Why is my png image data disappearing?

I've been creating a few PNG images with some maps in the last days (using R). After the images are finished, I move them to a separate folder labeled "ok", so I don't get the risk of overwriting them ...
0
votes
3answers
47 views

Completly erasing hard drive

I've got a laptop which i want to give away to a friend. So i want to completly erase the hard drive that there is nothing on the hard drive, no boot stuff, no nothing - that as soon as he boots up ...
0
votes
0answers
22 views

One machine recognized disk as corrupt, works fine on another

I have a Western Digital USB hard drive which I typically leave connected to a Raspberry Pi. Today I noticed that the drive wasn't mounted anymore, and didn't see anything in the syslog to explain why....
9
votes
1answer
941 views

Is it possible to (7 day) schedule sleep time of a hard drive?

I'm looking for a way to schedule when an external hard drive connected to my Linux (Debian 9) box goes to sleep (stops spinning). To put this into content: I have a Linux box that runs as a ...
0
votes
2answers
42 views

Is there a reason to avoid frequently creating and 'destroying' partitions and having lots of them? [closed]

As far as I know, this just amounts to a change in the partition table and it is a relatively safe operation that is rather cheap. Is there any significant cost or drawback(s) to... Creating and ...
0
votes
1answer
19 views

repartition HD Linux Mint

Here is what have now. As you see, I'm running out space on /dev/sda6.I'm not sure how to move partitions around to gain space. I surly don't want to mess up.
0
votes
2answers
51 views

Windows on SSD, Linux on HDD. No dual-boot. Separate bootloader devices. Will there be problems?

I have a 1 Terabyte HDD which is currently empty storage space for Windows which is on SSD. I want to split the HDD to two 500GB partitions and use first half as Windows storage space and the other ...
1
vote
2answers
43 views

Hard Disk with 8 bad blocks

This is the SMART information about a possibly damaged hard disk of mine: smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.18.0-15-generic] (local build) Copyright (C) 2002-16, Bruce Allen, Christian ...
-1
votes
1answer
28 views

Delete partition - Partition number

I want to delete the partition /dev/sdb5 from my hard disk and then distribute the resulting space to other partitions. Now what would be the consequences in doing so? Would the partition numbers ...
0
votes
1answer
29 views

DDRESCUE - How to re-run first pass (don't do reverse yet)?

I ran ddrescue for a few days, and recovered about 60G. It had slowed to a crawl, and had an ipos of about 90M. I started again, adding -a100000, and it got another 35G in only 3 hours. It started the ...
0
votes
1answer
81 views

What is the maximum number of partitions in a hard drive [duplicate]

I want to know the maximum number of partitions in a hard drive. But I'm not sure whether that is affected by factors such as hard drive types or partition scheme or not. So, I'll just write down ...
1
vote
2answers
49 views

Resume DD on creating a disk ISO?

I'm trying to create a full disk ISO image of a 250GB HDD but I had to cancel the operation about 80% of the way through, it'd taken nearly 16 hours to get to this point and I'd rather not have to ...
0
votes
2answers
55 views

df command not showing free disk space

I'm trying to find the full disk space of my whole disk. I used the df command and typed df -h and I saw my disk which is called sda however df only shows me the first partition for my sda disk which ...
0
votes
0answers
59 views

How tdo you add an unallocated space partition to your kali linux partition? (Kali linux dual booted with windows 10)

I am currently using Kali linux as a dual boot with windows 10. I cannot figure out how to allocate my Kali linux OS unallocated space that I have on one of my drives without reinstalling. I have ...
0
votes
0answers
25 views

Installed new Linux on HDD having a second Linux on SSD - possible sharing of root/swap partitions?

I got a bit confused after installing Linux Mint again, this time on my HDD instead of the SSD. I have not deleted the old (on the SSD) yet because I am worrying that "root" and "swap" might be shared ...
6
votes
1answer
508 views

How to calculate partition Start End Sector?

I am wondering what Start and End value to choose when partitioning my ext. SSD using fdisk. fdisk suggests 2048-250069679, default 2048 but 250069679 cannot be divided by 512 nor by 2048. Wouldn't ...
2
votes
1answer
358 views

“kernel: Buffer I/O error on device” - Does my server have a hardware problem?

we have linux DB server redhat 7.2 we notice about many message as below about all disks that are mounted from /var/log/messages what we are need to understand if this behavior is relevant to HW ...
1
vote
0answers
102 views

disks are SSD, but /sys/block/vdb/queue/rotational says it's rotational - should i worry?

Is it a problem when the system believes a device to be rotational, but it is SSD really? The system is: Ubuntu 18.04 KVM virtualized I have /dev/vda as "local", /dev/vdb as "isilon"; I'm interested ...
1
vote
0answers
46 views

Disk utilization on mdadm raid 5 is 100% even though none of the member disks is at 100%

I am currently confused about the disk utilisation of one of my machines. The setup: I have a machine containing 4 2TB HDDs. For those HDDs I used mdadm to configure a RAID 5 (called md2) On MD2, I ...
0
votes
0answers
86 views

df - size doesn't equal used+available

I have such line when running df: /dev/sda4 47G 45G 0 / I have all those error messages that there is no space left on the device. I rebooted system and nothing changed. I ...
0
votes
0answers
41 views

How do I properly spin down my hard drives using the command line? (hdparm, apm, hd-idle, any other?)

I just realized that spinning down hard drives is more complicated than I thought. Regarding to HDD idle settings using hdparm (APM, Suspend) I have to write a script that needs to be started at ...
0
votes
1answer
19 views

can't find one of my hard drives on newly installed linux mint

I just installed linux mint alongside windows and I can't seem to find one of the 3 hard drives. Two of them (sda and sdc) are available under /media/<username>/<drivename> , but the third ...
1
vote
1answer
22 views

Issue with merging two HDD images into 1

I've got two HDD image files, which both of have 2 partitions each. On each image, the first partition is the grub boot partition, and the second partition contains the files and kernel. The second ...
1
vote
0answers
105 views

ls command is too slow for some directories

When I run ls command for some directories, it may take about 1.5 seconds to complete even if directory has just a few files, but for most of directories it's very fast. It seems that it's slow for ...
1
vote
0answers
161 views

How to get various disk information on Linux?

The purpose is to obtain information about the physical hard disk under the Linux platform. The required information include: physical hard drive name (caption) device path (such as /dev/sda) read/...
0
votes
0answers
50 views

USB disk disconnects when exchange quite high data

I have an embedded PC (based on Atom Z3735F with a 32 GB eMMC for o.s.) that I use as NAS with OpenMediaVault 4.1.2-1. On an USB port I connected a 1 TB Hard-disk for storage. Whenever I do something ...
0
votes
1answer
22 views

badblocks fails to spot corrupting disk controller

I have file corruption problem on a HDD (the SDD in the same computer works fine): for i in {1..10}; do dd if=/dev/zero of=zeroes_$i.dat bs=512 count=4M done md5sum zeroes_* yields the correct ...
4
votes
0answers
355 views

Buffer I/O error on loop device

Lately, I have been getting Buffer I/O errors during boot time. Seemingly, it appears randomly and I could not be able to reproduce it. However, it happens in every 5-8 boot on average. Here is the ...
-1
votes
1answer
26 views

Formated drive is not fully empty

I used Gparted to delete the partitions on a HDD as for some reason had used data on it however, after restarting my system it says my unallocated 4TB drive is only 3.64TB.
0
votes
0answers
36 views

Disk space disappeared [duplicate]

cd / && du -sh . told me that the filesystem used 2.1G spaces of disk: root@ubuntu:/# cd / && du -sh . du: cannot access './proc/3874/task/3874/fd/3': No such file or directory du: ...
0
votes
1answer
72 views

“hdparm -S” does not work on external HDD's. How to avoid it from spinning down?

Apparently, hdparm only works with internal HDD's.How do I avoid an external HDD from spinning down after half a minute? One way is to read one sector using badblocks or dd each 29 seconds in an ...
0
votes
2answers
130 views

S.M.A.R.T show's high Load_Cycle_Count | Why and how to prevent the number from increaseing?

i just realized that some of my HDD's have a huge Load_Cycle_Count when reading out their S.M.A.R.T data. Some are short before failing and i am asking myself why this is the case and if there is ...
0
votes
0answers
27 views

Kali Doesn't show HDD in automated install [duplicate]

I am trying to install Kali Linux from a USB drive to my hard drive alongside Windows 10. My issue is that when the "Partition Disk" step comes along in the Kali installation, /dev/sda does not appear....
0
votes
1answer
66 views

In LINUX: Using dd to transfer shrunk partitions on a 2TB HDD to a 500GB SSD

A source HDA (2TB mechanical HDD) has 5 partitions on it (GPT) that used to occupy the entire capacity of the 2TB HDA. The Operating System resident on the source drive is Windows 10. Since the ...
-1
votes
1answer
195 views

How to access external hard drive from Ubuntu Shell and Python code [duplicate]

I am running out of space in my local device. I have external hard disk. I want to point my python code to write to directory there. How can I know the full path for the hard disk? I tried to go to ...
2
votes
1answer
76 views

Nginx disk io problem

I run a small video streaming website and i've been noticing some problems with videos on my site. TOP top - 15:43:48 up 34 days, 1:22, 1 user, load average: 37.80, 38.08, 38.38 Tasks: 184 total, ...
-3
votes
1answer
59 views

What are the limitations on where we can move a partition in gparted? [duplicate]

Please leave the two posts open, until you can write a good answer to cover both. The layout of my current disk is: In gparted, when I select a partition, and click "Partition->resize/move", is it ...
0
votes
0answers
110 views

Will I be able to move my root partition without failing to boot?

The layout of my current disk is: I am following the advice from https://unix.stackexchange.com/a/501410/674 to rearrange the partitions on the disk. Are the following steps ok? shrink sda3 (/) to ...
0
votes
1answer
28 views

Do the (relative) positions of the partitions matter?

The layout of my current disk (ST1000LM014) is: Do the (relative) positions of the partitions matter? what are the pros and cons of the following orderings: swap, home, root swap, root, home root, ...
0
votes
1answer
75 views

Is lshw correct that this hard drive is SCSI not IDE?

I have a hard drive (model: ST9100822A), which I think is IDE, because of the look of its interface pins, and accordingly the instruction of my SATA/IDE-USB adapter. But lshw shows it as a SCSI disk ...
0
votes
1answer
93 views

What is the purpose of `.Trash-1000` in my external hard drive and how can I clean it up?

I have a Western Digital external hard drive with one partition and a NTFS filesystem. In Lubuntu, under its top directory: $ sudo du -d 0 -h * | sort -h 0 temp 7.5K $RECYCLE.BIN 25K System ...
2
votes
2answers
319 views

smartctl reports overall health test as passed but the tests failed?

Why is SMART overall-health self-assessment test result: PASSED being displayed when the two tests done failed? sudo smartctl -a /dev/sdc smartctl 6.6 2018-12-05 r4851 [x86_64-linux-4.14.98] (local ...
-1
votes
1answer
138 views

Hard drive - not seen by fdisk, not mounted but detected

I had hard drive which was target location for CCTV, connected to linux mini pc running rsync in background to collect footage from few locations. Well, I noticed that sometimes rsync failed due ...