On Wed, 01 Apr 2009 07:00:21 +0300 Nikos Chantziaras <rea...@arcor.de> wrote:
> Jorge Peixoto de Morais Neto wrote: > > > > I then shut the computer down and I writing this from a liveCD. > > I do not even want to access the disk read only without knowing I have > > not messed up. > > > > So: does anybody know if hdparm -X /dev/hda is safe (on a running > > system...)? > > This setting, like most other hdparm commands, is just temporary. As > soon as you reset the drive (happens during a reboot) all goes back to > the defaults. I know it is temporary. The problem is that I issued hdparm -X /dev/hda, and hda holds /, swap and everything. The system was in multiuser mode. I fear that the command could have messed up the hard disk, and caused data corruption. I have taken a look at the hdparm source code, and I see that hdparm -X /dev/hda is indeed equivalent to hdparm -X 0 /dev/hda But I still don't know if this is safe. I cannot continue to investigate the source code because it gets to an ioctl about which I know nothing (I think this would be a *lot* of research). I have since fsck'ed all relevant partitions in /dev/hda and they came up clean. Am I safe?