LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 01-18-2014, 10:39 PM   #1
leetwanker
LQ Newbie
 
Registered: Nov 2013
Posts: 8

Rep: Reputation: Disabled
Mount a writable directory in a read-only file system?


I have a dd-wrt router I need to create a /usr/share directory to satisfy a path requirement that I can't figure out how to change. The /usr filesystem is read-only.

The device I want to mount is @
/dev/scsi/host0/bus0/target0/lun0/part3

I've tried
Code:
root@DD-WRT:/dev/mtdblock# mount -t ext2 /dev/scsi/host0/bus0/target0/lun0/part3 /usr/share/
mount: mount point /usr/share/ does not exist
being that /usr/share/ doesn't exist and I can't create it, how do I mount it?

Can anyone tell me how to do this? Thanks!

Last edited by leetwanker; 01-18-2014 at 11:21 PM.
 
Old 01-19-2014, 03:54 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
The only way around this is to:
1 - reboot into single user mode
2 - manually (re)mount /usr with read-write permissions ( mount -n -o remount, rw /usr )
3 - manually create /usr/share,
4 - reboot.

Now the target exists and you can mount something on it. That what is mounted on /usr/share still has read-only permission!

It isn't clear from your post if the solution I gave is at all possible. You mention a dd-wrt router , which might not allow you to do the above steps.
 
  


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] How to mount read-only file system eugeneg Linux - Newbie 10 05-01-2011 03:34 PM
Can't empty the /tmp directory Read-only file system warning roctaiwan Linux - Newbie 8 03-04-2010 06:24 AM
How to read .chm file in fedora, can't mount ntfs file system ishti_du Linux - Newbie 12 03-06-2007 03:27 AM
mkdir: cannot create directory `test': Read-only file system punt Linux - General 2 04-16-2005 09:58 PM
Can Fedora Core 3 mount and read vmfs file system smkamene Linux - Software 2 01-24-2005 09:24 PM

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

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