Questions tagged [disk]

Questions about disk drives under the UNIX and Linux systems. See also the "filesystems" tag.

Filter by
Sorted by
Tagged with
1
vote
0answers
30 views

Fast way to create virtual disks?

I want to create virtual 500GB ext4 disks on external usb disks and samba/nfs shares. For test purposes, I first tried with a 1GB file using the following commands. sudo dd if=/dev/zero of=/mnt/...
2
votes
2answers
34 views

Drive failure(s) in linux mdadm raid array. Help!

It looks like my system is suffering from some sort of catastrophic failure, and I'm panicking at the moment, not sure what to do. I had a 3 drive raid 10 array. I noticed this morning that I was ...
3
votes
0answers
33 views

QEMU shared folder performance problem

I've got a Windows 10 virtual machine running on Ubuntu 18.04 host (QEMU 2.11). I've created a shared folder with the command line parameters -netdev type=user,id=smb0,smb=/mnt/ntfs,restrict=on -...
1
vote
0answers
22 views

My disc drive does not recognize some (known-working) discs

I'm running Linux Mint 18.2. I have an Asus Blu-Ray drive, marked as also being able to read DVDs and CDs. I have two music CDs and two data CDs to which I have immediate access, and which I have ...
2
votes
2answers
32 views

Is it safe to resize partition in ext4?

I would like to reduce the size of an ext4 partition from my disk and I would like to know if it is possible that my files become corrupted during the operation ? I learn that ext4 file system use ...
-1
votes
1answer
24 views

Kali on 32gb flash drive displays 67gb storage

I'm new to linux and how it works. I recently installed a kali linux image onto a 32gb flash drive and stuck it into my pc and booted from it. All went well, and so I ran the df command and got this ...
1
vote
1answer
29 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
0answers
18 views

Does BTRFS commit time influence benchmarking?

I have two NVME drives here and want to test their performance in different setups with BTRFS. (Mostly as an educational stunt) I'm going to use the Phoronix suite for the most part. What I wonder ...
1
vote
0answers
40 views

Does `fstrim` causes write to all free blocks every time?

I have Ubuntu 18.04 server with 500G SSD disk which has LVM and dm-crypt on it. I recently noticed that the number of bytes written to disk (as reported by vmstat -d or iostat) is unrealistically high....
7
votes
3answers
368 views

How can a disk without a partition be “partitioned” without losing data?

I have a 1TB portable hard drive that I use for backups. The entire drive (/dev/sdb) has been formatted as an ext4 filesystem. I have been reading about the benefits of btrfs for backups (checksums, ...
0
votes
0answers
23 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....
1
vote
0answers
20 views

Debian 9 does not load login screen

My HP laptop fails to load the login screen after saying [FAILED] Failed to start Accounts Service There's an error concerning the partition of a disk that keeps showing up. BTRFS critical (...
0
votes
0answers
24 views

Moving MBR to a cloned drive with BTRFS

Context : I have cloned a disk with ddrescue (was supposed nead to death). I want the copy to be bootable. Both disks are installed in the PC, the old one (eventually in good health) on /dev/sdb and ...
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 ...
2
votes
1answer
35 views

sd 5:0:0:0: [sda] Attached SCSI disk, what are these four numbers? Will they change?

I can usually see this log in dmesg: sd 5:0:0:0: [sda] Attached SCSI disk Can you please explain what are these 4 numbers? Will these numbers change after reboot? or it should be constant?
0
votes
1answer
38 views

How to burn the iso file window in disc?

This is my PC/OS detail I recently downloaded a 90 days trial version of Windows. My question is, when I right clicked to burn disc, I did't get any option like 'Burn to disc'. How to burn the ISO ...
0
votes
0answers
28 views

Disk space full after Timeshift

OS: Manjaro Linux x86_64 DE: GNOME / : Samsung SSD 850 evo 120GB I recently restored my OS using a Timeshift backup. After completion, my disk got full with only 4GB of free space. Before the ...
1
vote
0answers
17 views

How to identify the disks of a Linux virtual machine in VMware vSphere 6

I have a virtualized RHEL7 server with vsphere 6, I need to remove some virtual disks from vCenter that are presented to my virtual machine (rhel server) that are no longer being used by the operating ...
1
vote
2answers
46 views

System doesn't recognise model of my SSD disk

I have Samsung SSD 970 EVO Plus NVMe M.2 500GB mounted on the motherboard and it works fine, but when I open for example gnome-disks or parted to get more info about disk, system doesn't recognise ...
1
vote
0answers
26 views

why does these partition gaps occur? [duplicate]

I am doing an experimental project on NTFS and I just discovered every time I create a new partition there seems to be a (nearly 1MB) partition gap created just before the new partition. I searched ...
1
vote
2answers
44 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 ...
0
votes
1answer
38 views

Hard disk Cylinder explaination

I am currently learning about how HDD's function and in particular i am having trouble understanding what a Cylinder in a HDD is. I have read online and my current understanding is that it is when a ...
0
votes
1answer
13 views

The new volume group's Format do not be checked

When I install CentOS 6 system on my physical server, there are two disks, you see the sda and sdb, I created the VolGroup00 vg, you can see my snapshot: there I have a question, you see the sda2's ...
0
votes
0answers
27 views

Partition Start and End Calculation

I was using the parted command and i was trying to create a new partition using the mkpart option. While i was doing this it asked for the partition start and end. Now i believe i know what the ...
0
votes
0answers
44 views

Hard disk Start and End Calculations (closed)

I am using the common Linux Parted command which is used to manipulate the partition table, but there is a problem. i was trying to create a new partition using the mkpart option. While i was doing ...
2
votes
2answers
83 views

parted command (start and end meaning)

I am using the Linux parted command; I was using the 'mkpart' option which allows new partitions to be made, but I was confused when it asked me for the start and end. What does 'start' and 'end' ...
0
votes
2answers
49 views

Can not mount the parted sdb1 to the directory

I added a sdb disk, and there is a sdb1 on it: [root@localhost ~]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 111.8G 0 disk ├─sda1 8:1 ...
0
votes
2answers
63 views

linux partition/disk numbers (sda1,sda2,sda5)

at the moment i understand that linux has a partition numbering system which is: partitions 1-4 are primary partitions 5 and above and logical but what about extended partitions? my curret ...
0
votes
2answers
60 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 ...
1
vote
1answer
72 views

Getting sector number from inode or address_space mapping

In am trying to understand how to calculate a sector number from an inode in the ext4 filesystem. Therefore, I am reading ext4_mpage_readpages function. About the function: During a read request, if ...
0
votes
0answers
49 views

How to find max queue length for device?

Recently I ran into some I/O overload problrms on some of our machines and I have been searching to find thresholds for some metrics like: avgqu-sz await svctm Then I saw this post on Stack ...
0
votes
0answers
96 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 ...
1
vote
1answer
34 views

How to enlarge this partition?

Inside vmware ESXI I have a CentOS virtual machine, and I resized the virtual disk from around 30 GB to 120 GB using vmware "edit" vm menu. Then I booted using a gparted bootable ISO and resized the ...
1
vote
0answers
47 views

How to wipe a partition quickly with value zero? [duplicate]

I want to wipe a partition quickly.I search the answer in website. such as: dd if=/dev/zero of=/dev/sda1 bs=16M count=96 shred -v -z -n 1 /dev/sda1 But: All the commandline,will overwrite with ...
0
votes
2answers
53 views

partitions (in general)

I have been doing research on partitions lately and im quite confused on a few things: what is a partition table and what is it used for what is a partitioning scheme (GPT and MBR) and what are they ...
1
vote
1answer
36 views

the sector means logical sector or physical sector?

In dmesg, I saw this log. blk_update_request: critical target error, dev sdx, sector 123456 I want to know the 'sector' here means a logical sector or physical sector? because I want to know the ...
2
votes
1answer
163 views

Short and long uuids under /dev/disk/by-uuid

There are several hard disk partitions on my system (Linux josDeb 4.9.0-8-amd64 #1 SMP Debian 4.9.144-3.1 (2019-02-19) x86_64 GNU/Linux). It is working with: bejo@josDeb:~$ ls -l /dev/disk/by-uuid ...
1
vote
2answers
170 views

Debian - microSD lost async page write

I face some issue with microSD on a Lenovo S130-14IGM. My laptop is running lastest Debian 9. I have a microSD with an ext4 partition located on /dev/mmcblk1p3 which behave strangely. When I try to ...
0
votes
0answers
21 views

Linux naming/names [duplicate]

i have been trying to understand a concept which i have encountered in the past days. i have heard that in kernel version 2.9 of the linux kernel there was a change in how IDE/PATA and SATA/SCSI ...
0
votes
2answers
213 views

Linux block devices naming

I am a bit confused with how linux hard drive/ storage device, block files are named. My questions are: How are IDE devices and partitions named? How are EIDE devices and partitions named? How are ...
1
vote
1answer
83 views

How to flush writes to disk aggressively?

I'm using Ubuntu 18.04 on x86_64 devices. I have been haunted for months by a mysterious issue that I couldn't reproduce myself in which our application's configuration files were getting corrupted. ...
0
votes
0answers
20 views

Expanded a partition to fill empty space, but empty space is at the start of the partition and unuseable

I've been using Mint 19 with Cinnamon. I deleted the Windows partition and was able to expand the Mint partition to fill the empty space. However, / is in the middle of the partition as Windows was ...
0
votes
1answer
59 views

Mint - disk is full (prevents login)

I had 0 bytes free and even when I deleted something the number of free bytes stayed still zero. So I tried to restart it and I can't login now. I tried console Ctrl+Alt+F1, but I don't know login. I ...
0
votes
1answer
56 views

How to set fstab to be able to umount my external HDDs under normal user account?

System: Linux Mint 19.1 Cinnamon. Disks in this question are considered external HDDs either ext4 or ntfs formatted. I am interested in how do I manage to set my fstab or whatever else to be able to ...
3
votes
2answers
91 views

dd doesn't overwrite the disk

I am running Ubuntu 18.04.1 in a Virtual Machine (VMWare) on a Windows host. I am trying to zero out an entire SD card using dd. This is part of the process I use to release embedded Linux to the ...
1
vote
2answers
49 views

if some files are pseudo, why open() function still can access it?

We know there are many files that are pseudo files, i.e. not a real file. ex: /sys/xxx /proc/xxx /dev/xxxx In my understanding, the open() will call x86 ASM code, the ASM code will do hardware ...
-1
votes
1answer
350 views

dmesg gave errors blk_update_request: I/O error, dev xxx, sector xxxxxxxxxx

I found errors by performing dmesg, seems like there're something wrong with all of disks. I keep tracking the errors until now. Here're a log from dmesg. [Wed Mar 13 17:12:26 2019] ...
1
vote
1answer
44 views

What does “no device” mean when running iostat -En

We presume to have a faulty cable that connects the SAN to a direct I/O LDOM. This is a snippet of the error when running iostat -En c5t60060E8007C50E000030C50E00001067d0 Soft Errors: 0 Hard ...
0
votes
2answers
244 views

What does disk label mean?

What does the concept of disk label mean? Does it mean the same as partition table type (MBR, GPT, loop, etc)? (as I suspected from the following output of parted, and in my previous post) Or does ...
0
votes
0answers
25 views

Unable to find disk space usage [duplicate]

These are the 10 heaviest directories on the system, ubuntu@ip-172-31-25-207:/$ sudo du -hs * | sort -nr | head -n10 360M lib 172M opt 172M boot 172K tmp 41M run 29G var 28M home 16M bin ...