LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-08-2017, 02:01 PM   #1
Yuhan
Member
 
Registered: Oct 2010
Posts: 374

Rep: Reputation: 3
Unable to open new flash drive with data


Hello,

A friend just sent me a brand new flash drive with some data that he installed. When I mount the drive on my computer a flag comes up that reads:
Failed to open directory "lost+found".

For some reason, the drive is defaulting to the "lost+found" file and I can't seem to get past that. The flag also has a line that reads:Error opening directory '/media/john/usbdata/lost+found': Permission denied.

I wasn't sure if this was a "software" or hardware problem but it seems to me it's software. Any help will be greatly welcomed!
 
Old 05-08-2017, 05:18 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,780

Rep: Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573
No much to go on - what does dmesg have to say on the matter.
udev attempting to mount lost+found might imply a filesystem exists, but is broken/empty. Are you using a USB connected reader ?.
 
Old 05-08-2017, 05:31 PM   #3
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (current), FreeBSD, Win10, It varies
Posts: 9,952

Rep: Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148
lost and found it not a dir per se' if that is all you see on that drive then check with you friend and tell him you do not see anything on that drive.

Last edited by BW-userx; 05-08-2017 at 05:33 PM.
 
Old 05-08-2017, 05:48 PM   #4
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918
How are you mounting the drive?
 
Old 05-08-2017, 06:51 PM   #5
Yuhan
Member
 
Registered: Oct 2010
Posts: 374

Original Poster
Rep: Reputation: 3
Thanks for the feedback. Not sure I know how to answer these questions. "Not much to go on" I realize, but it's fairly simple: the drive simply will not open. I place the flash drive in the usb port and the icon appears on the desktop. I then click on the icon and a folder appears with an "x" over it. When I click on that folder I get the message which I reported above. When I spoke to my friend about it he said, "Just ignore lost+found." I'm happy to ignore it...except that I can't open the drive! For some reason when I insert the flash drive it defaults to the lost+found directory and denies me permission. I've never had this problem before with a flash drive. And this is a high quality flash drive!

I don't know what a usb connected reader is.
 
Old 05-08-2017, 07:00 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,780

Rep: Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573
Sorry ignore that, I had SDCard in my mind. Stick the drive in and run this command from a terminal, post the output
Code:
dmesg | tail -n 20
 
Old 05-08-2017, 07:43 PM   #7
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,854

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
Try inserting the flash drive and see if it is mounted by running:
Code:
$ mount
If the drive shows up as mounted, presumably on /media/john/usbdata/, then you probably have a permission problem. To correct that run the following:
Code:
sudo chmod -R 777 /media/john/usbdata/
That should give you read/write permissions on the flash drive. Try to open the flash drive and see if it works.
 
Old 05-08-2017, 08:06 PM   #8
Yuhan
Member
 
Registered: Oct 2010
Posts: 374

Original Poster
Rep: Reputation: 3
Okay, here is the response to dmesg | tail -n 20:

90.695270] Bluetooth: RFCOMM ver 1.11
[ 201.100143] usb 2-1: new high-speed USB device number 2 using ehci-pci
[ 201.234253] usb 2-1: New USB device found, idVendor=0781, idProduct=5580
[ 201.234261] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 201.234268] usb 2-1: Product: Extreme
[ 201.234273] usb 2-1: Manufacturer: SanDisk
[ 201.234278] usb 2-1: SerialNumber: AA010616162333382950
[ 201.333892] usb-storage 2-1:1.0: USB Mass Storage device detected
[ 201.334239] scsi host4: usb-storage 2-1:1.0
[ 201.334332] usbcore: registered new interface driver usb-storage
[ 201.375224] usbcore: registered new interface driver uas
[ 202.332941] scsi 4:0:0:0: Direct-Access SanDisk Extreme 0001 PQ: 0 ANSI: 6
[ 202.334209] sd 4:0:0:0: Attached scsi generic sg2 type 0
[ 202.334783] sd 4:0:0:0: [sdb] 122544516 512-byte logical blocks: (62.7 GB/58.4 GiB)
[ 202.335776] sd 4:0:0:0: [sdb] Write Protect is off
[ 202.335785] sd 4:0:0:0: [sdb] Mode Sense: 53 00 00 08
[ 202.336909] sd 4:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 202.351038] sdb: sdb1 sdb2
[ 202.355154] sd 4:0:0:0: [sdb] Attached SCSI removable disk
[ 212.727354] EXT4-fs (sdb2): mounted filesystem with ordered data mode. Opts: (null)
 
Old 05-08-2017, 08:12 PM   #9
Yuhan
Member
 
Registered: Oct 2010
Posts: 374

Original Poster
Rep: Reputation: 3
Whoa! This is what I got in response to $ mount:

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,nosuid,relatime,size=975188k,nr_inodes=243797,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,noexec,relatime,size=199112k,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 (rw,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/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
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/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event,release_agent=/run/cgmanager/agents/cgm-release-agent.perf_event)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb,release_agent=/run/cgmanager/agents/cgm-release-agent.hugetlb)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset,clone_children)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids,release_agent=/run/cgmanager/agents/cgm-release-agent.pids)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=30,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
tracefs on /sys/kernel/debug/tracing type tracefs (rw,relatime)
cgmfs on /run/cgmanager/fs type tmpfs (rw,relatime,size=100k,mode=755)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=199112k,mode=700,uid=1000,gid=1000)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
/dev/sdb2 on /media/john/usbdata type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2)
l
This is unintelligible to me...I hope it makes sense to someone else! Shall I run that
additional command? I think it is mounted because after I insert the drive a flag comes
up acknowledging "drive successfully mounted."
 
Old 05-08-2017, 08:19 PM   #10
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,780

Rep: Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573
OK, what about
Code:
lsblk -f
 
Old 05-08-2017, 08:20 PM   #11
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,780

Rep: Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573
I'm guessing the first partition is [V]FAT and wasn't mounted auto-magically. Fedora is like that.
 
Old 05-08-2017, 08:40 PM   #12
Yuhan
Member
 
Registered: Oct 2010
Posts: 374

Original Poster
Rep: Reputation: 3
In response to lsblk -f:

NAME FSTYPE LABEL UUID MOUNTPOINT
sda
├─sda1 ext4 09334c3c-14f7-4efb-8f8f-ca6e108ebed4 /
├─sda2
└─sda5 swap fbd050c1-b65f-4ed3-9cb1-a8512a00497d [SWAP]
sdb iso9660 Debian jessie 20160609-11:50
│ 2016-06-09-10-50-58-00
├─sdb1 iso9660 Debian jessie 20160609-11:50
│ 2016-06-09-10-50-58-00
└─sdb2 ext4 usbdata d08692ba-c453-4a14-a3aa-9d036f87e8f2 /media/joh
 
Old 05-08-2017, 08:44 PM   #13
jefro
Moderator
 
Registered: Mar 2008
Posts: 20,980

Rep: Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404
Did you boot the computer with the usb installed? Are you running Debian?
 
Old 05-08-2017, 09:02 PM   #14
Yuhan
Member
 
Registered: Oct 2010
Posts: 374

Original Poster
Rep: Reputation: 3
I did not boot the computer with the usb drive installed. My computer has Xubuntu 16.4 but I believe my friend's computer has Debian.
 
Old 05-08-2017, 09:34 PM   #15
Yuhan
Member
 
Registered: Oct 2010
Posts: 374

Original Poster
Rep: Reputation: 3
Should I attempt running sudo chmod -R 777 /media/john/usbdata/ as suggested above? Or is it that not pertinent anymore?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
I would like to access the data on my persistent Ubuntu flash drive, but.... White Essence Linux - Newbie 5 02-09-2013 02:55 PM
opensuse unable to see hp usb flash drive sirius57 Linux - Hardware 9 05-02-2010 04:03 PM
unable to write to my usb flash drive. schneidz Fedora 4 10-13-2008 09:30 PM
Unable to get the write properties for my flash drive deepumnit Linux - Hardware 1 03-07-2008 11:36 AM
Unable to mount the Flash Drive in RH9 gregorian Linux - Newbie 8 10-18-2006 03:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:37 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