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

learn more… | top users | synonyms

0
votes
1answer
30 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 ...
2
votes
1answer
13 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
33 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
35 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" ...
37
votes
11answers
64k 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
2k views

“Spare” disk in a 2-disk mdadm RAID1 array?

I recently had a RAID1 volume fail. It had three primary partitions in it, all participating in separate, but similarly configured VGs. This configuration comes from the fact that the machine is ...
2
votes
1answer
892 views

Problem creating raw disk image and mounting it in rescue mode to QEMU

I am trying to create booting system from raw disk image. This is what I do: $ dd if=/dev/zero of=system2.img bs=1M count=6000 6000+0 records in 6000+0 records out 6291456000 bytes (6.3 GB) copied, ...
0
votes
1answer
28 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 ...
1
vote
0answers
16 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 ...
6
votes
2answers
4k views

Eject / safely remove vs umount

I'm using Ubuntu 12.04, and when I rigth click on a my flash drive icon (in the Unity left bar) I get two options that have me confused: eject and safely remove. The closer I came to answer was this ...
2
votes
1answer
721 views

CentOS 5 - hdparm - how to set DMA mode

I'm running CentOS 5 with a PATA hard drive. I've used hdparm to tune the hard disk for better performance, but there are 2 settings that don't work: hdparm -M 254 /dev/hda gives the error ...
2
votes
5answers
6k views

What is the /dev/disk/by-uuid/ and why does it use all free space on the disk

I have the following Debian that works in Virtual Box: $ uname -a Linux debian 3.2.0-4-amd64 #1 SMP Debian 3.2.51-1 x86_64 GNU/Linux Recently I notice that I don't have any free space: $ df ...
1
vote
1answer
39 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
38 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
167 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 ...
1
vote
1answer
23 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
9 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 ...
2
votes
2answers
27 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
51 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
29 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
43 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 ...
7
votes
2answers
1k views

FreeBSD 10 trace disk activity

Is there any way to find some process which is periodically writing to disk (according to hdd led) on FreeBSD 10 with ZFS (maybe turn ZFS into verbose logging mode)? lsof and other instantly ...
4
votes
1answer
74 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
52 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
26 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 ...
1
vote
2answers
5k views

Stat disk drives wihout lsblk?

I have a minimalist busybox system that I was recently trying to use, and I found a small problem: it has no lsblk command. Is there another command to list disks, partitions, and sizes like lsblk? ...
0
votes
0answers
99 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
40 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 ...
4
votes
2answers
5k views

recovering ext4 partition after dd'ing over start of HD

I accidentally used dd and wrote over the first 208MB of my external disk. What I wrote over is a partition on its own (Debian nestinstaller) so what I see now is not my old (now damaged) ext4 ...
3
votes
3answers
133 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 ...
0
votes
0answers
24 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
20 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 ...
2
votes
3answers
45 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: $ ...
2
votes
2answers
379 views

Parallel vs Distributed vs Traditional File system

I am trying to understand the differences between these three file system at a very basic level. Distributed FS: HDFS Parallel FS : Lustre Traditional FS : ext4/ext3/ NTFS/FAT etc. I want to ...
1
vote
0answers
20 views

GNOME Disks Sample Size

I'm trying to use GNOME Disks to test my disk performance and, according to my previous experience, I'd like to set the sample size to 8K, 16K and 32K. However, I see the minimal sample size in its ...
2
votes
0answers
195 views

Disk I/O latency using /proc/vmstat file

How do I calculate disk read and write latency in Linux? Is it possible to do the calculation using /proc file system? I am using iostat and vmstat command. But I do not understand how the ...
1
vote
2answers
97 views

How to get disk name that contains a specific partition

If I know that a partition is for example /dev/sda1 how can I get the disk name (/dev/sda in this case) that contains the partition ? The output should be only a path to disk (like /dev/sda). It ...
0
votes
0answers
33 views

How do I interpret GNOME Disks' benchmark results?

Having ordered a new USB drive for my parents, I decided to use the Benchmark option in GNOME Disks. The results were interesting: A third run with a sample size (odd phrasing!) of 100 MB gave ...
0
votes
1answer
11 views

Are there any caveats when restoring a backup to a larger disk than the original disk with Clonezilla?

I have a Clonezilla image of a 250 GB disk. Are there any caveats or downsides if I would restore this to a 500 GB disk? (I will of course not be able to use more than the 250 GB on the new disk, but ...
4
votes
3answers
11k views

Can I create a software RAID 1 with one device

I have a single disk that I want to create a Mirror of, Lets call this disk sda I have just bought another identicle size disk, which we can call sdb. sda and sdb have one partition called sda1 and ...
0
votes
1answer
79 views

How can I zero the unused blocks on my filesystem in order to minimize the compressed disk image size? [duplicate]

If I dd my disk and compress the image with lzma or lzo the image is still big. The partition is 10GB used, 90GB available. But the image still around 20GB. I believe that is because I have copied ...
0
votes
3answers
54 views

How to check disks at startup (alternative to chkdsk c: /f on Windows)

How to check my 2 disks at startup (they're in BIOS RAID1)? I am on Mint 17.2. computer user # blkid /dev/sda1: UUID="6042-870C" TYPE="vfat" /dev/sda2: UUID="2ef42e6f-4987-46e5-aca9-872fd70a9f9e" ...
0
votes
2answers
103 views

Debian Linux root disk getting full, need to transfer /var folder to another disk

One of the disks got out of space, however other disk is nearly empty. Need suggestions how to transfer biggest folder(/var) to the other disk and mount at /var. For now /var folder was in / ...
1
vote
0answers
20 views

corrupted sd card [closed]

I found out that my micro sdhc card (Kingston 32 GB micro sdhc class 10) stopped working properly. The SD card should have 32 GB but it reports 2TB. The issue seams to be in messed up number of ...
2
votes
0answers
83 views

LVM partition not mounting

There was a drive failure on a disk in a RAID1 configuration. I removed the bad disk and reconfigured the RAID1 to only use the good disk. When I reboot the machine there are missing LVM partitions. ...
1
vote
0answers
46 views

sysv and unknown partition table?

We have disk about 1985, It has a Unix.But we didn't know type of Unix.I did the following step : dd if=/dev/sdc of./all_of_disk.iso #sdc is the given disk Then : hexdump -C all_of_disk.iso > ...
20
votes
8answers
33k views

How to determine which sd* is usb? [duplicate]

Possible Duplicate: How to know if /dev/sdX is a connected USB or HDD? The output of ls /dev/sd* on my system is - sda sda1 sda2 sda3 sda4 sda5 sda6 sda7 sdb sdc sdc1 sdc2 ...
2
votes
1answer
2k views

How to get total Read and write IOPS in linux

How do i get Read and write IOPS separately in Linux? using command line or in a programmatic way. i am installed sysstat package. Please tel me how do i calculate separately using sysstat package ...
2
votes
1answer
38 views

Wipe a Solaris Disk

Looking for something similar to Eraser for Solaris 9-10-11 Anything?