LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 03-07-2018, 12:30 PM   #1
netpumber
Member
 
Registered: Sep 2007
Location: In My Box
Distribution: Arch Linux
Posts: 423

Rep: Reputation: 33
External disk (ext4) returns an error when tried to mounted with user permissions


Hello.

I have an external disk formatted with ext4 and when I tried to mount it using the following command

Code:
sudo mount -t ext4 -o umask=0077,gid=1000,uid=1000 /dev/sdb1 /mnt
I'm getting this error:

Quote:
mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdb1, missing codepage or helper program, or other error.
while if I try the simple

Code:
 sudo mount /dev/sdb1 /mnt
the disk is mounted properly.

Why is this happening?
 
Old 03-07-2018, 12:52 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Because umask, gid, etc... are NOT mount options for ext4 filesystems. They ARE mount options for fat filesystems and MAY be for others.

If you run "man mount" and search for ext4 you'll see the options applicable to ext4. (Oddly enough just above the options applicable to fat.) Not all options apply to all filesystems. You specified type as ext4 but then used fat options.

What type of filesystem is it when you do the simple mount? (Look in /etc/mtab.)

Last edited by MensaWater; 03-07-2018 at 01:03 PM.
 
1 members found this post helpful.
Old 03-08-2018, 01:59 AM   #3
netpumber
Member
 
Registered: Sep 2007
Location: In My Box
Distribution: Arch Linux
Posts: 423

Original Poster
Rep: Reputation: 33
Yeap. It's ext4.

Thank you very much.
 
1 members found this post helpful.
Old 03-08-2018, 07:24 AM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Glad I could help. If you don't mind, please go to thread tools and mark this as Solved. It helps future web searchers more quickly find solutions.
 
  


Reply



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
Backup to external usb disk with ext4 or ext3 is dead slow allidium Linux - Server 10 02-06-2013 02:04 AM
How can external disk be mounted so a ordinary user can write to the disk Glenn D. Linux - Newbie 1 10-06-2012 02:32 AM
file permissions on mounted disk goggyturk Linux - Newbie 2 10-25-2006 01:44 PM
Permissions on a mounted vfat USB external harddrive Hikaru79 Linux - Hardware 2 02-25-2005 05:39 PM
Permissions on mounted disk simanyay Linux - Software 2 03-30-2004 10:23 AM

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

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