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

learn more… | top users | synonyms

0
votes
2answers
46 views

Where are all the disks used?

This is almost a little embarrassing to ask, but I just can not figure this one out myself really. I'm trying to find out where the disks of my machine are used and if they are actually used at all. ...
2
votes
0answers
28 views

how to check default cache mode for disk in kvm

KVM/qemu support various types of cache - none, writethrough, writeback. How to check which one is default and is used on system when no cache= is specified? For RHEL6 i found that it's writethrough ...
2
votes
2answers
36 views

How to determine whether the data is written to disk or cached?

I'm learning file operation calls under Linux. The read() and write() and many other functions use cache to increase performance, and I know fsync() can transfer data from cache to disk device. ...
0
votes
0answers
40 views

How do I decrypt this hard drive?

In 2011 I installed Ubuntu server edition on an old Dell that I had laying around. During the install process I was using the gui installer and opted to set disk encryption on the disk drive. During ...
1
vote
1answer
46 views

Recognizing GPT partition table created with different logical sector size

I have a 3TB drive which I have partitioned using GPT: $ sudo sgdisk -p /dev/sdg Disk /dev/sdg: 5860533168 sectors, 2.7 TiB Logical sector size: 512 bytes Disk identifier (GUID): ...
1
vote
1answer
24 views

Disk numbering a drive then mounting in solaris 10

I've a rescued sun v240 (2x 73Gb scsi drives). Trying my best to get onto the Solaris 10 OS. Managed to get via console lead and putty on windows machine . Managed to get cdrom-s single user (used ...
0
votes
0answers
17 views

How to prepare for a possible unreadable disk from bios after swapping disks?

How to prepare for a possible unreadable disk from bios after swapping disks? I want to switch out my old disk with my working linux mint 16 os and plug in a new disk and install linux mint 17. I am ...
7
votes
1answer
291 views

reference whole disk (/dev/sda) using UUID

On my system (Debian), I can see the UUID identifier for all of my disks partitions (i.e. /dev/sda1, dev/sda2, ..) ls /dev/disk/by-uuid/ However, I don't see the UUID identifier for /dev/sda ...
1
vote
1answer
49 views

Very slow file operation

I recently rebuild a machine with Centos 5.8 with a brand new disk. This machine is old and has been running 5.8 for a long period with no issues so the only thing which changed recently is the new ...
1
vote
0answers
47 views

Flash memory and set to read only , Is it virus?

Becuase some of limitation of MS.Windows, my friends and my family gime their flash memory to solve their problem. Such as format, partitioning in Linux with the cfidsk ,parted, sfidsk(dump and ...
0
votes
0answers
58 views

Syncing an iPod classic with Rhythmbox, but it is read-only

I have an old iPod classic (2006 model, I believe) and I recently built my own computer, thus transitioning away from my old iMac and moving onto my own Fedora 21 desktop. Despite my negative opinion ...
2
votes
0answers
47 views

View syscalls/kernel activity for I/O from a running process

I'd like to be able to view syscalls or kernel activity for a process...I'm not actually sure of the terminology I need here! Specifically I'm looking for the difference between I/O going to local ...
0
votes
0answers
24 views

Separating SAS from SATA drives

I have to list all SAS drives and separately list all SATA drives, I'm working on CentOS6 and tried lots of commands which will give some specific information about bus of disks. Let me show you ...
3
votes
2answers
314 views

Replace both disks in a raid 1 mirror

I have a 3 years old server with two same disks. I'm planning to replace both before they fails. Can I add two more new disks to the raid and (after it has been rebuild) eventually remove the two old ...
4
votes
2answers
471 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 right bar) I get two options that have me confused: eject and safely remove. The closer I came to answer was this ...
0
votes
1answer
137 views

In smartctl output, what does LifeTime(hours) mean?

Specifically, in smartctl output, how is LifeTime(hours) calculated? I'm assuming it's one of the following: The difference (in hours) between the time of the test and the manufacture date of the ...
0
votes
0answers
38 views

Any tool or command can detect flash disk or SSD memory type?

Here I mean "SLC" or "MLC", basically, how many bits per cell for the NAND memory. Is there anything we can get? Thanks.
2
votes
1answer
156 views

how to read any process' /proc/pid/io

I'm trying to monitor disk activity of each process. One way that I found how to do this is to read /proc/pid/io file and compare fields with previous read. That works fine except my monitoring ...
0
votes
0answers
31 views

Why does reading from a symlink to network location cause local disk activity?

I am running RHEL 6.4 and have a symbolic link in my home directory to a large file stored elsewhere on a network. My home directory is a network location as well. I've noticed that when I run a ...
4
votes
1answer
323 views

How to find out which file is affected by a bad sector?

Consider you've been informed about a bad sector like this: [48792.329933] Add. Sense: Unrecovered read error - auto reallocate failed [48792.329936] sd 0:0:0:0: [sda] CDB: [48792.329938] Read(10): ...
1
vote
0answers
46 views

Shared NTFS partition conflict, files written under Debian gone

I have a dual-boot W7-Debian Jessie on my laptop, and a NTFS partition initially left for sharing data between OS and keeping big files. With myself getting used to Linux, rebooting to windows became ...
1
vote
1answer
37 views

1kb partition: is it a problem, can it be removed?

I have a 1KB partition on my drive, sda4. Here is the output of lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 698.7G 0 disk ├─sda1 8:1 0 500M 0 part /boot ├─sda2 8:2 ...
2
votes
0answers
255 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 ...
1
vote
1answer
55 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
677 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
390 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 ...
6
votes
3answers
422 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
106 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
1k 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
91 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
75 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
295 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
143 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
610 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
80 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
391 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
3k 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
71 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
30 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
161 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
410 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
163 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
2k 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
100 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
59 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
452 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
457 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
18 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 ...