Page 2 of 2

Re: Trailing underscores on USB drive names

Posted: Thu Oct 23, 2014 8:54 pm
by RobHenry
Those UUID entries in fstab have never worked against your current drives, you can be sure of that. Most likely explanation is that an upgrade to whatever wizardry is doing the auto mount has caused a change in behaviour.

Suggest you sudo rm -r the directories with trailing underscore to avoid confusion.

Re: Trailing underscores on USB drive names

Posted: Thu Oct 23, 2014 9:03 pm
by makem2
DougieLawson wrote:The UUID is part of the partition table so if you move partitions with fdisk or parted or gparted you can change the UUID. I even hacked one on a FAT32 partition using hexedit.
That may explain then - I did reformat both drive from NTFS to ext4 a while ago and two days ago reformatted them ext4 once again.

I am thinking that the original UUID I had related to when they were NTFS, that would explain the totally different numbers.

It just goes to show, when you are learning without tuition you are apt to fall into traps made by changing one thing with effects you don't expect. Is trial and error a good way to learn? Only if you don't have another choice but wear a helmet to stop you pulling out all your hair!

Re: Trailing underscores on USB drive names

Posted: Thu Oct 23, 2014 9:32 pm
by beta-tester
if you format disks more often, that is one more reason to give the filesystems a label and using only the LABEL=... instead of UUID=... in the fstab.
works for ext4, ntfs, fat, ...
e2label ... for ext2,3,4
mlabel ... for fat from the mtools package
ntfslabel ... for ntfs from the ntfs-3g package
labels are more handy and userfriendly than UUIDs
ok, now i will stop suggesting to use the label. :P

Re: Trailing underscores on USB drive names

Posted: Thu Oct 23, 2014 9:45 pm
by makem2
I tend to agree with your label.

One final thought - I now need to clean the rubbish from the SD card?

I don't use it for data so does it matter? If so how lol.

Re: Trailing underscores on USB drive names

Posted: Thu Oct 23, 2014 10:40 pm
by beta-tester
makem2 wrote:One final thought - I now need to clean the rubbish from the SD card?
I don't use it for data so does it matter? If so how lol.
... i am not sure, what you mean with "clean rubbish from sd card...".
you don't have to clean anything. when you have a good setup with the UUIDs, where it was working, and you now want to change from using UUIDs to LABELs, you only need to change the used fstab and change the UUID=1234 statement to LABEL=myLabel statement corresponding with the filesystems label your want to mount.

notice, that working with labels will mount every device where the label name and the filesystem type matches in the same way (big advanteg)... that means, if you have more than one usb device with the same label and filesystem type(independent of its ID/UUID), it will be mountet as it is written in the fstab. but then do not plug both devices at the same time to the same computer - i have never tried and have no idea, what happened then... :?

Re: Trailing underscores on USB drive names

Posted: Thu Oct 23, 2014 10:48 pm
by makem2
beta-tester wrote:
makem2 wrote:One final thought - I now need to clean the rubbish from the SD card?
I don't use it for data so does it matter? If so how lol.
... i am not sure, what you mean with "clean rubbish from sd card...".
you don't have to clean anything. when you have a good setup with the UUIDs, where it was working, and you now want to change from using UUIDs to LABELs, you only need to change the used fstab and change the UUID=1234 statement to LABEL=myLabel statement corresponding with the filesystems label your want to mount.

notice, that working with labels will mount every device where the label name and the filesystem type matches in the same way (big advanteg)... that means, if you have more than one usb device with the same label and filesystem type(independent of its ID/UUID), it will be mountet as it is written in the fstab. but then do not plug both devices at the same time to the same computer - i have never tried and have no idea, what happened then... :?
RaTTuS wrote:umount all the drives in /media
delete the files there [making sure you have umounted correctly]
re-create the USB drives
mount then back as they should be
...

you have at some stage copied files to a mount position before you had mounted a drive and it has filled up your 32GB SD card [mostly]
This why I thought there was 'rubbish' on the SD card.

Re: Trailing underscores on USB drive names

Posted: Fri Oct 24, 2014 8:47 am
by RaTTuS
umount the drives then
sudo du -k |sort -nro /tmp/usage
then look at the top of /tmp/usage to see where all the space is

Re: Trailing underscores on USB drive names SOLVED

Posted: Wed Feb 04, 2015 7:39 pm
by Houtkamp
Hi, this topic is extremely important to me, as I have MAJOR issues related to this.

I can not find a solution to this hugely prohibitive problem. Please help me find a way to solve this if you can!!! I need to figure out a way to stop the underscores.

Unfortunately, there is absolutely nothing anybody in this thread has said that makes sense to me. Regretfully, I will most likely only understand if someone can name an application or command capable of approaching a solution to this problem.

THANK YOU SO MUCH

Re: Trailing underscores on USB drive names SOLVED

Posted: Wed Feb 04, 2015 9:58 pm
by DougieLawson
What filesystem do you have on your USB drive?
Are you running the GUI (which, annoyingly, includes an automounter)?
What's defined in /etc/fstab?
Have you looked at using blkid to get a unique UUID for the drives and using that for mounting them?

Re: Trailing underscores on USB drive names SOLVED

Posted: Thu Feb 05, 2015 5:49 pm
by Houtkamp
The problem occurs when I use FAT32 partitions on the SD card with the linux partition with raspbian.
Yes, I do need to use LXDE with this project. I assume that's the GUI.

fstab does not have an entry for this partition. /dev/mmcblk0p3 would be called FAT but always becomes FAT_

blkid does not exhibit any evidence of this problem that I can spot. You may see it though.

~ $ blkid
/dev/mmcblk0p1: SEC_TYPE="msdos" LABEL="boot" UUID="2654-BFC0" TYPE="vfat"
/dev/mmcblk0p2: UUID="548da502-ebde-45c0-9ab2-de5e2431ee0b" TYPE="ext4"
/dev/mmcblk0p3: LABEL="FAT" UUID="3CC2-F142" TYPE="vfat"
/dev/sda1: UUID="E1BE-D2A4" TYPE="vfat"

Your assistance is tremendously helpful for me.

Re: Trailing underscores on USB drive names SOLVED

Posted: Thu Feb 05, 2015 8:43 pm
by DougieLawson
Ignore partition #3 that's the NOOBS recovery stuff, there's nothing useful on there (unless you're using NOOBS recovery to destroy the other contents of the card).

Re: Trailing underscores on USB drive names SOLVED

Posted: Thu Feb 05, 2015 8:46 pm
by Houtkamp
But I REALLY REALLY REALLY need to have a FAT 32 partition on the chip.