LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-14-2019, 05:33 AM   #1
Peter18
LQ Newbie
 
Registered: Jan 2019
Posts: 17

Rep: Reputation: Disabled
Filesystem problem


A friendly hello to anybody,

this is my problem:
Code:
ls: cannot access '/media/daten': Resource temporarily unavailable
total 16
 31681 4 drwxr-xr-x  5 peter sambauser 4096 Jan 17 16:18 .
     2 4 drwxr-xr-x 24 root  root      4096 Dec  6 16:32 ..
     ? ? d?????????  ? ?     ?            ?            ? daten
127877 4 drwxr-xr-x  2 peter sambauser 4096 Jan 17 16:56 progs
253963 4 drwxr-xr-x  2 root  root      4096 Jan 17 16:18 wetter
What can I do to repair the folder daten?

Greetings from the northsee

Peter
 
Old 03-14-2019, 05:49 AM   #2
dc.901
Senior Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS/RHEL, openSuSE/SLES, Ubuntu
Posts: 1,005

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Need more info:
Is this local or network file system?
Same disk or different (from OS)?
 
Old 03-14-2019, 05:56 AM   #3
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by Peter18 View Post
A friendly hello to anybody,

this is my problem:
Code:
ls: cannot access '/media/daten': Resource temporarily unavailable
total 16
 31681 4 drwxr-xr-x  5 peter sambauser 4096 Jan 17 16:18 .
     2 4 drwxr-xr-x 24 root  root      4096 Dec  6 16:32 ..
     ? ? d?????????  ? ?     ?            ?            ? daten
127877 4 drwxr-xr-x  2 peter sambauser 4096 Jan 17 16:56 progs
253963 4 drwxr-xr-x  2 root  root      4096 Jan 17 16:18 wetter
What can I do to repair the folder daten?

Greetings from the northsee

Peter
Given that I see that the drive mounted to the /media folder; is this a USB drive? CD/DVD disc? Which filesystem is this drive/disc formatted with?

What's telling is that it's not even giving you the permissions output for the same folder, and it's only complaining about that one folder. I suspect that the drive/disc maybe faulty and/or the filesystem is at least partly corrupted.

If it's a USB drive, then you could check the filesystem. But this depends on which filesystem it's formatted with, as to the best way to do that.
 
Old 03-14-2019, 06:13 AM   #4
Peter18
LQ Newbie
 
Registered: Jan 2019
Posts: 17

Original Poster
Rep: Reputation: Disabled
Hello jsbjsb001, hello dc.901,

thank you for your answer.

It is a raspberry pi only whith SD. System is 2018-10-09-raspbian-stretch-lite. I don't know which file system. The folders in /media are used with samba. No usb, no disk.

Yesterday "ls /media -lisa" worked well. I tried to look at it via samba and got the information 'no permission'. When I tried to solve this today, the result I showed you. I think the filesystem is corrupted.

Greetings from the northsea

Peter
 
Old 03-14-2019, 07:04 AM   #5
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Post the results of the following command using CODE tags;

Code:
lsblk -f
 
Old 03-14-2019, 07:10 AM   #6
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,473

Rep: Reputation: Disabled
If it's a samba drive, there may be a problem with the server.
 
Old 03-14-2019, 07:40 AM   #7
Peter18
LQ Newbie
 
Registered: Jan 2019
Posts: 17

Original Poster
Rep: Reputation: Disabled
Hello jsbjsb001, hello fatmac,

thank you again! May be it's a server problem, but some other folders are samba drives too, like progs.

Code:
NAME        FSTYPE LABEL  UUID                                 MOUNTPOINT
mmcblk0
├─mmcblk0p1 vfat   boot   FBD8-71DF                            /boot
└─mmcblk0p2 ext4   rootfs e9646bf0-ef1f-4e8b-983b-c9f97f60e931 /
Greetings from the rainy north sea

Peter
 
Old 03-14-2019, 07:44 AM   #8
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
I doubt it's a "server problem". I'd say it's either a drive and/or filesystem problem, particularly given what you said yourself (which is what I was also thinking myself).

Make sure your SD card is inserted when you run "lsblk -f", then re-post that output.

Last edited by jsbjsb001; 03-14-2019 at 07:46 AM. Reason: correction
 
Old 03-14-2019, 09:41 AM   #9
Peter18
LQ Newbie
 
Registered: Jan 2019
Posts: 17

Original Poster
Rep: Reputation: Disabled
Hello jsbjsb001,

thank you, but what do you mean with:
Quote:
Originally Posted by jsbjsb001 View Post
Make sure your SD card is inserted when you run "lsblk -f", then re-post that output.
??

The sd is still inserted. The result is still the same.

Greetings from the rainy north sea

Peter
 
Old 03-14-2019, 09:49 AM   #10
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Sorry, because your posted /media/daten I wasn't sure if the output of "lsblk -f" you give before was for the drive in question.

Anyway, because it appears it was; then that would mean that it's the drive you have the system installed on, and therefore you would have to un-mount the drive to check it's filesystem - which you can't if it's the drive the system is installed and running on. So you'll have to use a "live system" to run fsck to check the filesystem on it, as from your output it's formatted with the ext4 filesystem.

You could also try checking it with smartctl -a /dev/mmcblk0 and see what (if anything) that turns up - that will check the hardware itself.
 
Old 03-14-2019, 12:20 PM   #11
Peter18
LQ Newbie
 
Registered: Jan 2019
Posts: 17

Original Poster
Rep: Reputation: Disabled
Hello jsbjsb001,

thank you again!

I begin to work with unix. So, can you give me description how to du it? How to check an repair the file system or hardware??

Greetings from the rainy north sea

Peter
 
Old 03-14-2019, 02:11 PM   #12
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,669

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
I've never tried and do not know if it works but to force a fsck on boot you would need to add a kernel option to the /boot/cmdline.txt file.

fsck.mode=force

There are SD cards with SMART support and raspbian does include smartmontools but the odds are small it does.

It is possible just that directory has been corrupted and that deleting and restoring the data may work.
 
Old 03-15-2019, 06:37 AM   #13
Peter18
LQ Newbie
 
Registered: Jan 2019
Posts: 17

Original Poster
Rep: Reputation: Disabled
Hello michaelk,

thank you for your answer!

"fsck" was still in the file "/boot/cmdline.txt". After a restart the folder "daten" was back and I can see it via samba.

Greetings from the still rainy north sea

Peter
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Filesystem in a filesystem? fryguy Linux - Software 3 09-13-2009 11:50 AM
Difference between Readonly Filesystem and Mounting filesystem as readonly bluepenguine Linux - Newbie 1 06-19-2009 01:26 AM
Confusing USB Filesystem Problem (Can't Wipe Ext3 Filesystem) dkaplowitz Linux - Hardware 3 04-14-2007 06:30 PM
DISCUSSION: Virtual Filesystem: Building a Linux Filesystem from an Ordinary File mchirico LinuxAnswers Discussion 0 10-28-2004 10:35 PM
Encrypted Root Filesystem HOWTO and /dev filesystem tmillard Linux From Scratch 0 10-18-2004 03:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:04 AM.

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