LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-31-2017, 05:04 PM   #1
PatD
Member
 
Registered: Dec 2016
Posts: 74

Rep: Reputation: Disabled
USB not showing in fstab and is inaccessible to use -getting really confused by it


I have a 32 GB USB micro SD card. It was once used to try out "Multiboot", which did not work at all and left the SD chip unusable. I've had a lot of trouble with it (presumably a bad product?) but have finally managed to access it with gParted and the Mint "Disks" utility. (Running Mint 18.2 Cinnamon)

1. gpt partition, formatted Fat32

2. owner is root, other users have no access

3. other USBs mount as user "me" - so why is this one owned by "root" - this is the key question here, I think. How do I change the ownership from "root" to "me"? None of the suggestions found in forums have worked.

4. does an fstab entry occur automatically, or do I have to add it, as there is nothing in fstab for it??

5. when I plug it in, should it not show up in /media somewhere when it's mounted??

6. in order to use it as a boot stick, does it have to start in Fat? That might sound silly, but it seems that most of the programs that make bootable sticks have you start with that, and apparently I can't change ownership of Fat 32?

Any clarification on how I'm doing this wrong would be greatly appreciated!

Last edited by PatD; 10-31-2017 at 05:04 PM. Reason: boo boo
 
Old 10-31-2017, 07:25 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 8,840

Rep: Reputation: 1846Reputation: 1846Reputation: 1846Reputation: 1846Reputation: 1846Reputation: 1846Reputation: 1846Reputation: 1846Reputation: 1846Reputation: 1846Reputation: 1846
What's on the disk now, anything? Still have your multiboot files there? Did you create a new partition table on it with GParted? Do you see an entry for it in /etc/mtab after you insert it? Generally with the newer Ubuntu's (such as Mint) a drive plugged in will show under /media/user.

I would not expect it needs to be fat32, what are you using it for? Creating a bootable device with an iso on it generally uses Fat32.
 
Old 10-31-2017, 08:59 PM   #3
PatD
Member
 
Registered: Dec 2016
Posts: 74

Original Poster
Rep: Reputation: Disabled
Nevermind, but thanks.

I don't know what the heck was going on, but when I tried it in my other freshly rebooted box, with Ubuntu Mate, it worked fine.
So I put music on it and stuffed it into an android phone. Tunes!
Done with it.
 
Old 10-31-2017, 09:26 PM   #4
PatD
Member
 
Registered: Dec 2016
Posts: 74

Original Poster
Rep: Reputation: Disabled
Angry OK - the issue is this box - cyberspace-style haunted

This is a fairly new box, an i7 chip, 16 GB RAM and 3 TB disk space. Got it in July.

So far every OS on here has gone weird - it started with Windows 10, which did odd things, then Linux Mint 18.1 Cinn., then Ubuntu Mate 16.04, and now again Mint 18.2.

Every OS has had issues with USBs and permissions, and every OS has had incidences where stuff just stops working; and I don't have a clue what the problem is.

Can someone recommend something to test this hardware? Or is there some known issue that might be responsible?

Last edited by PatD; 10-31-2017 at 09:26 PM. Reason: sp.
 
Old 11-01-2017, 04:05 AM   #5
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware, OpenBSD
Posts: 3,946
Blog Entries: 11

Rep: Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176
Quote:
Originally Posted by PatD View Post
2. owner is root, other users have no access

3. other USBs mount as user "me" - so why is this one owned by "root" - this is the key question here, I think. How do I change the ownership from "root" to "me"? None of the suggestions found in forums have worked.
You need to mount it with the "user" option. A suitable fstab entry is the way to go.
Quote:
4. does an fstab entry occur automatically, or do I have to add it, as there is nothing in fstab for it??
No. Only installer programs create fstab entries automatically. Anything else you must enter yourself, using an editor.
Quote:
5. when I plug it in, should it not show up in /media somewhere when it's mounted??
Only if it is mounted on a point in the media tree. You need to create a mountpoint for it, then create your fstab entry with that mountpoint specified.
Quote:
6. in order to use it as a boot stick, does it have to start in Fat? That might sound silly, but it seems that most of the programs that make bootable sticks have you start with that, and apparently I can't change ownership of Fat 32?
The problem is that FAT, being a Windows filesystem, doesn't recognise the concept of ownership. When you mount a partition, mount assigns some kind of owner to the files (root unless you specify the user option), but booting is a different matter.

You can boot from an ext4 stick, but you have to install extlinux as the bootloader. Syslinux only works with FAT.
 
Old 11-01-2017, 09:12 AM   #6
PatD
Member
 
Registered: Dec 2016
Posts: 74

Original Poster
Rep: Reputation: Disabled
Thank you, hazel.

Why does this box, with different distros, do this stuff with USBs when my other machine does not? Is there something(s) I can change that will get rid of this issue?

I was just going to blow it away again and re-install, but I'm worried it won't help.
 
Old 11-01-2017, 11:24 AM   #7
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware, OpenBSD
Posts: 3,946
Blog Entries: 11

Rep: Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176
I don't have a lot of experience with Mint, but it was my impression the last time I ran it, that it mounts usb drives automatically for users in the plugdev group. A lot of distros don't do that. Personally I hate the idea of things being mounted "behind my back", but some people love it because it's so convenient.

Don't reinstall! That's seldom necessary with Linux and you never learn anything by doing that. Most problems can be fixed with a little editing. First step is to look at your /etc/fstab file.

Last edited by hazel; 11-01-2017 at 11:30 AM.
 
Old 11-01-2017, 01:19 PM   #8
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 19.2 (Netbook) and 18.3 (Desktop)
Posts: 1,453

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
Quote:
This is a fairly new box, an i7 chip, 16 GB RAM and 3 TB disk space. Got it in July.
Is this a branded system or a "home bake" job? Can you supply any details; manufacturer, model No. type, etc of the complete system or motherboard in the second instance just in case there is a hardware issue with the USB ports that can be researched. There may be something in the BIOS (or equivalent) which affects USB access but... No details, can't check.

Play Bonny!

 
Old 11-01-2017, 04:05 PM   #9
PatD
Member
 
Registered: Dec 2016
Posts: 74

Original Poster
Rep: Reputation: Disabled
Thanks for your efforts but...

The install basically died - other things started acting up - music player skipping, browser opening and closing - I wasn't kidding about "cyberspace-style haunted".

Anyway, I ran out of ability to deal with my frustration and blew it away - I was getting too freaked. In all the years I've never seen such craziness in a PC. No idea what to make of it.

We'll see what comes up in a fresh install.
 
Old 11-01-2017, 09:39 PM   #10
PatD
Member
 
Registered: Dec 2016
Posts: 74

Original Poster
Rep: Reputation: Disabled
Update

2 separate hard drives, newly partitioned, formatted and loaded up, one with Mint 18.2 Cinnamon, one with Ubuntu Mate 16.04.3. (This computer has so far been unable to download a copy of Fedora that works. Strange also, no?)

Everything apparently fine except that with both installs:

any new partitions made by gParted are owned by root. Hard drives and USBs. No difference, if gParted created the partition it is owned by root.

I'm completely at a loss. Am diligently searching out partitioning info on the one hand (and so far getting nowhere), and other hardware issues that may be responsible for this box's bad JuJu on the other. Can't afford to replace it.

Somewhat Sisyphus-like, I'm starting to feel.
 
Old 11-02-2017, 03:45 AM   #11
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware, OpenBSD
Posts: 3,946
Blog Entries: 11

Rep: Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176
So what's the problem? All disk devices are owned by root, with group owner disks.
Code:
brw-rw---- 1 root disk 8,  0 Nov  2 05:43 /dev/sda
brw-rw---- 1 root disk 8,  1 Nov  2 05:43 /dev/sda1
brw-rw---- 1 root disk 8,  2 Nov  2 05:43 /dev/sda2
brw-rw---- 1 root disk 8,  3 Nov  2 05:43 /dev/sda3
brw-rw---- 1 root disk 8,  4 Nov  2 05:43 /dev/sda4
brw-rw---- 1 root disk 8,  5 Nov  2 05:43 /dev/sda5
brw-rw---- 1 root disk 8,  6 Nov  2 05:43 /dev/sda6
brw-rw---- 1 root disk 8,  7 Nov  2 05:43 /dev/sda7
brw-rw---- 1 root disk 8, 16 Nov  2 05:43 /dev/sdb
brw-rw---- 1 root disk 8, 32 Nov  2 05:43 /dev/sdc
brw-rw---- 1 root disk 8, 48 Nov  2 05:43 /dev/sdd
brw-rw---- 1 root disk 8, 64 Nov  2 05:43 /dev/sde
brw-rw---- 1 root disk 8, 80 Nov  2 05:43 /dev/sdf

Or are you talking about the mount points for those devices? On my system, they are owned by root too.
Code:
drwxr-xr-x 2 root root 4096 Aug 22 19:54 cdrom
drwxr-xr-x 2 root root 4096 Aug 22 19:54 floppy
drwxr-xr-x 2 root root 4096 Oct 11 07:11 usb
 
Old 11-02-2017, 10:29 AM   #12
PatD
Member
 
Registered: Dec 2016
Posts: 74

Original Poster
Rep: Reputation: Disabled
If I partition a USB or HDD, all the permissions are root and all users are read only.
On my other machine(s) this does not happen, I partition a disk and away we go.

On this one I have 3 partitions on 2 disks. One was an NTFS holdover from when this was a windows box. When I redid that partition to ext4, it became read-only also. Any USBs end up the same. I can't access them.

In the past week, I've done and this has happened with every one. 5 new, clean installs of different distros. Never happened to me on any other box. The other one is where I try to fix the USBs, but I can't move the actual hard drive over to it for now.

I'm way out of my depth here.

Whoa! This has failed every other time I've tried it - all of a sudden it worked!

sudo chown -R USERNAME:USERNAME /media/mynewdrive

Been trying that for days, and while it appeared to work it never actually changed the owner before. Wonder why? I dang near sent this box out the window!!

Last edited by PatD; 11-02-2017 at 11:28 AM. Reason: maybe Solved
 
  


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
Contents of encrypted USB drive inaccessible after computer freeze 6y1a5 Linux - Newbie 2 10-29-2016 06:35 PM
CD on system is showing The Drive appears confused. vladtimp Linux - Software 0 03-28-2006 05:34 PM
only 1 CD ROM showing up in FSTAB fuzzai Linux - Hardware 4 02-03-2006 07:54 PM
Confused by USB ruidh Linux - Hardware 3 04-03-2005 11:36 PM
partition not showing in fstab or mtab tyccea Linux - Newbie 7 10-21-2003 09:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:06 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration