Questions tagged [disk]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
5 views

SSD not found anymore (not listed by parted, nor lsblk etc, but bus found in lshw)

I have a dual-boot Windows 10 / Ubuntu 18.04 on my laptop (HP Omen 15-5000 NF) with a PCI-e SSD (I think so). After putting my Windows in sleep mode, it was taking forever so I hard switched it off, ...
1
vote
0answers
15 views

LVM misalignment: lvcreate causes alignment inconsistency

When creating a logical volume using the following commands the kernel log tells me there is some misalignment going on: $ sudo vgcreate shinymarengo --dataalignment 1M /dev/sda /dev/sdb /dev/sdc ...
0
votes
0answers
8 views

how to increase the size of the partition /dev/vda2, space iss available on the disk

I am new to the Linux, and running a SLE 15 sp1 on VM machine, the disk space is available but I am unable to assign it to the /dev/vda2 partition. $:/tmp # fdisk -l GPT PMBR size mismatch (...
0
votes
1answer
24 views

Resume rsync transfer after failure?

I'm transfering the content from one smaller partition to another larger using rsync -vacHS --progress /oldPartMountPoint/ /newPartMountPoint/. The data is large ~1TB, I left it overnight but at the ...
0
votes
0answers
19 views

how to repair OS with xfs file system

we have rhel machine version 7.2 after some testing , we understand that OS file system became corrupted and we want to use with xfs_repir in order to repair the disk /dev/sda what the procedure ...
0
votes
0answers
20 views

Linux still sees drive with old stats

I have Linux vm which is hosted on Hyper-V that has attached ISCSI drive over the network shared from NAS device. Last night I mounted the volume using mount /dev/sdb /mydrive pasted some files, ...
0
votes
2answers
43 views

Checking free space under specific directory

Introduction In Gnu/Linux we have some mount-points, like: /mountpoint1 /xyz/abc /root etc. It is possible that files and directories under /mountpoint1 belongs to another volume (doesn't matter ...
0
votes
0answers
8 views

How to set large disk to vagrant server?

I installed plugin as: vagrant plugin install vagrant-disksize Config Vagrantfile as: Vagrant.configure("2") do |config| config.vm.box = "centos/7" config.disksize.size = '80GB' config.vm....
-2
votes
2answers
46 views

Linux and memory buff/cache and disk storage

I want to ask question about the memory buff/cache lets say we have Linux machine with disk , and some application that wrote data to disk /var/data from my understanding when application wrote ...
1
vote
0answers
38 views

Can't mount NTFS drive as root, but can as a user? (CentOS 7.6, MATE desktop)

I am not an expert, but this really baffles me: I have installed CentOS with MATE desktop and updated everything to latest using yum update. This is a dual boot machine with CentOS on a separate HDD. ...
3
votes
1answer
55 views

No space left on device Oracle Linux

My Oracle Linux Machine is complaining that there is no space left on device. I ran some commands to see disk utilization and Inode utilization. Can anyone tell me if this looks right? dev/sda2 doesn'...
0
votes
0answers
20 views

partitioning old NTFS hdd

I am using Ubuntu 18.4 and i have a 4 disk NAS. I found an old hdd that i thought i'd install for a bit of extra space. When i run fdisk -l the disk is listed as follows Disk /dev/sdd: 931.5 GiB, ...
0
votes
0answers
43 views

ex USB hard disk now shows as character device, I need it to be block device

I had an external (USB) hard disk as part of my RAID5 array, now I want to put that drive inside the computer, after I added extra SATA ports internally. I removed the (USB) drive from the RAID array,...
0
votes
1answer
24 views

disk usage + dialog = graphic interface for disk usage vs disk capacity?

I wonder if it is possible to use dialog gauge option to create a graphic displaying the percentage of disk used vs disk capacity? And if so, how could I do it? Generically speaking, how can I use ...
-1
votes
2answers
83 views

Downloading and writing a text file onto tmpfs is slower than writing to disk, why?

I have a tmpfs named /rtmp/ that has 1GB of RAM allocated to it on Ubuntu OS. Using a bash script, I am testing to see if it is faster using to write a small text file to the hard disk or if it is ...
0
votes
0answers
24 views

What is the suggested I/O scheduler to improve disk performance on HDFS file-system

What is the recommended I/O scheduler for HDFS file-system we have hadoop cluster with datanodes machines and we want to know the right configuration for I/O scheduler I/O scheduling in Linux ...
0
votes
2answers
19 views

How to fix if I received mount: /dev/vgname/lvname: can't read superblock for the local filesystem?

I received an incident when I was trying to do mount -a . I was getting the below error. So how to fix this issue? mount: /dev/vgname/lvname: can't read superblock
0
votes
1answer
27 views

Failed PV in VG unable to break mirrors

I have a linux (fedora 30) machine with a single VG and multiple mirrored LVs. I had the LVs mirrored on two PVs but one PV failed and I wanted to move from 2TB PVs to 4TB PVs anyway so I added a new ...
1
vote
2answers
151 views

Accidentally run dd on my main drive

I accidentally run dd if=image.img of=/dev/sda instead of /dev/sdb and sda is my main partition. When i realised i misstyped it i immediately stopped the process with CTRL+C, so it run only for like 2 ...
0
votes
1answer
81 views

Repair corrupted tar.gz file

Alright so I'm trying to extract a Google Takeout archive, extension is tar.gz and the file command says gzip compressed data. The archive is split into 11 tar.gz files. The 6th tar.gz file is ...
0
votes
0answers
24 views

Disk version is not getting displayed from lshw

I am working on a project where I am fetching Disk information on Linux. For that I am using lshw utility. I get the disk version field in Ubuntu 18.04 which is using lshw version 2.18. But For ...
0
votes
0answers
24 views

How to get info on disk drives with powershell

Is it not possible to install Get-Disk on Linux? PS /home/thufir/powershell> PS /home/thufir/powershell> Get-Module -ListAvailable Directory: /home/thufir/.local/share/powershell/Modules ...
0
votes
0answers
30 views

Centos 7. I want turn my extra internal disk OFF, and make sure they only ON - when I need it

It's look like i have zero control on my machine. i want my disk go to sleep. ( i have several ). i go to DISKS ( on my Centos 7 ). 1. UNMOUNT them. 2. Put them to sleep. but for some reason after ...
0
votes
0answers
24 views

/proc/diskstats discard entries

I had a requirement to check for the discarded sectors from the linux disk system using /proc/diskstats. Currently when i try: cat /proc/diskstats I get all the details - but the last 4 entires (...
1
vote
2answers
120 views

Switching HDD sector size to 4096 bytes

I have some HDD disk which has 4096 physical sector size and 512 bytes logical size. It is SATA disk. Now I'd like to use 4kiB in Linux as a logical also sector size - not 512 bytes one. How can I ...
1
vote
1answer
51 views

A good way how to backup user data in CentOS?

I need to back up my data and I have not found a good way so far. Just say I have 1 TB of a non-system disk with 50-100 GB of user data (binary files, source code, images, etc.). And another big disk,...
0
votes
1answer
207 views

No space left on device, when my device is 30% full! Ubuntu 18.04.3 LTS

I have a device (2 TB SSD NTFS formatted) which isn't full. Is working fine on windows (dual boot), but causes this issue on ubuntu. The device is /media/yoni/4692E49292E4882F df -Thi output: (...
-1
votes
1answer
32 views

Linux Server is out of space and unable to execute and command

I am login to the Linux terminal and the disk space got full now I am not unable to execute any the command and any other user not able to login on sever what can be done In this case ?
0
votes
0answers
127 views

FAILED Result: hostbyte=DID_SOFT_ERROR driverbyte=DRIVER_OK

What does it mean DID_SOFT_ERROR? According to kernel source, it defined: #define DID_SOFT_ERROR 0x0b /* The low level driver just wish a retry */ https://github.com/torvalds/linux/blob/...
1
vote
0answers
29 views

Wipe disk with bad sectors

I'm trying to wipe a bad disk using dd with the following command sudo dd if=/dev/zero of=/dev/sda status=progress, but it exits prematurely and outputs the following: 13160186368 bytes (13 GB, 12 ...
2
votes
1answer
25 views

How to test a disk that does not support SMART for errors?

I have a Raspberry Pi (running Raspbian) that is booting from a microSD card. Since it's acting as a home server, naturally I want to monitor the microSD card for errors. Unfortunately though, microSD ...
1
vote
2answers
62 views

How to correctly get the UUID of the entire disk?

As UUID's are assigned in partitioning phase (by software), there is no UUID available for entire disk. However, /dev/disk/by-id/ contains promising information for the same purpose. We can get the "...
1
vote
1answer
28 views

Confused about RAID 1 capacity

Is it true that a RAID 1 can only be as big as the smallest disk? If it is true, then ten 1GB disks in RAID 1 should only amount for only 1GB of total available space. Is it true that RAID 1 capacity ...
0
votes
1answer
100 views

tune2fs -l /dev/nvme0n1p1, Couldn't find valid filesystem superblock

I'm following https://wiki.ubuntu.com/DebuggingKernelSuspend to debug a kernel suspend bug. There's a section which asks me to get the current fsck settings for a partition. I think my partition is /...
1
vote
1answer
52 views

Getting an error “appear to have very similar superblocks”. Ways to fix it?

So something strange is with my partitions. root@rescue ~ # mdadm -A --scan mdadm: WARNING /dev/sdb1 and /dev/sdb appear to have very similar superblocks. If they are really different, please --...
0
votes
1answer
42 views

How to expand my primary partition?

I am running out of space on my primary NVME drive that holds my Ubuntu install. Using the Ubuntu Disks application, I cannot resize the partition, despite there being 95GB of free space on the drive. ...
0
votes
0answers
41 views

is it right to mix diff file system between kafka machines

we have kafka cluster with 3 machines each kafka machine use disk for DATA , and each disk is 20TB size the file system on the disk is ext4 now we want to add additional 5 kafka machines but to ...
1
vote
1answer
39 views

What is the right mkfs cli in order to create xfs file-system on huge disk

We need to create xfs file-system on kafka disk The special thing about kafka disk is the disk size kafka disk have 20TB size in our case I not sure about the following mkfs , but I need advice to ...
0
votes
0answers
28 views

Is it possible to regenerate /boot partition of a LUKS drive?

I use Debian. For learning purposes I want to encrypt the whole hard drive. But let's say I am afraid of evil maid attacks so I want to bring my /boot partition with me always, and I put a boot ...
1
vote
0answers
74 views

Linux Mint doesn't recognize Disk

i have a lenovo ideapad s340 with win 10. When I install linux Mint the installer doesn't recognize the ssd. I found online that the problem is the sata Raid option . So i need to switch from Raid to ...
0
votes
1answer
43 views

Cron loop best practices

I wrote a script that loops through every file in a folder and performs a simple operation on each file. That folder will almost always be empty and only occasionally contain a file, but I'd like the ...
1
vote
1answer
98 views

Calculate disk Byte size exclusively from /sys/block/

If we want to get the byte size of a block device or one of its partitions without calling any binary, and in a way that will always work, is it correct to do: /sys/block/sda/sda1/size or /sys/block/...
0
votes
0answers
24 views

How to check disks health in Hadoop clusters and Kafka machines

We have many Hadoop clusters. Each datanode holds many disks (between 10 and 20). All disks are used for HDFS. We use well-known tools like smartctl to check the disks. We want to know if there is a ...
0
votes
1answer
46 views

is it possible to increase disk size by using/adding another clean disk

we have the following disks from lsblk , all disks are not lvm sdc 8:32 0 80G 0 disk /var/hadoop1 sdd 8:48 0 80G 0 disk /var/hadoop2 sde 8:64 ...
36
votes
14answers
5k views

How can I speed up secure erasing of a disk?

I need to securely erase harddisks from time to time and have used a variety of tools to do this: cat /dev/zero > /dev/disk cat /dev/urandom > /dev/disk shred badblocks -w DBAN All of these ...
0
votes
3answers
53 views

Filesystem problem

I have a server on Hetzner. It theoretically has 3Tb of space But if I run df -h I see this: Filesystem Size Used Avail Use% Mounted on udev 7.7G 0 7.7G 0% /dev 213....
0
votes
2answers
283 views

How to increase the size of extended partition with free unallocated disk space to the right of it using fdisk/parted utilities?

# parted /dev/vda print free Model: Virtio Block Device (virtblk) Disk /dev/vda: 137GB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File ...
0
votes
1answer
76 views

(k)ubuntu ssd and hdd. Hdd is read only

I've a laptop with a 128GB SSD and a 1TB HDD. I just installed kubuntu on it and mounted my SSD on / and my HDD on /usr But now when I want to install a Steam game om the HDD, it keeps ...
0
votes
0answers
29 views

Wanted to check Disk IO Per process/services - per-proc IOP's (no of reads, no of writes), rw wait time, disk busy ness, inodes

I am looking for DISK IO per process/services in the linux machine : need following details: per-proc IOP's (no of reads, no of writes) rw wait time disk busy ness inodes I do not ...
-1
votes
1answer
87 views

accidently used dd on the wrong drive

i was trying to make a bootable usb with disk dump command in ubuntu, but i typed the wrong device name and hit enter so it started the process on my external hard drive , but after a few seconds i ...

1
2 3 4 5
12