hddtemp - no /dev/sda

Forum rules
Before you post please read how to get help
Post Reply
herbie643
Level 3
Level 3
Posts: 160
Joined: Tue Oct 19, 2010 9:16 pm

hddtemp - no /dev/sda

Post by herbie643 »

I have a conky script that reports disk temp's. Well I noticed that it was displaying temps. I had Debian 7 installed (before I borked it):

In .conky
Disk temp: ${alignr}${exec hddtemp -u f /dev/sda | cut -d':' -f3} ${alignr}${exec hddtemp /dev/sda | cut -d':' -f3}
and nothing is displayed except the text Disk temp:

So i went command line
#hddtemp -u f /dev/sda

Now it reports:
/dev/sda: open: No such file or directory

I cd'd to /dev and did an ls -l and sure enough, no sda, sdb, sdc and others.
fstab reports that /dev/sda7 and sda5 were used during install. 7 is root & 5 is home
My unix/linux is rusty as all get out, but I know you can create a block device, but that doesn't explain where the heck /dev/sda is.

Any ideas

herbie643
Level 3
Level 3
Posts: 160
Joined: Tue Oct 19, 2010 9:16 pm

Re: hddtemp - no /dev/sda

Post by herbie643 »

Forgot to mention this:
I amd running Mint Nadia XFCE 32bit on a Toshiba laptop with 3gb ram and 250gb disk

herbie643
Level 3
Level 3
Posts: 160
Joined: Tue Oct 19, 2010 9:16 pm

Re: hddtemp - no /dev/sda

Post by herbie643 »

I did some more research and /dev/disk/by-uuid reports the following

0 lrwxrwxrwx 1 root root 10 May 21 18:15 2285786051060999 -> ../../sdd1
0 lrwxrwxrwx 1 root root 10 May 21 18:15 4C6613D16613BAA2 -> ../../sdb2
0 lrwxrwxrwx 1 root root 10 May 21 18:15 8d9e760e-479b-46b1-9328-3e2d8559b1ea -> ../../sdb6
0 lrwxrwxrwx 1 root root 10 May 21 18:15 945e8983-8a39-4602-8e9f-98461b3f374a -> ../../sdb5
0 lrwxrwxrwx 1 root root 10 May 21 18:15 9EC8E516C8E4EE09 -> ../../sdb1
0 lrwxrwxrwx 1 root root 10 May 21 18:15 a62a10ed-381d-4456-8a4b-2c3a74ae2906 -> ../../sdb8
0 lrwxrwxrwx 1 root root 10 May 21 18:15 cded00c9-5269-4b3c-a205-43fe3db0054b -> ../../sdb7
0 lrwxrwxrwx 1 root root 10 May 21 18:15 E0109FBE109F9A5C -> ../../sdc1

fstab agrees.
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda7 during installation
UUID=cded00c9-5269-4b3c-a205-43fe3db0054b / ext4 errors=remount-ro 0 1
# /home was on /dev/sda5 during installation
UUID=945e8983-8a39-4602-8e9f-98461b3f374a /home ext4 defaults 0 2
# swap was on /dev/sda6 during installation
UUID=5f350092-8cd3-4797-8da3-9d125be5730b none swap sw 0 0
UUID=2285786051060999 /mnt/Toshiba ntfs rw,noatime,nodiratime,errors=remount-ro 0 0
UUID=E0109FBE109F9A5C /mnt/Seagate ntfs rw,noatime,nodiratime,errors=remount-ro 0 0

I do not understand how sdb is being used now.

herbie643
Level 3
Level 3
Posts: 160
Joined: Tue Oct 19, 2010 9:16 pm

Re: hddtemp - no /dev/sda

Post by herbie643 »

Well fstab doesn't agree totally.. I agrees with uuid but not the sda vs sdb.

herbie643
Level 3
Level 3
Posts: 160
Joined: Tue Oct 19, 2010 9:16 pm

Re: hddtemp - no /dev/sda

Post by herbie643 »

I know you will think I am out of my mind, gone bananas, berserk or whatever, but I decided to reboot and see what the /dev/sd? was and it was /dev/sda. I rebooted and now everything is back to normal.
Could someone explain what the heck happened, cause I am totally confused.
I mean if Nadia was on sda how did all of a sudden did everything change to sdb?

Post Reply

Return to “Xfce”