Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [disk]

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

0
votes
2answers
2k views

How to calculate disk IO load percentage?

The following is net-snmp output and as you see, diskIOLA is not availabe: SNMP table: UCD-DISKIO-MIB::diskIOTable diskIOIndex diskIODevice diskIONRead diskIONWritten diskIOReads diskIOWrites ...
1
vote
0answers
27 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....
514
votes
37answers
536k views

Tracking down where disk space has gone on Linux?

When administering Linux systems I often find myself struggling to track down the culprit after a partition goes full. I normally use du / | sort -nr but on a large filesystem this takes a long time ...
0
votes
2answers
4k views

Copying files from one disk to another disk

I want to copy all contents from one disk to another HDD. I thought the cp command might do the trick. cp -aR /dev/nvme0n1p1/* /dev/sda1/ /dev/nvme01np1 is the old disk that I want its content to be ...
-1
votes
0answers
22 views

How to extend disk partition size? [closed]

I have free space on my disk. Previously there was been Windows. Now I want to extend my Ubuntu partition using all free space on my disk.
6
votes
3answers
338 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
20 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....
3
votes
1answer
2k views

How to mount a disk at startup in Ubuntu? Disks tool isn't working

I go into the Disks tool, and select the drive and select "mount at startup" and "show user interface", but it doesn't do it at reboot, ever. My Steam game library is on there so its difficult to go ...
0
votes
0answers
15 views

Windows 10/Linux Mint Sylvia Dual boot in 2 Physical disks. Grub not starting [closed]

I need to make this combination works. I have installed on my first disk (sda) windows 10. In the following, an example of output from windows terminal, I also have the whole full output of boot-...
1
vote
0answers
18 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
21 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
29 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
35 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
20 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
638 views

USB flash disk not mounting/showing and gparted and commands didn't output while connecting the USB drive - UBUNTU 16.04

I have a 8GB San Disk Cruzer Blade flash disk. When I connected it, it is not mounting. So I opened the Disks; it shows: Then I tried opening Gparted; it never finishes loading. When I realised this ...
1
vote
0answers
15 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
39 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 ...
89
votes
12answers
166k views

List partition labels from the command line

Is there a command that will list all partitions along with their labels? sudo fdisk -l and sudo parted -l don't show labels by default. EDIT: (as per comment below) I'm talking about ext2 labels - ...
0
votes
1answer
913 views

Mount new disk to existing root mountpoint using mhddfs (merging filesystems)

I have a new disk on server (sdb) and I want to mount it to existing root mountpoint (sda1 mounted on /) to merge it. There is an utility called mhddfs which is doing exactly what I want. But the ...
1
vote
0answers
25 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
42 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 ...
2
votes
2answers
57 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
1answer
937 views

Disable Page Cache for NFS protocol

I have an NFS client that perform READ FILE operations from a shared NFS server. On the server, I monitor FILE READ operations. The problem is when I read the same file (with different users) on the ...
-1
votes
1answer
282 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] ...
0
votes
1answer
36 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
22 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 ...
5
votes
2answers
94 views

Limit tar read speed

I'm using tar do make backups of a machine. But, it is using a lot of I/O and slows down the whole machine. So, is there a way to limit the read speed of tar? I know about pv, but it limit only the ...
0
votes
2answers
44 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
50 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
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 ...
1
vote
1answer
53 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
1answer
2k views

Mount: wrong fs type, bad option, bad superblock on /dev/mapper/VolGroup-lv_home

When I mount my /dev/VolGroup/lv_home there get error: [root@localhost VolGroup]# mount /dev/VolGroup/lv_home /home/ Mount: wrong fs type, bad option, bad superblock on /dev/mapper/VolGroup-lv_home,  ...
0
votes
2answers
51 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 ...
0
votes
0answers
38 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
54 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
3answers
347 views

smartd only send email on attribute change

I setup smartd to send me mail reports in case my disks fail. Unfortunately I am being spammed each day by the same attribute with the same (not changing) value: The following warning/error was ...
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 ...
3
votes
2answers
15k views

where can I find the disk latency using iostat ( await, svctm, %util )?

I'm using Redhat Linux 6.5 and would like to see the disk latencies for the used disks. Using iostat I get the columns await and svctm ( including %util ). But according to the man page of iostat ...
1
vote
2answers
822 views

Can I use dd to move my system to another partition?

Currently, my whole system is located at the end of my hdd. I'd like to move that data to the beginning and still have booting and other details working. dd seems to do exactly what I want (to copy ...
2
votes
2answers
493 views

List partition type GUID's for all disks from command line?

I need to list the partition type GUID's from the command line. Note: This is not the same as the partition UUID. Basically I'm needing to search for all disks that have the Ceph OSD type GUID: ...
1
vote
1answer
30 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 ...
0
votes
0answers
70 views

CloneZilla, does exist a simpler method?

While browsing the web for backing up my disk, I often see CloneZilla in the results. The process seems tricky to me (Live USB, etc). Note: I plan to back up my whole disk (system, root, home, etc.). ...
1
vote
0answers
2k views

Very slow file operation

I recently rebuild a machine with Centos 5.8 with a brand new disk. This machine is old and has been running 5.8 for a long period with no issues so the only thing which changed recently is the new ...
2
votes
1answer
127 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 ...
0
votes
2answers
179 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
2answers
119 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 ...