The tag has no wiki summary.

learn more… | top users | synonyms

4
votes
1answer
197 views

Can unformatted partitions have UUIDs?

Can a partition have a UUID without a filesystem?
2
votes
5answers
1k views

sda and sdb block specials point to same device and get mixed up (hardware RAID doesn't work after new installation of 12.04)

I just installed the latest Ubuntu 12.04 and obviously it screws something up. I'm not sure if this has anything to do with the fact that I have a Raid 1 but at the moment, I have sda and sdb which ...
2
votes
1answer
159 views

Check which network block devices are in use

How can I tell if a /dev/nbd* device is in use? Will "lsof" tell me? Or is there a better way? Is there an equivalent to "losetup -a" which will tell me the next free one?
1
vote
1answer
452 views

Multipath device name doesn't display correctly

I'm playing with iscsi and I'm trying to figure out why the vendor/product names aren't showing up correctly. I've restarted all the appropriate services along with a reboot. Listed below are the ...
1
vote
4answers
8k views

SD card corrupt and stuck at 32MB, any way to fix it?

Using the Linux area since I'm using Linux apps and utilities. My phone crashed (several times) and managed to corrupt my microSD card. It no longer appears to have partitions and shows as 32MB ...
1
vote
1answer
216 views

Bind specific usb out

How can I bind specific usb out to specific /dev/sd* value? Each time that I plugged in some device in specific usb out it binds to different /dev/sd* location. How can I avoid it to set mounting ...
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
1answer
355 views

Unmounting HTC device takes forever

Not sure if should post this on Android SE because I don't think this is directly related to the Android OS. On my system I manually mount and umount my HTC device with these options in /etc/fstab: ...
9
votes
4answers
847 views

Is there a way to sync only one partition?

Is there a way to sync only one partition instead of all partitions? Something like "sync /dev/sdc1".
0
votes
1answer
264 views

block device usage and several mount points

There is some weird thing I don't understand: I have 2G block.img file with an ext4 filesystem inside. There is a 2G test.txt file in block.img. test.txt consists of letters 'a'. Then I mount ...
3
votes
2answers
986 views

Linux Mint: drives' map changing at reboot brings fstab error

I've set up fstab to auto mount media drives on a Linux Mint machine. The OS is installed on a IDE/ATA Disk while 3 SATA disks hold data to share. The BIOS has the ATA disk as first boot device. All ...
3
votes
2answers
772 views

How can I test whether a block device is read-only from /sys or /proc?

On a CentOS6 system I have /dev/block/sr0 (read only) and /dev/block/sda (read/write). How can I find out programmatically which devices are read-only? There is a ro file in there, but it's '0' for ...
2
votes
2answers
815 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 ...
11
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
235 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
271 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
699 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
941 views

How to get size of a block special file?

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
5k 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
455 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 ...