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

learn more… | top users | synonyms

0
votes
1answer
27 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
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 ...
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 ...
0
votes
0answers
26 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
36 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
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
50 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
42 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 ...
4
votes
1answer
73 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
24 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
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 ...
1
vote
1answer
149 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
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
19 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
130 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
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: $ ...
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 ...
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 ...
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
99 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
82 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
43 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 > ...
1
vote
2answers
95 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 ...
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
0answers
188 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 ...
2
votes
1answer
38 views

Wipe a Solaris Disk

Looking for something similar to Eraser for Solaris 9-10-11 Anything?
0
votes
1answer
33 views

Broken disk size after incomplete dd operation

Once I was writing an ISO image into my USB disk using dd, I mistakenly pulled it out, and now it has only 10 MB of size. The correct size is 32 GB. Note that this smaller size is for the whole USB ...
2
votes
1answer
65 views

EXT filesystem family: Why does the first superblock start at offset 1024?

I was brushing up and diving deeper into filesystem anatomy and in numerous resources it is said to be a requirement that the very first superblock start at an offset of 1024 bytes. I started looking ...
1
vote
0answers
31 views

Specific question about “/mnt”: /mnt is not showing the disk space [duplicate]

The disk space showing from "df -h" and "du -sch ./*" seems different for "/mnt". Can somebody help me in finding the probable reason? =============================== #df -h Filesystem ...
0
votes
1answer
139 views

How do I pass options to forcefsck?

I am trying to run a one time disk check at bootup by using /forcefsck but I would like to pass some of the FSCK options such as y, c, f, and v. I have tried inserting these in the file but I seems to ...
1
vote
2answers
57 views

The Deny the permission of mounting any drives to a user

I'm using Linux Mint 17.2 Cinnamon. There are multiple partitions on /dev/sda. /dev/sda1 is where the system resides, /dev/sda2, ..., /dev/sdaX are NTFS partitions. There are two users admin and ...
2
votes
2answers
370 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 ...
-2
votes
1answer
29 views

Official resources about disc management on linux / distributions [closed]

My question is about official linux and common distributions (e.g. fedora/debian) on learning disk management in practice on linux / linux distributions. The layout, may be including the file system, ...
1
vote
1answer
63 views

Deleted boot partition accidentally with gpart

I just typed gpart delete -i 1 ada0 when I was supposed to write gpart delete -i 1 ada1 and unfortunately typed reboot before I noticed my mistake. The disk ada0 had the default GPT layout that ...
3
votes
2answers
120 views

how can I sync a specific device? [duplicate]

Is there a way to sync a specific device in Linux? This would be used to ensure that, e.g., writes to a USB thumb drive have taken place without waiting for queued writes from a video processing job ...
2
votes
2answers
269 views

How to construct a GPT-only partition table on Linux?

All of the tools I've tried until now were only capable to create a dual (GPT & MBR) partition table, where the first 4 of the GPT partitions were mirrored to a compatible MBR partition. This is ...
0
votes
0answers
55 views

CloneZilla, does exist a simpler method?

While browsing the web for backing up my disk, I often see CloneZilla in the results. As a beginner with Linux, the process seems tricky to me (Live USB, etc). Note: I plan to back up my whole disk ...
0
votes
0answers
49 views

How do I identify which disk(s) make up a vxfs disk group?

In case it matters, system in question is Solaris installed on SPARC. System contains two HDDs, same make/model/capacity. On one HDD are the root and var partitions/slices. /etc/mnttab shows me that ...
1
vote
0answers
59 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
0answers
96 views

Disk configuration options, what can affect performance

I have 2 disks, the same model and vendor, first one , probably performs faster. We do write into multiple files. Can you compare 2 configurations and tell what can affect performance? 1. (faster) ...