[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: disable sleep mode hdd usb



On Tue, 17 Aug 2010, Greg Madden wrote:

> > > The original poster doesn't mention the verson of Debian, Squeeze uses
> > > uuid's, and if you are using external usb devices, uuid's are a great 
> > > way to make sure the same file system gets mounted  appropriately each
> > > time.
> >
> > Maybe the disk name in /dev/disk/by-id could be used instead, there are
> > symlinks to /dev/sda on my system.
> 
> Well my mistake, hdparm deals with hard drives and uuid's are for file 
> systems/partitions.  i haven't had much luck with usb/sata device naming 
> remaining the same without uuid's though. Seems like anything using sdX could 
> fail at some point.

/dev/disk/by-id/has entries mapping to the drive as well as partitions:

1021% ls -l /dev/disk/by-id/ata-ST3750330AS_9QK0X03V*
lrwxrwxrwx 1 root root  9 2010-08-16 10:44 /dev/disk/by-id/ata-ST3750330AS_9QK0X03V -> ../../sdb
lrwxrwxrwx 1 root root 10 2010-08-16 10:44 /dev/disk/by-id/ata-ST3750330AS_9QK0X03V-part1 -> ../../sdb1

So you should be able to point hdparm at a udev-managed symlink.

-- Brad


Reply to: