LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 04: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, 04:31 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
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, 04:50 PM   #3
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Also the output of df (without options) and mount
 
Old 10-30-2013, 04: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, 05:45 PM   #5
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
So, that begs the question. Does /home exist?
 
Old 10-30-2013, 05:59 PM   #6
mddnix
Member
 
Registered: Mar 2013
Location: Bangalore, India
Distribution: Redhat, Arch, Ubuntu
Posts: 508

Rep: Reputation: 139Reputation: 139
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, 06: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, 06: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


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


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