Assisting 13514253 developers since 2005.

Web Developer, Open Source, Loyal, Dad.  

Read More »

mkfs.ext3: Permission denied while trying to determine filesystem size

Posted by David  •  Oct 4th, 2014 9:33:27 pm - Subscribe | Mood: tired | Music: No Music

While trying to mkfs I received an error: Permission denied while trying to determine filesystem size.

mkfs.ext3: Permission denied while trying to determine filesystem size

This is a quick entry, I wanted to mount a device to my Linux system, but I received the error:

Error
mkfs.ext3: Permission denied while trying to determine filesystem size

I was sure why this was outside of the obvious permission denied, but my focus was on the filesystem size part of this error. Why was it taking so long to determine the filesystem size I thought?

Well, it does NOT have to do with the file system size of the device, but it on the first two words of the error. Permission denied. I solved this problem by not being an end user with no permissions to the system, I became a super user by executing su -. I then tried my command again:

Make File System ext3 on Device
mkfs -t ext3 /dev/xvdj

Success! The out was:

My lesson learned here was not to assume always that you have access to everything. You are not always a super user and you should never run as root in production.

Comments 0  •  Oct 4th, 2014 9:33:27 pm - Subscribe  •  Tweet this entry | Post a comment



Responses

Leave a Reply


ReCaptcha:

Posting as anonymous Anonymous guest, why not register, or login now.

Image Gallery

Badges

Amazon Wishlist Stumble Upon Toolbar
Internet Blogs - Blog Top Sites Internet Blogs - Blog Top Sites Technology

About Me

avatar

@davidpolanco
iPhone: 29.513522,-98.565523 Web Designer, Open Source, Loyal, Dad. Learn more...