خرید بک لینک

I have a Raspberry Pi ruing Raspbian Jessie Lite (the headless version) and I've been using as a file dump and a git server for a little while. I plugged an exteal USB hard drive into it for it to use, but it seems to have some trouble with it.

For seemingly no reason at all, the system renames my drive from /dev/sda1 to /dev/sdb1 to /dev/sdc1 and so on every few days. This causes the git and SFTP servers to fail to find the files in the directory this drive is supposed to mount to.

Upon ruing fdisk -l, I can see the drive has been renamed.

Device     Boot Start        End    Sectors  Size Id Type
/dev/sdb1  *     2048 3907029166 3907027119  1.8T  7 HPFS/NTFS/exFAT

However, df still has the old drive name.

Filesystem      1K-blocks    Used  Available Use% Mounted on
/dev/sda1      1831250820   10976 1733547784   1% /media/USBHDD1

When trying to access /media/USBHDD1 after this change:

# ls /media/USBHDD1/
ls: reading directory /media/USBHDD1/: Input/output error

I modified /etc/fstab to used the drive's UUID so ruing mount -a temporarily solves the problem and the Pi no longer goes into keel panic on boot. This, however, is aoying. Work halts until I can SSH into it and fix it every few days and it has become unacceptable.

What would cause the renaming, and how can I either stop it or get df to remember the UUID and not that label?

- - , .

برچسب: نویسنده: استخدام کار تاريخ: شنبه 15 اسفند 1394 ساعت: 3:07

صفحه بندی