RobHenry
Posts: 452
Joined: Fri Sep 21, 2012 9:04 pm
Location: UK

Re: Trailing underscores on USB drive names

Thu Oct 23, 2014 8:54 pm

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.

User avatar
makem2
Posts: 233
Joined: Tue Jul 02, 2013 9:12 am
Location: Essex
Contact: Website

Re: Trailing underscores on USB drive names

Thu Oct 23, 2014 9:03 pm

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!

beta-tester
Posts: 1350
Joined: Fri Jan 04, 2013 1:57 pm
Location: de_DE

Re: Trailing underscores on USB drive names

Thu Oct 23, 2014 9:32 pm

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
{ I only give negative feedback }
RPi B (256MB), B (512MB), B+, ZeroW; 2B; 3B, 3B+; 4B (4GB)

User avatar
makem2
Posts: 233
Joined: Tue Jul 02, 2013 9:12 am
Location: Essex
Contact: Website

Re: Trailing underscores on USB drive names

Thu Oct 23, 2014 9:45 pm

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.

beta-tester
Posts: 1350
Joined: Fri Jan 04, 2013 1:57 pm
Location: de_DE

Re: Trailing underscores on USB drive names

Thu Oct 23, 2014 10:40 pm

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... :?
{ I only give negative feedback }
RPi B (256MB), B (512MB), B+, ZeroW; 2B; 3B, 3B+; 4B (4GB)

User avatar
makem2
Posts: 233
Joined: Tue Jul 02, 2013 9:12 am
Location: Essex
Contact: Website

Re: Trailing underscores on USB drive names

Thu Oct 23, 2014 10:48 pm

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.

User avatar
RaTTuS
Posts: 10549
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Trailing underscores on USB drive names

Fri Oct 24, 2014 8:47 am

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
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

Houtkamp
Posts: 8
Joined: Wed Dec 18, 2013 6:50 pm

Re: Trailing underscores on USB drive names SOLVED

Wed Feb 04, 2015 7:39 pm

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

User avatar
DougieLawson
Posts: 38500
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Trailing underscores on USB drive names SOLVED

Wed Feb 04, 2015 9:58 pm

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?
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

I'll do your homework for you for a suitable fee.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Houtkamp
Posts: 8
Joined: Wed Dec 18, 2013 6:50 pm

Re: Trailing underscores on USB drive names SOLVED

Thu Feb 05, 2015 5:49 pm

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.

User avatar
DougieLawson
Posts: 38500
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Trailing underscores on USB drive names SOLVED

Thu Feb 05, 2015 8:43 pm

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).
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

I'll do your homework for you for a suitable fee.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Houtkamp
Posts: 8
Joined: Wed Dec 18, 2013 6:50 pm

Re: Trailing underscores on USB drive names SOLVED

Thu Feb 05, 2015 8:46 pm

But I REALLY REALLY REALLY need to have a FAT 32 partition on the chip.

Return to “Troubleshooting”