A permanent data storage device used for storing and retrieving digital information using rapidly rotating discs (platters) coated with magnetic material in a rigid form factor (as opposed to floppy disks).

learn more… | top users | synonyms (1)

13
votes
5answers
10k views

How to find which process is regularly writing to disk?

How can I find which process is constantly writing to disk? I like my workstation to be close to silent and I just build a new system (P8B75-M + Core i5 3450s -- the 's' because it has a lower max ...
2
votes
3answers
2k views

Can't mount EXT4 hard drive after mounting it in windows

I have a 2TB Western external HDD. Its original filesystem was NTFS but I formatted it to EXT4. I had no problem in Linux; But today after I mounted it using ext2fsd in a windows box, I cant mount it ...
1
vote
1answer
1k views

Disabling readahead with hdparm or POSIX_FADV_RANDOM

From Linux kernel's doc the advice POSIX_FADV_RANDOM seems to disable readahead. But whent I disable Readhead using (sudo hdparm -A 0 /dev/sdb) I get huge degradation in performances; also noticed ...
17
votes
2answers
1k views

What does mv do in case of errors?

I've just tried to move a big tree from one disk to another, which was too small. Now, I'm left with something I can't really understand - it looks like some files were indeed moved away from the ...
9
votes
4answers
4k views

Convert image of a partition into image of a disk with partition table

I have an image of an existing partition generated with dd if=/dev/sdXN of=image.bin. Now I want to use this image as the basis for a virtual machine. I know how to convert the image into a format ...
7
votes
1answer
584 views

How to re-size virtual disk with installed Linux system?

I've got hard system configuration there and I don't want to re-install it again but I need more space now. Current system space is 30GB. Seems like it's not possible to re-size disk so what I need ...
21
votes
6answers
6k views

How do I correlate /dev/sd devices to the hardware they represent?

A drive is beginning to fail and I only know the device by its /dev/sdb device file designation. What are the ways that I can use to correlate that device file to an actual hardware device to know ...
7
votes
3answers
352 views

How do you tell what hard drive a file is on?

On Debian, I have multiple hard drives, how do I know where /var/www is? Bonus: How do I check the capacity and consumed capacity and of my drives?
8
votes
5answers
5k views

How to know if /dev/sdX is a connected USB or HDD?

How can I know if /dev/sdX is a local HDD or usb key ? best doing this without root privileges. OK , udevadm helped a lot: For local HDD: udevadm info --query=all --name=sdb | grep ID_BUS E: ...
2
votes
2answers
5k views

Solaris disk failed, how to remove it?

I have a system with Solaris 10. One of the internal disks is broken: c0t0d0s2 auto:sliced rootdisk1_1 rootdg online c0t0d0s2 - c0t1d0s2 auto - ...
3
votes
1answer
87 views

Encryption of home directory for securing data after harddisk corruption

Always when I install Linux OS (e.g. Ubuntu), there is a possibility to encrypt the home directory. I was asking myself why is this useful. Is it good in the case when my harddrive is corrupted and I ...
3
votes
4answers
3k views

From df device name to physical drive name (vendor / type)

Seeing the device name by df, is it somehow possible to resolve it to the physical drive name such as vendor / type. /dev/sda3 915.4G 34.9G 880.0G 4% /share/HDA_DATA /dev/sdd3 ...
13
votes
1answer
2k views

Is disabling barriers for ext4 safe on a laptop with battery?

The manual page says about the barrier option for ext4: Write barriers enforce proper on-disk ordering of journal commits, making volatile disk write caches safe to use, at some performance ...
2
votes
2answers
599 views

How to increase the timer before drive spins-down?

I use Ubuntu 12 beta on a Lenovo Z575. I noticed that the disk spins down a few seconds after the last operation. When I am working, e.g. in the vim and write quite often, it spins-up and -down ...
2
votes
2answers
782 views

stopping harddisk spin-down on Asus EEE 1015PX (and other eee's as well)

I have an Asus EEE 1015PX netbook. It runs Linux (debian) without any powersavings enabled. E.g. no harddisk idle/spin-down tooling is running. Now constantly the harddisk spins down after it has been ...
1
vote
2answers
967 views

RedHat Linux Space Usage Problem

I recently downloaded something on my Redhat Linux computer, and it told me I was out of space. I checked my disk usage, and it says I've used 100% of my folder, but as you can see I still have almost ...
1
vote
4answers
154 views

Erasing HDD , re-write only headers , is that safe?

I want to erase my HDD quickly with dd, so If I only "zeroify" the partition headers , like destroy the inode table, block size etc. But is that safe? UPDATE I have some partition not encrypted ...
5
votes
2answers
1k views

How to create a snapshot of a physical disk?

I have Windows 7 installed on one of my disks. I want to boot this Windows system in my Xen HVM, but I do not want the changes to be permanent. So I want to create a snapshot of my Windows 7 ...
2
votes
2answers
606 views

Partitioning Ubuntu and Windows 7 once and for all

I am dual-booting Windows 7 and Ubuntu (installed with wubi). So far there have been no problems, but now it says the disk is out of space all the time (I think that is because /dev/loop0 is used 100% ...
3
votes
4answers
3k views

What is the concept of Drives in Unix Systems?

In windows, we have C drives where all the softwares are installed and other partitions e.g; D, E etc to store our data. Now once we reinstall the windows for some reason, we install everything again ...
21
votes
3answers
764 views

How can I limit the output speed of stdout?

I'm running CentOS 5.7 and I have a backup utility that has the option of dumping its backup file to stdout. The backup file is rather large (multiple gigabytes). The target is an SSHFS filesystem. To ...
4
votes
1answer
2k views

What's faster, dd 1.5TB or rsync 500GB?

I need to save data from a failing hard drive. Sounds like ddrescue or myrescue (or maybe clonezilla?) will be my best friends here, but I'm just wondering what will likely be faster: using ...
2
votes
2answers
178 views

Why is my /home separate from /?

I was confused why I was getting out of space errors so I ran df and saw this: [me@fedlap /]$ df -h Filesystem Size Used Avail Use% Mounted on rootfs 43G ...
3
votes
2answers
2k views

How to disable clicking in Seagate ST3000DM001?

Recently I bought this disk and I cannot get rid of funny clicking -- funny because normally not configured disk make dry click. This one make click like a sweet chirp. But besides this, this click ...
2
votes
2answers
1k views

vmstat IO stats: why the high bo during a download?

On my RHEL 4 machine, I was downloading a huge file (2.5GB)..I was checking the output of vmstat and was especially curious about seeing the disk IO using bi and bo. I know iostat is a better tool ...
3
votes
3answers
1k views

Copying an HDD to a larger one by dd

I'm trying to copy an entire HDD which has IBM PC-style partition table to a larger one by dd on GNU/Linux. The questions are: Can I use the additional space on the larger disk by changing the ...
3
votes
5answers
3k views

GNU/Linux (Debian): detecting hard-disks mappings?

Let's suppose you have two hard-disks: one internal (boots GNU/Linux); one external (USB). "fdisk -l" detects both, but will not tell you which is /dev/sda and which is /dev/sdb. "lsusb" will tell ...
3
votes
2answers
8k views

How extend linux partition with?(after success to extend : fail to boot computer)

I have Ubuntu and I want to enlarge the disk space of /dev/sda1 from 10GB to 90GB. gparted Ubuntu 9.04 live cd show: Partition File System Size /dev/sda1 ext4 10GB /dev/sda2 ...
1
vote
2answers
573 views

Is “Disk failure is imminent” causing the errors I am experiencing?

I am getting SMART Status 184 end to end error, and "Disk failure is imminent", suggesting I need to get a new hard drive, and I will do. But now I am also getting error messages such as when running ...
3
votes
1answer
2k views

What is the fastest way to write all sectors on a drive?

The goal in my case is not to securely erase data, but simply to force sector reallocation by the drives firmware. I have a drive that has had a few file corruptions. It seems to be due to getting ...
1
vote
1answer
245 views

Which driver for USB enclosure should I install?

I'd like to connect my old harddrive to my laptop via USB enclosure. I connected it but it only produced strange sounds, so I thought that the enclosure is corrupted. I connected the enclosure to ...
3
votes
3answers
5k views

How to Expand LVM2 Partition in Fedora Linux

I've been using Fedora 15 on a VMWare virtual machine. Over time, the disk space I initially allocated for the file system began to run out, only 12GB left. I've expanded the disk space an extra 25GB. ...
2
votes
2answers
467 views

Cloned VirtualBox CentOS disk is unbootable after cloning in GParted

I cloned and enlarged an existing virtual CentOS-6 disk by the following steps: Create 15GB virtual disk and mount the old and the new disks in GParted. In GParted copy boot, swap and ext3 ...
5
votes
1answer
2k views

“echo 1 > /sys/block/sdX/device/delete” on all disks except predetermined list

I have a list of scsi disks that I need to remove. The list is considered random at best and changes from time to time. I want to remove everything except a predefined list that I have created. Let's ...
4
votes
2answers
1k views

Not enough space on / to install new kernel update

During a recent update I received this: Installing: kernel-default-2.6.37.6-0.11.1 [error] Installation of kernel-default-2.6.37.6-0.11.1 failed: (with --nodeps --force) Error: Subprocess failed. ...
3
votes
4answers
2k views

Comparison of raw block devices

Is there a utility (or some shell magic) that allows me to compare two block devices? Details: I have one large (0.5 TB) RAID device that I've backed up to a slightly larger SATA device using dd. ...
5
votes
4answers
2k views

Finding out what is spinning up harddrive

I am the owner of a NAS, running some Linux distribution. It comes with a web administration frontend, where I can manage several services, user rights and also when it should go to sleep. My problem ...
2
votes
2answers
4k views

Install Chromium OS without USB Disk

You seem to need a 4GB USB disk or flash drive to install Chromium OS onto before you can install it to your hard drive. Is there a way to install Chromium OS onto your hard drive without a handy 4GB ...
2
votes
3answers
924 views

Root filesystem nearly full - should I be worried?

me@netbook:~$ df -h Filesystem Size Used Avail Use% Mounted on /dev/sda5 323M 292M 15M 96% / tmpfs 5.0M 4.0K 5.0M 1% /lib/init/rw tmpfs ...
2
votes
1answer
396 views

udev weirdness: /dev/hda1 mounted but file not present

I think my question is related to udev and/or udisks, but I am really not sure at all what's going on here. To start with, my system works more or less fine. The less part is due to the fact that, ...
2
votes
1answer
1k views

Listing a hardrive partition by blocks using LBA

Most hard drive and partition inspection tools seem to list the items using sectors, head.. etc. From another question I was told that these are virtual because they have to be converted from lba, ...
2
votes
2answers
564 views

How to troubleshoot a computer freeze from liveCD?

I'm helping my dad fixing his old computer. I am now running it from Fedora 16 with XFCE Live CD. If I try to install, as soon as it gets to the part where it writes partition to disk however, the ...
2
votes
3answers
445 views

Duplicating a hard disk

I'd like to simply duplicate a hard disk drive to another hard disk drive of the same size. I know I can simply do: dd if=/dev/sda of=/dev/sdb (or whatever the names of the drives are in /dev). ...
1
vote
0answers
1k views

Hard drives goes missing until reboot - what can be the cause?

I am struggling here. My end goal is assembling a RAID-6 array on my PC, but time and again, the assemble doesn't complete (and cat /proc/mdstat shows that one drive dropped away). This now happened ...
3
votes
0answers
439 views

Toshiba Drive Sleeping - SDPARM

My toshiba 1tb external keeps going to sleep and I can't seem to locate anything that resembles a standby parameter. Does anyone know a way to get this drive to quit sleeping? Here is the output of ...
4
votes
2answers
828 views

Salvaging a “broken” hard drive

My girlfriend's macbook's hard drive failed, so I gave her a new one and reinstalled OSX on it. Works fine. However, I wanted to see if I could use her old hard drive for backups/fun. I was able to ...
2
votes
2answers
395 views

What tool(s) should I use to test my hardware for errors?

Are there any Linux tools (command line, or Live CD) that will test hardware components for errors (hard drive, RAM, CPU, graphics card, buses) and show me some detailed output with wrong parts etc.?
0
votes
1answer
432 views

How to fix “number of errors while writing to disk(or) multi-zone error rate”?

I ran hard disk checker, and i found this error: Write Error Rate: number of errors while writing to disk(or) multi-zone error rate (or) flying-height --- Normalized: 200 Worst: 200 Value: ...
2
votes
1answer
10k views

How to see free disk space on SunOS?

It really makes me mad. SunOS 5.9 #format Searching for disks...done No disks found! # mount / on /dev/md/dsk/d0...(skip) /var on /dev/md/dsk/d4 ... /opt on /dev/md/dsk/d5 ... /home on ...
4
votes
2answers
668 views

Create a partition from a directory

I have a Linux system with only one partition /dev/sda1 on /dev/sda disk with / mount point. Is it possible to create partitions after installation? e.g. create /dev/sda2 with the mount point /home/ ...