Questions tagged [hard-drive]

GENERAL HARDWARE SUPPORT IS OFF-TOPIC. Questions about hardware should be asked on https://superuser.com. A hard drive is a physical storage device used to save state for operating systems and individual software programs. Questions should relate to reading and writing via programming.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
27 views

Error while checking filesystem. Not authorized to perform operation (udisks-error-quark,3)

I have been getting disk errors from an NTFS-formatted internal SATA HDD on a Lubuntu 20.04.6 LTS system. When I try to check the filesystem (from the Disks app) I get this error. The drive is ...
Ian M's user avatar
  • 575
0 votes
0 answers
21 views

Rotational latency for reads

Reading from disk, assuming always we are in the same track we have two cases: sequential reads and in different sectors of disk sequential reads and in same sectors of disk How would the rotational ...
Bryar's user avatar
  • 131
0 votes
0 answers
49 views

Writing 1 block to File System equates to how many IO operations on the disk

Had couple of doubts arising with respect to file system block size and disk block size and how read/write operations on file system translates to read/write operations on disk. Let us assume I have a ...
mSatyam's user avatar
  • 531
0 votes
0 answers
24 views

Clear a specific file from windows disk cache from command line

I'd like to clear specific generated files from the disk cache in windows. I've seen some solutions for clearing the entire cache but would like to just clear that ones used by my app. Here is using ...
simgineer's user avatar
  • 1,754
0 votes
0 answers
48 views

How to fetch hard drive details (serial number, manufacturer) programmatically in QNX?

fHow to fetch hard drive details (serial number, manufacturer) programmatically QNX linux. Can I read it directly from filesystem ? or what are the other way of fetching hard disk details ? Tried ...
Arun Nishad's user avatar
0 votes
0 answers
20 views

Can't find my anaconda jupyter notebook python file after switching from HDD to SSD

I recently upgraded my laptop from an HDD to an SSD. Retaining my HDD as an external Hard Disk. I had set up an anaconda environment on my pc and was avidly coding in python on jupyter notebook. Sadly ...
Prerna Kewat's user avatar
0 votes
0 answers
52 views

Do operating systems use block storage or file storage

Morning, I have a problem understanding the terms block storage v file storage. My understanding so far is that OS uses block storage, however.... after all, anyone using Windows/Linux is actually ...
Michael's user avatar
  • 157
0 votes
2 answers
309 views

Get the serial number of the hard disk who host windows os

I'm trying to get the serial number of the hard disk who host windows os in a consistant way through python calling windows cmd from subprocess So far using : wmic diskdrive get serialnumber,index ...
Nuopel's user avatar
  • 21
-1 votes
1 answer
418 views

Formatting multiple drives in a server through sg utils in parallel

I have to reformat 28 10TB drives inside a server from 4096 Bytes to 512 Bytes, in order for them to be recognised by the raid controller. Due to the large capacity, when using the GParted Live CD and ...
ignis's user avatar
  • 1
0 votes
3 answers
68 views

Does 100x writing 1 letter to a text file significantly wear down a hard drive / ssd more, than writing 1x 100 letters at once?

Basically I'm writing hundreds of times per minute to a log file, I wonder if it makes a significant difference to the longevity of a hdd / ssd whether I write every change directly to the log file, ...
876346209's user avatar
1 vote
0 answers
156 views

Read HDD SMART attributes using DeviceIoControl

I run my program that gets HDD SMART attributes as admin, but get this error: Failed to get S.M.A.R.T. data. Error code: 5 Error message: Access is denied. Why access is denied?How to fix it?Program ...
Bogdaniv's user avatar
0 votes
2 answers
151 views

How to check the drive power state?

I'm trying to read the drive power state (active/standby/sleep) using Python under Linux/Raspberry Pi. I found here this answer and it says that I can do it using udisks2 dbus: you can get around this ...
Marus Gradinaru's user avatar
-2 votes
1 answer
76 views

Replacing HDD with SSD without loosing/reinstalling original OS and Installed Softwares [closed]

I have a windows 10 machine with HDD installed.I need to replace this HDD with SSD. My question is, is it possible to migrate the OS and the softwares already installed HDD to SSD without ...
Hari's user avatar
  • 333
1 vote
1 answer
50 views

PowerShell Defrag Analysis returning NULL values

PowerShell Defrag Analysis returning NULL values $computer = "Server" $drives = Invoke-Command -ComputerName $computer -ScriptBlock { Get-PSDrive -PSProvider FileSystem | Select-Object @{n = ...
Vorster's user avatar
  • 113
0 votes
1 answer
331 views

Is it possible to have an HTML and JSON file stored on your PC, and have HTML load the json data WITHOUT node.js or server?

I stumbled an issue where I'm working on an HTML file that would load a separate json file. The HTML file have JS code in the <script></script> tag and the json file contains an array with ...
AAsomb113's user avatar
2 votes
1 answer
179 views

GetDriveType detects "Google Drive" as DRIVE_FIXED... how to exclude them?

I have a little utility (on beloved Delphi) that monitors HardDisks FreeSpace I use GetDriveType The problem is that "Google Drives" are being recognized as DRIVE_FIXED So I'm trying to ...
SullyPanda76cl's user avatar
0 votes
1 answer
239 views

I want to change the default hard disk work is done on [closed]

I have 3 hard drives C: D: and E: Windows is installed on the C: drive, or more specifically a partition on the physical drive under F: with only the OS installed on it. C: and E: are both SSDs and ...
mastiwawa's user avatar
0 votes
0 answers
36 views

Running Jupyter Notebooks from External Hard Drive: Permission Denied when Creating New .ipynb file

I recently created a virtual environment on my external hard drive for Jupyter Notebook. When trying to create a new .ipynb file, I get a permissions error that displays both in the Jupyter Notebook ...
miachiaveli_master's user avatar
0 votes
0 answers
39 views

Memory error in python when creating a large list

I have a python code that will out put a list of size 1e^12 but I get a memory error when I run the code. I learned this can be solved by storing the list in hard drive instead of ram. But I have no ...
SONTIA EMERSON's user avatar
1 vote
2 answers
4k views

Deleting C:/Users/username/AppData/Roaming/Code/User/workspaceStorage

recently my c drive has been very full even tho i wasn't installing programs so i install WinDirStat which helped me alot but i realised that C:/Users/username/AppData/Roaming/Code/User/...
goAT2160's user avatar
0 votes
1 answer
94 views

SCSI commands that can benefit from a full duplex SAS connection

One of the distinguishing features of SAS is a full-duplex connection between the HBA and device. SATA provides only half-duplex connections. I used to think that SAS drives could simultaneously ...
Vitaly Isaev's user avatar
  • 5,479
0 votes
0 answers
58 views

Odd Hard Drive Serial Number in Powershell

When I use that command: Get-WMIObject win32_physicalmedia | Select-Object SerialNumber I get different serial number of my hard drive. It shows 8CE3_8E05_0053_5038 and it should show Z03F7BQ7F2F3 Did ...
leonidassq's user avatar
0 votes
0 answers
45 views

Python Threading: Write data to file without caring about sequential writes or save to memory first and write them at sequencially?

I'm making a script that can download the Archlinux iso from multiple mirrors at same time. Each of the downloads have their own thread and it would be really easy to just write them to a file using f....
Nichtdu's user avatar
  • 13
0 votes
0 answers
20 views

How is it possible to save a file which contains one or a few bytes (i.e. 20 bytes), without occupying 4 KB disk space for that file?

I'm trying to save log data, and each log data (for example, the transaction numbers in the financial system) is only a few bytes. I do not want to use the Database structure. And I already know about ...
Cute Boy's user avatar
0 votes
0 answers
56 views

device-mapper: reload ioctl on sadc failed: Operation not permitted

I want to create a simulated SMR disk under the ubuntu16.04 system, but there is an error in the process of dmsetup。 for problem: enter image description here I am also using the root user
SSHD_F's user avatar
  • 1
0 votes
0 answers
87 views

How to get hdd drive state (like active/idle,standy) in python 3 without admin rights?

Is there a way to get the status of a hard drive in debian linux without admin rights in python? What I have done (in shell, not python): 1. I installed hdparm via shell: sudo apt-get install hdparm ...
domatrix's user avatar
0 votes
1 answer
44 views

Does a HDD/SSD use 1 or 2 device controllers to connect to the OS?

I am studying Operating Systems, and came across divice controllers. I gathered that a device controller is hardware whereas a device driver is software. I also know that a HDD and a SSD both have a ...
RoelfMartins's user avatar
0 votes
1 answer
168 views

I wanna get hard disk serial code in unity but it makes NotImplementedException

So here is the problem: I wanna get the hard disk serial code by using unity 2020.3, so I used the code: using System.Management; public string GetHarddiskSerial() { string serial_number = "&...
Deuterium's user avatar
0 votes
1 answer
525 views

Find the interface type and revision of a hard drive using in a windows machine

I'm looking for a command in Windows (either cmd or powershell) which will allow me to get which exact type of bus interface my storage device have, not only the type, but also the revision (SATA3, ...
Guy Markman's user avatar
1 vote
2 answers
710 views

How can I obtain the RAM and CPU usage of a particular app on my on a Window OS while it is performing some actions

I am running performance testing on some endpoints on my PC, I would like to see the RAM, hard disk, and CPU usage of the very application that is being used for the performance testing on my computer....
Haris_007's user avatar
0 votes
1 answer
1k views

Powershell / .NET - Will [System.IO.File] give me the same result as file copy in NTFS?

I am just trying to write a basic powershell script to test certain performance characteristics of hard drives. It's basically generating files of random content of $fsizefill bytes and writing it to ...
HTWingNut's user avatar
  • 263
0 votes
1 answer
47 views

Powershell | data growth query

I'm trying to write a script that measures data growth I make a query and write an initial csv. Tthen I compare this once a week with a new query. This is the compare skript: $vergleich = compare $...
Anton Struhli's user avatar
0 votes
0 answers
218 views

EC2 Instance claims to be out of storage when only half full

I am running an Ubuntu Amazon EC2 instance with a 100gb volume mounted. However, when I hit 56gb, the FS says that it has run out of storage. It clearly has plenty of space available. This is the ...
rchurch4's user avatar
  • 859
-1 votes
1 answer
656 views

How to make du command throw input/output error

How to make du command throw input/output error. For some reason, I want to reproduce this use case and want to verify my fix before changes pushed to production. I am not able to understand how to ...
Subhash Karemore's user avatar
0 votes
1 answer
64 views

Access secondary hard drive from IP in Java application in Apache Tomcat 8.0

I have a Java web application that has to access a file in a hard drive different than the one the application is installed in. I have the address configured in my Web.xml, this data is accessed from ...
Christian Sêngir's user avatar
-3 votes
1 answer
65 views

About Ram & Secondary Storage

Why do Ram size is always smaller than Secondary Storage(HDD/SSD)? If you observe any device you will get the same question
Yash Gandhi's user avatar
1 vote
1 answer
56 views

syntax error powershel script for check hard disk

hi there I am recently starting to work with PowerShell and I have some issue with the following script can you please help me to fix it I need to print in 1 row the state of the drive and if the ...
user avatar
1 vote
1 answer
1k views

Can I change Storage Type from HDD to SSD on Cloud SQL after creating an instance? (GCP)

I'm trying to change Storage Type from HDD to SSD on Cloud SQL after creating an instance as shown below but there are no options to do it: Is it impossible to change Storage Type from HDD to SSD on ...
Super Kai - Kazuya Ito's user avatar
0 votes
2 answers
362 views

Addition of numbers obtained in foreach in C#

With the following code, I will receive the volume of all Windows hard disks separately foreach (var drive in DriveInfo.GetDrives()) { int bb = Convert.ToInt32(drive....
Mahdi Jamal's user avatar
-1 votes
1 answer
62 views

How to attach external disk to Windows VM in Azure without losing data?

I'm looking for how to attach an existing external disk from VM1 to VM2 without formatting it from the Manager disk in Windows. All the documentation that I find tells to format it at the end. I need ...
Elias Arellano's user avatar
2 votes
0 answers
490 views

How to get size of disk driver sector

Can get size of disk sector via the Linux API/ABI? It's about the quantum of I/O disk, normally it's equal 512 bytes, but others values can be too (usually multiple 512 bytes). Also it should not ...
SubtRose's user avatar
1 vote
1 answer
503 views

See Disk Activity In Python

Is there a python command or library that I can call to see if hard drive is being written to or read from? Like this C# one Detect if hard disk is being accessed or not
Monki Majik's user avatar
0 votes
0 answers
727 views

Windows Powershell - How to Extract Specific SMART Info?

Sorry, I'm trying to understand powershell, and would appreciate some help. I am looking to extract specific SMART values. I know I can extract basic information from SMART using: get-physicaldisk -...
HTWingNut's user avatar
  • 263
0 votes
1 answer
3k views

How do you calculate slack space?

A file of size 12,500 bytes is to be stored on a hard disk drive where the sector size is 512 bytes, and a cluster consists of 8 sectors. How much slack space is there once the file has been saved?
Andy's user avatar
  • 1
1 vote
0 answers
247 views

Git Bash/SCM issue with 100% disk usage

After using VS Code and running the bash terminal with some simple npm commands, I quickly see that my disk drive usage jumps from the typical 2%-5% up to 100% and it holds it there constantly. Even ...
Kamen Kanchev's user avatar
0 votes
2 answers
722 views

Updated EC2 instance and an EBS volume is Offline

I updated an EC2 Windows 2019 server instance from t3.medium to t2.medium. The machine had a D drive for storage which is an EBS volume. Now that volume says it's offline: Has anyone else ...
Daniel Williams's user avatar
2 votes
0 answers
987 views

how to fetch HDD serial number of SSD type NVME in non-admin mode

I have tried multiple way to fetch correct HDD serial number which we are getting from admin mode by using smart interface and while installing drivers in laptop but none of the them are able to fetch ...
Ashish Durgapal's user avatar
-2 votes
1 answer
44 views

How large is a disk sector anyway? [closed]

So, since ages I have been told that hard disks (I am specifically interested in HDDs and not SSDs) write data in units of 512 bytes, sectors. But when I interrogate the folder with stat . then I get ...
ArekBulski's user avatar
  • 4,688
0 votes
1 answer
184 views

Armbian - how to turn off a hard drive connected on SATA

I have an Orange Pi + 2 single board computer with the ability to connect an external hard drive via SATA. Armbian is installed on the hard disk, the bootloader is in the onboard memory of the board. ...
Kirill Vercetti's user avatar

1
2 3 4 5
13