Sponsored Content
Full Discussion: Unknown fs on usb?
Top Forums Shell Programming and Scripting Unknown fs on usb? Post 302933887 by 1in10 on Monday 2nd of February 2015 06:32:47 PM
Old 02-02-2015
Code:
fdisk -l /dev/sdb

works fine to show the following:
Code:
Disk /dev/sdb: 8086 MB, 8086618112 bytes
255 heads, 63 sectors/track, 983 cylinders, total 15794176 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0004f327

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1              63    15791894     7895916   83  Linux

not beeing cheeky but typing as root just

Code:
blkid

it tells me

Code:
/dev/sda5: UUID="c95dabb2-85b9-4778-b9cb-8bd7727fd77a" TYPE="swap" 
/dev/sda1: UUID="71d40357-4318-4e08-a4f3-ab3f019c194f" TYPE="ext4" 
/dev/sdb1: UUID="641ea5c8-47d2-4473-ae01-6499d2f7ccba" TYPE="ext3"

I am sure that sda1 UUID="71d.." so on is my hdd on this laptop. That means sdb1 UUID="641..."
must be that usb-device.
So changing to /etc and typing
Code:
cat /fstab

brings me this,
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,noauto  0       0

what was not supposed to be, that there is "noauto" for /media/usb0.
Well now I'll try to fetch how to change the fstab file.

---------- Post updated at 09:32 PM ---------- Previous update was at 09:07 PM ----------

Trying to do so, it did not work out. But my fstab is read like this below:
Code:
# / 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

So should I write it

Code:
/dev/sdb1      /media/usb0     auto     rw,user,auto  0       0
UUID=641ea5c8-47d2-4473-ae01-6499d2f7ccba                ext3

Well I did, but the error remains the same.

to be honest about wheezy and this change for the UUID of a device, that I still work on squeeze, although it is not state of the art, it makes me wonder how to remember any UUID for working with different mobile storages, any, would that mean to change for any machine the fstab for that very single UUID? Is that an enhancement?
This User Gave Thanks to 1in10 For This Post:
 

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

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. 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

7. 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

8. 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

9. 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
All times are GMT -4. The time now is 09:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy