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

learn more… | top users | synonyms

1
vote
1answer
17 views

What are the pros and cons of badblock's two non-destructive tests?

I use badblocks to test my 32GB class-10 microSD card that I use to boot my RPi. I already have a functioning file system on it, so I don't want to scan it with the -w option (destructive read-write ...
1
vote
1answer
35 views

Is there a way to monitor disk i/o patterns? (i.e. random or sequential i/o?)

While an application is running, I can monitor disk bandwidth usage using linux tools including dstat. Now I'd like to know how many sequential or random disk I/Os are occurring in the system. Does ...
1
vote
0answers
20 views

Determine affected file given logical block number [duplicate]

Given the logical block number from these log lines in /var/log/messages, is there a way to determine what file was affected? ...Buffer I/O error on device sdd1, logical block 203953715 ...lost page ...
2
votes
0answers
14 views

How to shrink sda disk with XFS filesystem

We have a RHEL 7 server with 2 disks (sda and sdb). Our /, /var/log and swap are on sda, /var is on sdb. We use LVM and XFS. sda is too big (160 GB) and we would like to shrink it to 40 GB. We can ...
7
votes
1answer
99 views

Command to generate /dev/disk/-by-path/ name on a system without udev daemon

On most Linux systems udev usually creates symlinks in /dev/disk/by-uuid/ /dev/disk/by-path/ which point to actual device nodes (/dev/sda, /dev/sdb, etc). I don't have udev on my system, and I ...
0
votes
0answers
22 views

Ubuntu trusty format disk slower than RHEL7?

I observed that disk formatting is much slower in Ubuntu than in RHEL7. Does anybody know why that is? EDIT: Forgot to mention, I'm formatting the disk with ext4. Using mke2fs
1
vote
1answer
27 views

How to know what exactly is being written or which process is keeping my storage disk busy?

I have a server , which has gone rogue(not really), i ran nmon and saw that its Disk utilization is BAD, its 100% busy writing!! Here is the output : Can someone tell me what is keeping my disk ...
0
votes
1answer
55 views

Struggling to remove a faulted ZFS pool on Centos 7 using zpool

I have been doing lots of testing of ZFS recently on a new server. I'm ready to move this server into production now, but I'm wondering if I can get rid of my old 'faulted' diskpools before I do, ...
4
votes
4answers
829 views

What is this dd if=/dev/zero of=/dev/sda do

Could someone help me understand what I got? dd if=/dev/zero of=/dev/sda bs=4096 count=4096 Q: Why specifically 4096 for count? dd if=/dev/zero of=/dev/sda bs=512 count=4096 seek=$(expr blockdev ...
0
votes
0answers
20 views

sfdisk does not create block files for corresponding partition

I have partitioned my disk using sfdisk. And the (7)partitions got created successfully. sfdisk -l also lists all the (7) partitions which I configured. But the strange thing is, the corresponding ...
3
votes
1answer
36 views

Why is the block size of a partition smaller than that of the underlying disk?

My understanding is that the block (in the phrase "block size") is like an IO buffer, or minimum IO size for a device. Since partitions are built on top of physical devices, how can they have blocks ...
1
vote
4answers
129 views

How to get hard disk information on linux terminal? [duplicate]

We can get CPU information using lscpu command, is there any command to get hard disk information on Linux terminal, in a similar way?
1
vote
1answer
34 views

Load disk driver during Debian installation

I have a server with all disks connected to a controller LSI 3008 IT (non-RAID mode). Unfortunately disks are not detected during installation of Debian Wheezy. Nevertheless the controller can be ...
0
votes
1answer
57 views

Replacing a failed disk in a ZFS pool

I've got a large ZFS disk pool; 3 nested RAIDZ2 vdevs. I am documenting the process for replacing a failed disk for my colleagues and so simulated a disk failure by removing a disk from the host. ...
0
votes
1answer
20 views

Checking for a failed drive in a ZFS pool

I'm testing a large ZFS pool at the minute and am documenting the process for replacing a failed drive before our environment moves into production. I've built the ZFS volume 'diskpool', which is 3 ...
2
votes
1answer
42 views

Move free space from end of the drive to first partition with gparted

I am in a frustrating situation - no matter how I try, gparted won't let me assign the empty space to the first partition: The middle partition is blocking me from expanding /dev/sda1. I need to ...
0
votes
0answers
31 views

Random write on DISK benchmark shows high read rate on iostat

I am running a random write benchmark directly on some disks (HDD & SDD) and I am getting some weird output data on the iostat monitor. Besides the usual write rate, there is a read rate that I ...
0
votes
0answers
11 views

How do I increase a partition size of a virtual disk?

I created a file using dd if=/dev/zero of=virt_disk bs=1024M count=50. I then formatted this is a vfat file system. Now I want to extend this. I added 5 more MiB of space as dd if=/dev/zero bs=1024M ...
0
votes
0answers
42 views

linux + resize2fs with Operation not permitted error

I am trying to increase the /opt to 65g but I get the following message Operation not permitted While trying to add group #8256 what is the resolution for that? root@linux:/opt # lvresize -L 65g ...
1
vote
1answer
35 views

Correspondence between SCSI device entries in /sys and the disks in /dev

Under the /sys/class/scsi_device folder I have the following: root@linux01:/sys/class/scsi_device # ls 1:0:0:0 2:0:0:0 2:0:1:0 3:0:0:0 How can I know how each of these devices is related to ...
1
vote
2answers
31 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 ...
0
votes
0answers
23 views

monitoring block access to disk

I am looking for a way to monitor access to disk blocks, and to monitor the access as a bitmap of blocks. I also need the capability to freeze (and queue) the device block access (and also to ...
1
vote
1answer
51 views

Where to tar entire USB flash drives?

I want to do all my archiving and compression on the command line. I have a USB flash drive located at /dev/disk/by-label/SanDiskData (which links to /dev/sdc1). I thought I could simply do: $ cd ...
0
votes
1answer
48 views

how do I make sda1 or sdb1 bigger

I'm working with Google Cloud services. After I've cloned a VM, I type lsblk after ssh'ing into it and can see that the partition sda1 is only 10 GB, which is only 10% of what I paid for. I am not a ...
1
vote
1answer
39 views

How to move image disk of a filesystem to a partition [closed]

I have a linux.img file with Arch Linux installed on it. I use the linux.img file to boot Archlinux on virtual machine. I got a new PC and will like to move the linux.img to new PC and boot it from a ...
2
votes
1answer
70 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 ...
3
votes
0answers
46 views

Use a “Friendly” Label on Drives or Partitions in FreeBSD

Maybe I am missing this and it's really simple, but I cannot figure out how to label a BSD disk. I have looked at tunefs or gpart and even disklabel, however none do what I am looking for - I don't ...
0
votes
1answer
41 views

Only send email if disk usages exceeds 80%

My script is: abc=$(df -h | sed s/%//g | awk '{ if($5 > 80) print "Alert "$0;}' | awk '{print $2,$6}') \ && echo -e "Dear All, \n\n$abc\n\nABC" \ | mailx -s "Disk partition" ...
1
vote
0answers
28 views

iostat ( column svctm is not trusted any more ) what to use instead?

I'm running a Linux Server with "Oracle Linux Server release 6.5" which is pretty much the same as RedHat Version. I need to determine the latency on my disk devices. The man page of the iostat ...
0
votes
1answer
36 views

Where is the space from LVM partitions?

Additionally, output from my df -h command and fdisk -l command. Where and how could I utilize space from my /dev/sda4 and /dev/sda5 partitions? I suspect /dev/mapper/fedora-root to be my LVM ...
0
votes
1answer
36 views

Can't boot into my Linux partition--disk is supposedly at fault, but scans show no errors

I'm trying to boot into my Linux partition, but receive this message: Welcome to emergency mode! After logging in, type "journalctl -xb" to view system logs, "systemctl reboot" to reboot, "systemctl ...
1
vote
1answer
50 views

Read ahead setting on Solaris

How to get the current read ahead setting on Solaris? On Linux it can be retrieved like this: # echo $(($(blockdev --getra /dev/sda)*512/1024)) (Assuming that blockdev always returns the read-head ...
2
votes
1answer
57 views

How to find unallocated disk partition with parted or another tool?

I'm using Fedora server and I have an unused partition on /dev/sda. How can I find it with parted or another command? I can only list mounted and used partitions.
1
vote
1answer
37 views

Is host-to-host file transfer possible using USB Type-C?

I'm doing a warranty replacement on my Chromebook Pixel 2, and want to transfer data from one laptop to another. The Pixel 2 has two USB type-C ports. I'm running Arch Linux on the old one. I'd like ...
0
votes
0answers
12 views

why does SCSI Host value change during reboot?

I have attached a virtual disk to my VM and the Host value changes during reboot. How can we bind it to a particular value? Host: scsi2 Channel: 00 Id: 00 Lun: 00 or Host: scsi3 Channel: 00 Id: 00 ...
3
votes
2answers
31 views

Installing Linux on hard disk that will be used by another computer with different hardware

I was given a laptop with a totally dead display. I do not want to pay to replace the broken display, but I would like to use the laptop as a server and connect to it via SSH to control it. I have ...
4
votes
2answers
75 views

Is `dd` really necessary to clone a disk? [duplicate]

Almost any tutorial will tell you that to clone a disk on the command line (say, to clone /dev/sda to /dev/sdb) you can use: dd if=/dev/sda of=/dev/sdb ...and some block size options... This reads ...
2
votes
0answers
36 views

unix c-shell : disk checking

im totally new in shell scripting. I have task to simplify an old c shell script. Basically, the script have 10 devices that using hp-ux and i want to check the disk space in each devices. my ...
0
votes
1answer
59 views

Cant mount disks

I have a windows 8 ,ubuntu dual boot system. when i open kali . i cant see any of the hard disk partitions . i receive the following error message . Error mounting /dev/sda1 at ...
3
votes
1answer
86 views

Performance differences when writing into /dev/sda and into /mnt/sda/tempfile

I am testing my new PCI-E SSD in Linux. I am using the following command to test its performance (reference: https://www.thomas-krenn.com/en/wiki/Linux_I/O_Performance_Tests_using_dd) (1) dd ...
0
votes
3answers
67 views

How to get the Serial Number of a disk by corresponding file in linux?

I know that for a disk in linux, we can use commands such as hdparm or smartctl to get its basic information. But for the implementation of these commands, I think all of them are implemented by ...
0
votes
1answer
38 views

inconsistency between format and probe-scsi-all outputs

my platform: SPARC T4-1 Generic_150400-24 sun4v sparc sun4v 1 of the disk is seems different in the output of format when I am on console cli even though relevant disk seems same as others in the ...
0
votes
0answers
114 views

how can I see the uuid of a disk in my system WHEN IS NOT LISTED IN /dev/disk/by-uuid

I have a problem in my system, that I don't understand: there are no disks UUIDs, only partitions UUIDs: ls -al /dev/disk/by-uuid/ total 0 drwxrwxrwx 2 root root 140 Nov 21 20:36 ./ drwxrwxrwx 5 root ...
2
votes
3answers
42 views

Hot Removed SATA drive mount remains

After removing a bay mounted SATA connected drive the kernel will most of the time remove the mount. However, sometimes the mount remains even though the disk has been removed. Is there a way to avoid ...
1
vote
1answer
431 views

WRITE SAME manually zero

With Debian 8 and VMware 6 I am seeing these logged quite a bit: WRITE SAME failed. Manually zeroing messages. Is this something to be concerned about? From searches, it seems its related to the 3.9 ...
0
votes
0answers
26 views

SSD as write target during reads

I have a real-time application which always writes data to a RAID 10 HDD configuration in a sequential manner at around ~50 MB/s. It uses mmap and writing should never be blocked due to waiting I/O. ...
2
votes
1answer
24 views

issue in user Quota creation

I am trying to create a users quota in RHEL-7 with xfs file system. But I am not able do it. The procedure that I followed is as below :- 1) edit /etc/fstab/ /dev/mapper/rhel-root / xfs ...
3
votes
3answers
204 views

how to find the MAX IO a physical disk can support

how to find the MAX IO a physical disk can support? my application id doing IO, i can find the io-disk (Blk_wrtn/s) by using linux commands. but how can i find what is max limit i can reach, i want ...
2
votes
3answers
73 views

How do I mount an image

I am trying to mount a disk image (consisting of MBR, fat, ext4 partitions) so I can modify the layout using gparted. (I am trying to move the partition to a 4M boundary.) I have tried sudo mount img ...
1
vote
2answers
28 views

which unix commands for monitoring disk operating are available?

To do some tests on SSD disk, I need to monitor operations such as number of reads and writes, access timestamp, which address accessed, write policy and so on. I know there is these commands: $ ...