The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
2answers
984 views

How do I get losetup -a to behave?

# losetup /dev/loop0 /tmp/tmpuUwgbn # losetup -a # losetup -f /dev/loop1 # losetup /dev/loop0 /dev/loop0: [0806]:33654 (/tmp/tmpuUwgbn) # ls -la /tmp/tmpuUwgbn -rw------- 1 root root 0 2011-08-24 ...
12
votes
2answers
1k views

Weight-based block IO control for VMs

I use KVM to manage my virtual machines. I am trying to limit the resources provided for VMs. I am able to limit the CPU and memory allocated for VMs using libvirt/cgroups. Now I want to control the ...
7
votes
3answers
2k views

Mounting multiple img files as single loop device

Is there a way to take a disk img file that is broken up into parts and mount it as a single loop device?
3
votes
2answers
312 views

raid 1/LVM at the level of directories (aka mknodding a directory)

I just experienced data loss, so I am interested in some form of data duplication. I was thinking of mdadm and companions to raid 1 through software. However, I just want a given, not too big ...
2
votes
2answers
308 views

Questions on using command mount

When using command mount for a device, I was wondering about the following questions: Since device file is a parameter to mount, how does one know what the device file for a device is in general? Do ...
5
votes
3answers
2k views

Detecting that a device is mounted to a particular folder?

As part of revamping my backup scheme, I'm now adding rotating external hard drives, keeping one safely off-site at all times while the other is receiving backup data. Naturally, to ensure that my ...
5
votes
1answer
915 views

How to determine if disk is compact flash or standard hard drive

I need to determine in a shell script if a given block device (e.g. /dev/sda) is a compact flash disk or a regular hard drive. Google did not help me out for once, and while udevadm info --query=all ...
3
votes
4answers
2k views

How to get size of a block special file? [duplicate]

I need to be able to determine the size of a block special file. For example, given /dev/sda, I need a command that will provide the size of the device. (By size I mean capacity, since this is a ...
6
votes
3answers
7k views

Prevent a USB external hard drive from sleeping

Does anyone know if there is an elegant way to tell an external usb drive not to spin down after a period of inactivity? I've seen cron based solutions that write a file every minute, but nothing ...
8
votes
2answers
509 views

Prevent disk renumbering on reboot in OSX

I have 3 physical drives in my Mac Pro with OSX 10.6.4. Occasionally after rebooting the machine, the disk numbering changes such that the /dev/disk# does not reference the same drive as it did before ...