Tagged Questions

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

learn more… | top users | synonyms

2
votes
0answers
14 views

How do I get ata-style IDs in /dev/disk/by-id to work for USB disks?

I have USB drive dock that I'm plugging SATA drives into. The way they show up in /dev/disk/by-id seems to be dependent on whether the drive has a partition table (usb if not, ata if yes). This makes ...
0
votes
0answers
25 views

my harddisk suddenly getting slow

Recently my harddisk segate backup plus getting slow. The files are copying 1kb/s like that. my harddisk size is 1terabyte. and when i run the smartctl test i got this. 1 month back i got found000 ...
1
vote
1answer
27 views

Disk is a bottleneck. Background processes make things worse. How to improve responsiveness?

Often, the bottleneck of my laptop is the disk. When doing some disk-intensive computations, automatically-started background processes like updatedb, find /something etc. kick in, making things even ...
0
votes
1answer
47 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 ...
0
votes
1answer
32 views

getting system level error in solaris system

I am getting below errors, what does it means? Oct 19 01:02:25 amra02 scsi: [ID 107833 kern.warning] WARNING: /pci@7c,0/pci10de,377@f/pci1077,142@0/fp@0,0/disk@w5006016841e00513,0 (sd6): Oct 19 ...
5
votes
3answers
392 views

Why is dd not protected against writing on the active disk ?

I use dd a lot. I live in a contant fear of making a mistake one day, for example writing on sda (computer disk) instead of sdb (USB disk) and then erasing everything I have on my computer. I know dd ...
1
vote
0answers
22 views

Granting access permission to normal user to a logical volume of a volume group [duplicate]

When I need to run a program with direct disk access, like read/write from /dev/sdb, I simply add the user to 'disk' group. In this way we don't need to disclose the root account the the user. However ...
6
votes
1answer
82 views

???? files in ls -l output

I see ghost files in red colour inside some of my directories: [drey@cyan|23:54|~/downloads]ls -la ls: cannot access teamviewer9_linux.deb: No such file or directory total 1318096 drwxrwx--- 1 root ...
1
vote
4answers
176 views

full rootfs on big hardisk, installation or update software not possible

Has anyone seen this issue that can help me solve it? I have got a preinstalled server (Debian GNU/Linux 7.6 (wheezy)), where the disk space was partitioned very badly... :-( The Hardisk is very big ...
1
vote
2answers
67 views

Ubuntu 12.04 constantly out of space [duplicate]

I am having this strange problem of my system running out of space constantly. Just yesterday I cleaned up near 15GB of space and today I see it is out of space. I really don't get it. I know some ...
4
votes
1answer
40 views

dd, seek with one block size, write with another block size

Background Info: Copying some .bin files to an SD card (to be read by an embedded device, no filesystem) Commissioning the card requires some segments to be wiped (i.e. zero'd), and others to have ...
1
vote
2answers
105 views

How to acquire image of disk on Linux computer?

Pertaining to computer forensics, if the suspect's computer (which cannot be removed from the scene), is Linux, can you directly use tools such as dd or dcfldd on his computer to acquire the disk ...
0
votes
0answers
90 views

Journal commit I/O error for Seagate Expansion external USB hard drive

I am using Debian 7.6 (amd64) and for some reason when I am trying to read or write to my Seagate Expansion 1TB external USB drive, I am getting input/output errors ... Here is what the output of ...
1
vote
1answer
191 views

harddisk not recognized / filesystem too large to mount safely on this system / hdparm shows garbage

I have a 4 TB Verbatim external hard disk with ext4. It can be successfully mounted at my Raspberry Pi. I am trying to plug it at my WD Mybook Live Duo device where I have SSH root access. When I ...
0
votes
0answers
52 views

AIX equivalent of Solaris' iostat -E

On Solaris you can use the command iostat -En to view "disk error statistics" as counted by the kernel since the last reboot, where the -n option causes iostat to show "nice" device names. I'm ...
0
votes
0answers
32 views

Calculate Total disk i/o by a single process [duplicate]

I am looking for some tool that will dump total disk I/O by a single process after it ends. So far my finding is :- iotop= It shows i/o per process in real time but does not give total after process ...
0
votes
1answer
211 views

What do these errors mean in sysbench disk test?

I have been running a continuous test of sysbench disk tests on my Linux system that uses compact flash. I am seeing some errors in the output, as shown below. What do these errors mean exactly? Do ...
0
votes
1answer
1k views

How to mount the `D:\` disk of Windows in linux mint? [closed]

I am unable to mount the D:\ disk of windows in linux mint. What to do?
1
vote
0answers
29 views

SMART extended offline test validity

Is it possible for the smartctl -t long /dev/sda to complete without error and still the drive fail? How detrimental to the disk's life expectancy is running the test daily/weekly? Thanks!
1
vote
0answers
29 views

Disk copying with two OS on it

I want to change HDD in my laptop to bigger one. I have installed WIN XP and Mageia Linux and GRUB ver 1 as bootloader. So I want to use such procedure for copying and changing disk: plug new one ...
1
vote
0answers
107 views

Monitoring Disk Latency

We have quite a few physical machines in our environment, yet we have no trending data over a period of time for disk latency statistics. We can easily run the standard iostat commands to see what the ...
6
votes
2answers
162 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 ...
2
votes
0answers
107 views

expanding boot, moving LUKS root

GPT > Partition2 > LUKS > btrfs I need some additional space for my boot volume, so far I did: Shrink my btrfs volume by 250MB. btrfs resize -250M / Shrink the LUKS root volume cryptsetup ...
1
vote
1answer
588 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? ...
1
vote
0answers
54 views

midnight commander: rules for accessing archives through VFS

Midnight Commander uses virtual filesystem (VFS) for displying files, such as contents of a .tar.gz archive, or of .iso image. This is configured in mc.ext with rules such as this one (Open is Enter, ...
1
vote
0answers
44 views

Edit partition of disk part of a ZFS Raid

I've gota strange problem. Since a previous failure from one of my hard drive, I had to replace one of my 4 hdd running in RAIDZ. But since I changed this disk, the last partition of my disk appear ...
1
vote
1answer
265 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 ...
1
vote
1answer
238 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, ...
1
vote
0answers
17 views

Install system to Disk on Chip

I'm looking for an easy way to install linux on a PC104 (x86 no cmov) system with a Disk-on-Chip. It can be a very simple system (BusyBox, etc) or a distro the installs in under 512mb. I just need to ...
1
vote
1answer
79 views

How to find the true disk usage on my Linux box?

I have a linux box on my school's server. When I was trying to install Protocol Buffers, disk usage is reported as exceeded. So I checked my disk usage by two command on my home directory: du -h ...
1
vote
2answers
236 views

start qemu by giving it a path to a linux root

Good evening, I installed ArchLinux on a USB stick, and I would like to boot it in qemu. Unfortunately, most examples I found boot an image (iso..). The stick is definitely bootable as if I restart ...
1
vote
0answers
4 views

Unable to open Windows Disk partitions in solaris 11 [duplicate]

I have recently installed solaris 11, but I am an absolute beginner in unix systems. The only unix like environment I have got myself into before is ubuntu which was quite a bit different from solaris ...
1
vote
2answers
861 views

Disk on key is read only on every computer

I have a 16 GB SanDisk Cruzer Blade Disk-on-key. After a few days of use, it has become write-protected/read-only. When I plug it in, you can see this in my Ubuntu's dmesg: [ 819.003359] usb 2-5: ...
2
votes
0answers
165 views

The proper way to turn off an external sata encolsure?

I have an e-sata external enclosure with a port expander and 4 sata disks in it that I use for periodic backups. I have what I think is a sound method for powering it off, but not sure if it is the ...
3
votes
0answers
218 views

Unable to close a Luks partition

For backup purposes, I have "snapshotted" a LVM partition. This partition was crypted so I have opened this Luks partition (snapshot) in order to do my backup. The problem is that I have forgotten to ...
-1
votes
1answer
53 views

What is a file? [closed]

I thought that the file is a reserved place on disk and it is a Record collection but i found that it is a wrong definition because the empty file capacity is 0kb so it can't be a reserved place on ...
3
votes
1answer
359 views

libata patch to allow disable sata port

My question is related to the patch introduced in this post How to tell Linux Kernel > 3.0 to completely ignore a failing disk? If the kernel is patched with this code what is the kernel parameter ...
3
votes
1answer
3k views

Expanding the disk size on pfsense under VMWare ESXi

I've been testing pfsense on ESXi for a while. And now I'm almost running out of space. Currently it holds around 30GB and I would like to expand it to 150GB as I'm planning on installing squid for ...
4
votes
1answer
535 views

Edit file on image created with dd [duplicate]

I've a bootable USB with Debian. Normally I clone the disk with dd, write the image on a new USB disk, mount this disk on my filesystem and edit some files. Is it possible to edit files on the image ...
0
votes
2answers
290 views

How to get total disk read/write in bytes per hdd device from /proc

How to get total disk read/write in bytes per hdd device? for example if i have sda, sdb, and sdc, is there any file on /proc that i could use similar to /proc/net/dev for networking?
2
votes
4answers
2k 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 ...
5
votes
2answers
494 views

How to create a fixed size Linux ramdisk which does never swap to disk?

I want to create a fixed size Linux ramdisk which never swaps to disk. Note that my question is not "why" I want to do this (let say, for example, that it's for an educative purpose or for research): ...
0
votes
1answer
138 views

Is there something wrong with df output? [duplicate]

I'm using the command df -h to check disk usage on CentOS 6.4. I see an inconsistency with the output. look at the line Filesystem: total 490Gb, used 55Gb, and Available 411Gb. What is it mean? I ...
1
vote
3answers
372 views

/dev/disk/by-uuid/ not working on one machine

I have a iSCSI disk which I am mounting from several machines (exclusively, not concurrently). On machine A, I start iscsi service open-iscsi start and the iscsi disk is discovered as /dev/sdb1. ...
2
votes
1answer
1k views

Mounting another VM's .vdi in VirtualBox

I have two VMs in VirtualBox. For exmaple, VM 1 runs Red Hat, and VM 2 runs Ubuntu. For the Red Hat VM I have redhat.vdi and redhat2.vdi, and for the Ubuntu VM I have ubuntu.vdi and unbuntu2.vdi. ...
3
votes
2answers
63 views

Uniquely identifying a drive (not a partition)

I'm writing some automation scripts for full disk backups and I'd like to be fairly precise with which devices are used. I know that one can uniquely identify a partition using UUIDs and blkid, but ...
2
votes
2answers
397 views

How do I navigate to a CD drive?

I'm trying to install Virtualbox Guest Additions in Elementary OS. cd doesn't seem to work with cd VBOXADDITIONS_4.2.6_82870. Update: I did what @ivica recommended, and here's what I'm getting: I ...
0
votes
1answer
67 views

How to create memory-based disk in linux? [duplicate]

I need to have a very fast disk for keeping cache. How can I do that in Linux?
7
votes
5answers
4k views

Given a kernel ATA exception, how to determine which physical disk is affected?

I woke up this morning to a notification email with some rather disturbing system log entries. Dec 2 04:27:01 yeono kernel: [459438.816058] ata2.00: exception Emask 0x0 SAct 0xf SErr 0x0 action 0x6 ...
4
votes
2answers
719 views

How does Linux md-RAID handle disk read errors?

There are 2 cases: the read command times out at kernel level (30 seconds by default), the drive reports its unability to read a given sector before the kernel lose patience (the case I'm ...