On Jo, 12 ian 12, 12:38:32, Sharon Kimble wrote: > I have a USB external hard drive for my backups which is formatted ext > 3. It is currently named as > '/media/8eef3b99-c17b-4913-ae61-d34c7fd5d459_ ' and mounted via fstab.
You are showing here a mountpoint (the directory where a filesystem is mounted). The only thing that might resemble a name on a drive is a filesystem label. > I've tried using e2label as follows;- > sudo e2label /media/8eef3b99-c17b-4913-ae61-d34c7fd5d459_ /media/backup > e2label: Is a directory while trying to open > /media/8eef3b99-c17b-4913-ae61-d34c7fd5d459_ > Couldn't find valid filesystem superblock. This failed because you are trying to label a directory instead of a filesystem. From the blkid output you supplied later that should have been sudo e2label /dev/sdb1 backup > So I tried using rename as follows;- > sudo rename /media/8eef3b99-c17b-4913-ae61-d34c7fd5d459_ /media/backup > Number found where operator expected at (eval 1) line 1, near "/media/8" > (Missing operator before 8?) > Bareword found where operator expected at (eval 1) line 1, near "8eef3b99" > (Missing operator before eef3b99?) > syntax error at (eval 1) line 1, near "/media/8" The command rename is meant to rename multiple files based on some expression (see 'man rename' for more details). Since you mentioned you mount the drive via fstab (and I seem to recall that you need it that way because of some permission issues), in order to actually achieve what I'm guessing you want do the following steps: sudo umount /dev/sdb1 sudo e2label /dev/sdb1 backup sudo mkdir /media/backup sudo nano /etc/fstab At this point find the entry where your drive is mounted. My guess is you have something like UUID=8eef3b99-c17b-4913-ae61-d34c7fd5d459 /media/8eef3b99-c17b-4913-ae61-d34c7fd5d459_ ext3 [some options here] Change that to look like LABEL=backup /media/backup ext3 [your options here] (actually you can keep the UUID=... part, but labels are much easier to read, just be careful not to label another drive as 'backup' unless you know exactly what you are doing ;) Kind regards, Andrei -- Offtopic discussions among Debian users and developers: http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
signature.asc
Description: Digital signature