LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-30-2013, 03:02 PM   #1
sam.m
LQ Newbie
 
Registered: Jul 2011
Location: New Jersey
Distribution: Linux - Red Hat, Suse, Fedora, Ubuntu, Debian, Cent OS, HP UX - 11.x
Posts: 17

Rep: Reputation: Disabled
Cannot create directories as root under /home


Hi,
I have recently ran in to SUSE server which has LVM filesystems. I tried to create a directory under /home but got Permission Denied error. Listed below is a sample output. Is this due to a special configuration in linux or something needs to be fixed.

Note: var, opt, home are currently directories under / NOT fs, yet I still get the issue.

root@######:df -lk /var
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/rootvg-rootlv
4194172 2262780 1931392 54% /
root@######:df -lk /opt
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/rootvg-rootlv
4194172 2262780 1931392 54% /
root@######:df -lk /home
Filesystem 1K-blocks Used Available Use% Mounted
- 0 0 0 - /home
 
Old 10-30-2013, 03:31 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Showing the output of the disk free command doesn't give much information to work with.

Far better would be to show us the commands you use and the output you get when you try to create the directory in /home.
 
Old 10-30-2013, 03:50 PM   #3
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Also the output of df (without options) and mount
 
Old 10-30-2013, 03:51 PM   #4
sam.m
LQ Newbie
 
Registered: Jul 2011
Location: New Jersey
Distribution: Linux - Red Hat, Suse, Fedora, Ubuntu, Debian, Cent OS, HP UX - 11.x
Posts: 17

Original Poster
Rep: Reputation: Disabled
Sure, when I run

root@######:mkdir /home/testdir
mkdir: cannot create directory `/home/testdir`: No such file or directory
 
Old 10-30-2013, 04:45 PM   #5
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
So, that begs the question. Does /home exist?
 
Old 10-30-2013, 04:59 PM   #6
Madhu Desai
Member
 
Registered: Mar 2013
Distribution: Rocky, Fedora, Ubuntu
Posts: 541

Rep: Reputation: 153Reputation: 153
Quote:
Originally Posted by sam.m View Post
Note: var, opt, home are currently directories under / NOT fs, yet I still get the issue.
I dont understand this, all filesystems needs to be mounted under root(/), in some directory. So eventually, when listed, they all show under root(/).

Code:
root@######:df -lk /var
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/rootvg-rootlv
4194172 2262780 1931392 54% /
root@######:df -lk /opt
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/rootvg-rootlv
4194172 2262780 1931392 54% /
root@######:df -lk /home
Filesystem 1K-blocks Used Available Use% Mounted
- 0 0 0 - /home
From the output, /var and /opt have no seperate logical volume, and are mounted under root(/). However, there is some problem in /home FS. Cause, had it been seperate LV, it would have shown as /dev/mapper/rootvg-<home lv>. Or atleast, if its not under LV, it would have shown as some /dev/sdX. But since its showing as -, you probably removed /home LV or partition.
 
Old 10-30-2013, 05:29 PM   #7
sam.m
LQ Newbie
 
Registered: Jul 2011
Location: New Jersey
Distribution: Linux - Red Hat, Suse, Fedora, Ubuntu, Debian, Cent OS, HP UX - 11.x
Posts: 17

Original Poster
Rep: Reputation: Disabled
Exactly, when I do a df on /home it should show under "/" but thats not the case here and also home exists as a directory under "/".
 
Old 10-30-2013, 05:31 PM   #8
sam.m
LQ Newbie
 
Registered: Jul 2011
Location: New Jersey
Distribution: Linux - Red Hat, Suse, Fedora, Ubuntu, Debian, Cent OS, HP UX - 11.x
Posts: 17

Original Poster
Rep: Reputation: Disabled
Also home does not have a separate logical volume in this case. Its supposed to be under "/".
 
  


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
[SOLVED] cannot create user home directories bluegospel Linux - Newbie 14 06-06-2010 02:52 PM
Create home directories for existing users.. thejonmoore Linux - Server 6 05-05-2008 06:10 AM
Apache Root/Home Directory and setting up FTP for home directories? Mankind75 Linux - Newbie 6 07-23-2006 02:37 PM
root unable to create directories in /home? cpv204 Solaris / OpenSolaris 6 11-25-2003 10:33 AM

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

All times are GMT -5. The time now is 09:04 PM.

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