Unknown fs on usb?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Unknown fs on usb?
# 8  
Old 02-03-2015
Is that file system actually mounted on /media/usb0?
# 9  
Old 02-04-2015
That media or usb-storage is not mounted actually on the wheezy machine. If so, it appears in the file-manager, but it remains the error. While booting that laptop the GRUB loader tells me he is expecting that device, because I changed the fstab-file to that content as follows
Code:
root@rechenknecht2:/etc# cat fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=71d40357-4318-4e08-a4f3-ab3f019c194f /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=c95dabb2-85b9-4778-b9cb-8bd7727fd77a none            swap    sw              0       0
/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/sdb1       /media/usb0     auto    rw,user,auto  0       0
#UUID=641ea5c8-47d2-4473-ae01-6499d2f7ccba  /media/usb0  ext3 auto, defaults 0 2

As far as I know these values defaults 0 and 2 are for checking the media and the number of boots or not. But anyway it is still there on the wheezy-laptop, while shutting down the same message appears that there has been a failure to that specific device. So I still will find out how to recover, but....with little hope, 'cause on the squeeze system there appears just nothing plugging it in. Anyway it has been a backup for some data, that does not mean for me to make a backup for a backup or even going for any cloud service.

---------- Post updated 02-04-15 at 07:51 AM ---------- Previous update was 02-03-15 at 09:29 PM ----------

After re-writing the /etc/fstab-file changing
Code:
/dev/sdb1       /media/usb0     auto    rw,user,auto  0       0

to

Code:
/dev/sdb1       /media/sdb1    auto    rw,user,auto  0       0

and saving it, it is overwritten to the first line, (re-writing as root) somehow, and appears at wheezy, but the media itself appears empty and doesn't show up as or at usb0, although changing to /etc
typing ls there shoud be. As root I got no permission to make this changes. So first chmod. To be continued.
But
Code:
 find /etc -type f -exec chmod 777 {} +

or

Code:
 find /etc -type d -exec chmod 777 {} +

just tells me that I got no permission, as root, to change this file. This remembers me of sudo. rrrubbish. sorry

Last edited by 1in10; 02-04-2015 at 05:57 AM.. Reason: learning?
# 10  
Old 02-04-2015
Quote:
Originally Posted by 1in10
Code:
 find /etc -type d -exec chmod 777 {} +

If you had done this without -type d, the effects on your system would have been absolutely ruinous.

As is, you should still probably reinstall from scratch. Strange things are likely to happen from here on out. You have tampered with the permissions of many important folders. 777 is not the magic sledgehammer to fix all permissions problems.

What folder did it tell you you didn't have permission to change, by the way...?

The fstab isn't magic. All it does is mount. If mount doesn't work, fstab isn't going to help.

At this point I would recommend sending your USB drive to a specialist data recovery service to see if they can undo your destructive changes.

Last edited by Corona688; 02-04-2015 at 12:09 PM..
# 11  
Old 02-04-2015
Code:
find /etc -type d -exec chmod 777 {} +

Sure, you are right, I should improve the original, this specific line I used to handle the archive themself, just for using this media on several machines, so it would be e.g., sorry for the misunderstanding.

Code:
find /media/usb0/sounds5 -type f -exec chmod 777 {} +

to get this straight.

Last edited by 1in10; 02-04-2015 at 02:42 PM.. Reason: typing grammar
# 12  
Old 02-05-2015
777 is not the magic sledgehammer to fix all permissions problems.

Try 750.
# 13  
Old 02-05-2015
Okay, I'll remember, 'cause apart of this, it is an endless journey. :-)
# 14  
Old 02-05-2015
Quote:
Originally Posted by 1in10
Code:
find /etc -type d -exec chmod 777 {} +

...
I hope you realize that completely compromises your machine.

Anyone who can access the box can now replace files such as /etc/passwd or /etc/shadow, change out SSH keys, have init and services run arbitrary code, and a slew of other things.

Anything and everything under /etc can be replaced. By anyone.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Unknown command '\;'

Hello, I am running ubuntu 16.04 . Below script gives: "unknown command '\;' counter=105 while read COL1 COL2 COL3 do let counter++ url="http://localhost/test/$COL1.$COL2.$COL3"; mysql -uroot -D mydatabase -pmypasswd -e "SELECT video_id FROM video_series_files WHERE id IN \ (SELECT... (12 Replies)
Discussion started by: baris35
12 Replies

2. Solaris

Unknown fstype?

Dear all I have formatted/labeled/partitioned my new disk but when trying to mount it is returning 'unknown fstype' .Can you please let me know how to solve this problem? Thank you (37 Replies)
Discussion started by: hadimotamedi
37 Replies

3. UNIX for Dummies Questions & Answers

USB-USB cable between linux and windows computers

Is there an easy way to setup a cross-over cable (USB-USB) between a linux box and a windows PC? My 2 machines are next to each other but I really do not want to keep transfering my files using my USB drive. Thanks! (4 Replies)
Discussion started by: Xterra
4 Replies

4. AIX

Unknown VGs

Hi Guys, I found on one of the server there are 2 VG's which I dont have any Idea of who created .. as below bash-3.00$ lsvg old_rootvg rootvg datavg altinst_rootvg altinst_rootvg under is meant for alternate disk installation.. But I'm not sure for which version of OS it was... (5 Replies)
Discussion started by: kkeng808
5 Replies

5. HP-UX

su: Unknown id: root

Hi, I am facing an issue with HP-UX box. -bash-4.0$ uname -a HP-UX ctsintco B.11.31 U ia64 2795347624 unlimited-user license When ever iam doing a su - root, it is showing the below error -bash-4.0$ su - root Password: su: Unknown id: root Can you pls. let me know how to over come... (2 Replies)
Discussion started by: ysrikanth
2 Replies

6. Solaris

PING - Unknown host 127.0.0.1, Unknown host localhost - Solaris 10

Hello, I have a problem - I created a chrooted jail for one user. When I'm logged in as root, everything work fine, but when I'm logged in as a chrooted user - I have many problems: 1. When I execute the command ping, I get weird results: bash-3.00$ usr/sbin/ping localhost ... (4 Replies)
Discussion started by: Przemek
4 Replies

7. UNIX for Advanced & Expert Users

NSS - LDAP ---> su: Unknown id:

Hello Experts, I am facing a problem with ldap account, Some systems account running properly, but some systems it returns as "su: Unknown id: username". Please let me know how to start troubleshooting the same. Thanks in Advance. Reagrds, Awadhesh (1 Reply)
Discussion started by: Awadhesh
1 Replies

8. UNIX for Dummies Questions & Answers

unknown utility

Hi everyone, I am a beginner in Linux and Shell scripting.I am migrating a couple of shell scripts from Solaris platform to Linux platform.In one script i saw a usage as : /base/article/ocilib/lobfile $username/$password $filename $filepath I didn't understand what this represents.The... (2 Replies)
Discussion started by: DILEEP410
2 Replies

9. UNIX for Dummies Questions & Answers

unknown host

Hello all I'm new to this site and I have to say that ,it is just awesome. I was able to get most of my questions answered by reading the archives. I've been a UNIX programmer for a while now but new to administration. I just installed SunOS 5.9 on my desktop ( i86pc) . Everything... (3 Replies)
Discussion started by: luft
3 Replies
Login or Register to Ask a Question