- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Can't create file
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 05:39 PM
05-26-2004 05:39 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 05:50 PM
05-26-2004 05:50 PM
Re: Can't create file
Did you check the accessrights to that directory ?
Should be at least drw-r--r-- ( 644 ).
If not, use 'chmod 644 directory_name' or
'chmod 755 directory_name'.
755 -> drwxrw-rw-
By the way, pls read the manpages for chmod,
that might give you an idea.
Rgds
Alexander M. Ermes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 06:21 PM
05-26-2004 06:21 PM
SolutionPlease confirm that the filesystem on which you are creating the directory is mounted with read-only or read-write access.
You can do this by
#cat /etc/fstab
If it's NFS filesystem check whether its exported as read-only from the NFS server.
You can do this by
#exportfs
command
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 06:48 PM
05-26-2004 06:48 PM
Re: Can't create file
you created the directory. That went right, so at that time the filesystem was not read-only. But now it apparantly is. What did you do after creating the directory? Reboot the system? Mount a filesystem on /db?
First cd to the directory and type 'df .' This will tell you which filesystem it belongs to. Next check (in /etc/fstab) if the filesystem is mounted read-write in /etc/fstab. And tell us the results...
JP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 07:28 PM
05-26-2004 07:28 PM
Re: Can't create file
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext2 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
LABEL=/tmp /tmp ext3 defaults 1 2
LABEL=/usr /usr ext3 defaults 1 2
LABEL=/var /var ext3 defaults 1 2
/dev/sda9 swap swap defaults 0 0
is it a read-only system ? thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 07:35 PM
05-26-2004 07:35 PM
Re: Can't create file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 09:46 PM
05-26-2004 09:46 PM
Re: Can't create file
df -h
peace, R.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 10:32 PM
05-26-2004 10:32 PM
Re: Can't create file
You could try the following
mount -o remount,rw /
Though you might have to replace the "/" with the device for the root filesystem
If that works and you can then create your file I would start to suspect your boot process and we can look at that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2004 08:19 PM
05-27-2004 08:19 PM
Re: Can't create file
mount command shows the status of each mounted file system.
e.g.)
# mount | grep /boot
/dev/hda5 on /boot type ext2 (rw)
# mount -o remount,ro /boot
# mount | grep /boot
/dev/hda5 on /boot type ext2 (ro)
# mount -o remount,rw /boot
# mount | grep /boot
/dev/hda5 on /boot type ext2 (rw)
#
"(rw)" means read & write.
"(ro)" means read only.
What shows mount command on your box?
Perhaps, you have mounted /db with read only option.
Is /db mounted disk? or just directory on / disk?
thanks.