0
How can I make my computer sleep but not automatically change the state of the USB flash drive I am using? I have it mounted on / because my hard drive broke, and whenever my computer wakes up it remounts as a read-only FS and I need to run fsck
on reboot. haw can I avoid this? the flash drive is /dev/sda2
and the filesystem is ext4
.
from the
hdparm
wikipedia article: hdparm is a command line utility for the Linux and Windows operating systems to set and view ATA hard disk drive hardware parameters. It can set parameters such as drive caches, sleep mode, power management, acoustic management, and DMA settings. GParted and Parted Magic both include hdparm. – Jakob Weisblat – 2012-11-30T13:56:22.860so it wouldn't work with a flash drive. Also, I think (though I cannot access *.stackexchange because it is blocked at my school) that answer refers to preventing the drive itself from sleeping, not preventing the drive from being nonpeacefully disconnected when the computer sleeps. I could be wrong about that, however. Thanks anyway. – Jakob Weisblat – 2012-11-30T13:58:00.830