LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-02-2016, 06:24 PM   #1
Duglas
Member
 
Registered: Mar 2009
Distribution: Debian
Posts: 69

Rep: Reputation: 2
I can not mount usb thumbdrives


I have been mounting thumbdrives for a long time now.
Suddenly the mounting (mount /dev/sdb1 /mnt/usb) has failed, giving this error msg.
"column: Invalid or incomplete multibyte or wide character"
The device had been checked with fdisk -l, and the directory exists.

2 days ago I mounted my new Android phone via usb cable.
I first installed jmtpfs with aptitude, and sucessfully mounted my phone, using "jmtpfs /mnt/".
I was also able to umount it by using "fusermount -u /mnt/".

Yesterday when I inserted a thumbdrive, I got my first failure, and the above error msg.
I have made several attempts using different thumbdrives, and after a reboot, but the failure to mount and the error msg is consistant.

I am running Debian Jessie on a Lenovo T410.
 
Old 02-03-2016, 11:02 AM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
What does
Code:
type mount
print?
 
Old 02-03-2016, 01:37 PM   #3
flshope
Member
 
Registered: Jul 2009
Location: Tennessee (United States)
Distribution: Debian 11.6, Ubuntu 22.04.2, 18.04.6, Android 11
Posts: 236
Blog Entries: 44

Rep: Reputation: 80
I am running Debian 8.3 on a desktop machine with two separate hard disks (sda and sdb).

When I plug in a USB drive, it automounts at /media/fred (where fred is my user name). When I issue the mount command (no arguments) on a terminal, the USB drive is recognized as /dev/sdc1.

My desktop is Gnome Flashback. When I open the "Computer" sub-menu item from the top bar menu, it shows the USB drive along with other drives on the system.

The USB drive is also listed by the System Monitor under the File Systems tab.

Are you seeing none of this with USB your drives?

Last edited by flshope; 02-03-2016 at 01:38 PM.
 
Old 02-03-2016, 04:21 PM   #4
Duglas
Member
 
Registered: Mar 2009
Distribution: Debian
Posts: 69

Original Poster
Rep: Reputation: 2
I typed "fdisk -l" and saw /dev/sda{1,2,3,4} (just what I expected)
I typed "mount" and saw a bunch of file systems, /dev, /proc, /dev, ... etc
I inserted a thumbdrive
I typed "fdisk -l" and saw one (1) new device (/dev/sdb1)
"/dev/sdb1 2144 62537727 62535584 29.8G b W95 FAT32"
I typed "mount /dev/sdb1 /mnt/"
I now see the error msg, "column: Invalid or incomplete multibyte or wide character"
I typed "mount" and see exactly the same file systems as 5 lines above.

Does this help?
 
Old 02-03-2016, 05:42 PM   #5
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Quote:
Originally Posted by Duglas View Post
I typed "fdisk -l" and saw /dev/sda{1,2,3,4} (just what I expected)
I typed "mount" and saw a bunch of file systems, /dev, /proc, /dev, ... etc
I inserted a thumbdrive
I typed "fdisk -l" and saw one (1) new device (/dev/sdb1)
"/dev/sdb1 2144 62537727 62535584 29.8G b W95 FAT32"
I typed "mount /dev/sdb1 /mnt/"
I now see the error msg, "column: Invalid or incomplete multibyte or wide character"
I typed "mount" and see exactly the same file systems as 5 lines above.

Does this help?
No.
 
Old 02-06-2016, 01:10 PM   #6
Duglas
Member
 
Registered: Mar 2009
Distribution: Debian
Posts: 69

Original Poster
Rep: Reputation: 2
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=480735,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,relatime,size=770404k,mode=755)
/dev/sda1 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=23,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
/dev/sda4 on /home type ext4 (rw,relatime,data=ordered)
/dev/sda3 on /mnt/backup type ext4 (rw,relatime,data=ordered)
rpc_pipefs on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=385204k,mode=700,uid=1000,gid=1000)
 
Old 02-06-2016, 01:21 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,680

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
type is a command and not a request to write mount on the command line.

type mount

Expected output is
mount is /bin/mount
or
mount is aliased to ...

Last edited by michaelk; 02-06-2016 at 01:26 PM.
 
Old 02-07-2016, 08:17 AM   #8
flshope
Member
 
Registered: Jul 2009
Location: Tennessee (United States)
Distribution: Debian 11.6, Ubuntu 22.04.2, 18.04.6, Android 11
Posts: 236
Blog Entries: 44

Rep: Reputation: 80
I haven't had to manually mount any drives for a long time since linux become so user-friendly with doing auto-mounts; but the last time I did a manual mount, I had to do the following:

Code:
su userwithadminprivileges
sudo mount ...
 
Old 02-07-2016, 04:01 PM   #9
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
Mounting a device requires root privileges. I see no indication that the OP is trying to mount as root, but the way he posts, it's impossible to tell for sure. The error message makes no sense to me, I've never seen anything like that from a mount command. The usual error message for a non-privileged user is "mount: only root can do that". Is the OP using an English keyboard layout, or something else? The error message quoted seems to indicate that a nonstandard character is being passed in the command somehow.
 
Old 02-08-2016, 03:56 PM   #10
Duglas
Member
 
Registered: Mar 2009
Distribution: Debian
Posts: 69

Original Poster
Rep: Reputation: 2
Thanks for the responses.

I knew that "mount" is a command. I did not know that "type" is also a command.
the output of "type mount" is:
"mount is aliased to `mount | column -t'" without the double quotes.

I am a regular user, however I am also root on this machine. I have a line in /etc/fstab that give my user account the privilege to mount usb thumbdrives.
I have experimented with the instructions as both user and root (with no difference in result). I am using a US english keyboard.

I do NOT use Ubuntu, Gnome, or auto-mounting, for administration tasks use the command line (urxvt), and Openbox.

In the error msg I see the command "column" is complaining. In "type mount" I see that mount is piped to column.
So I tried this:
$ which mount
/bin/mount
$ /bin/mount /mnt/
(no error msg)
$ mount
...
/dev/sdb1 on /mnt type vfat (rw,nosuid,nodev... [last line]
$ cd /mnt
$ ls -l

Can anyone tell me what is the problem with "column"?
 
Old 02-08-2016, 04:00 PM   #11
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
You have an unwanted alias, check out the .bashrc. You can still mount even with this alias in place if you use /bin/mount instead of plain mount.
 
Old 02-08-2016, 04:05 PM   #12
Duglas
Member
 
Registered: Mar 2009
Distribution: Debian
Posts: 69

Original Poster
Rep: Reputation: 2
oops Posted before filling in the output of "ls -l"
files, lots of files, Gb's of files.

This thread will be marked as "solved", but I would still like to know what happened to "column".
 
Old 02-08-2016, 04:14 PM   #13
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,680

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
I suspect some locale setting was changed or not compatible when you installed jmtpfs. Not sure where to look at the moment.
 
Old 02-08-2016, 04:15 PM   #14
Duglas
Member
 
Registered: Mar 2009
Distribution: Debian
Posts: 69

Original Poster
Rep: Reputation: 2
Found it in .bash_aliases (sourced from .bashrc)
No idea where it came from.
Thank you again.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux does not detect my removable usb thumbdrives milarze Linux - Hardware 12 05-11-2011 05:42 AM
Need to have USB thumbdrives mount without world-read permissions in FC6 xiaodown Linux - Hardware 3 12-23-2008 01:29 PM
File Sync software for USB thumbdrives edlentz Linux - Software 0 11-20-2004 09:15 AM
mount usb module then mount usb hard drive guanyu Linux - Hardware 1 10-08-2003 11:50 AM
Accessing Cd-roms, and Thumbdrives Fathonkey Linux - Hardware 1 05-21-2003 05:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration