LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-05-2006, 09:39 AM   #1
Sephyr
LQ Newbie
 
Registered: Mar 2004
Location: Stavanger, Norway
Distribution: Mandrake 9.2
Posts: 1

Rep: Reputation: Disabled
Symbolic links to Ramdisk


I'm trying to set up a "diskless" pc which should run Mandrake Linux 8.1 from a Compact Flash card of only 128 Mb. It comes with a manual which states what configuration files to modify etc, but it's rather incomplete in some areas. The Compact Flash card is made read only, and the manual states symbolic links are required to enable writing to the root file system. This is what the manual describes about these links:

Create symbolic links into ramdisk
A series of symbolic links are required to enable writing to the root file system. These are described in the table below:

Symbolic link location --- Filesystem location
/ --- /ramdisk
/tmp --- /ramdisk/tmp
/etc/exports --- /ramdisk/etc/exports
/etc/mtab --- /ramdisk/etc/mtab
etcetc..

Obviously I can't do "ln -s /ramdisk /", does anyone have an idea how these links are supposed to be created? Will I need to create symbolic links to each separate file in these directories?
 
Old 08-12-2006, 12:09 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Obviously you ordinarilly couldn't do the ln that way but since presumably the root you are on is the one from the ramdisk perhaps they have something embedded that allows for this? Did you try it?

Also ln does have a force option (-f). Maybe trying that?

It seems a bit of a catch 22 however - if you can't write to / without the link then I don't see how you could create the link as it requires a write. It is this that makes me think they somehow allow for it in what you booted.

It may be morons wrote the documentation. Maybe they meant you needed to chroot it to make it writable:

chroot /ramdisk

Would make /ramdisk the root (/) and all its subdirectories would then be relative to that new root.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
symbolic links durden2.0 Linux - Newbie 6 11-12-2008 03:06 AM
cp and symbolic links? sausagejohnson Linux - General 3 07-19-2005 01:25 AM
Symbolic links pdstatha Programming 1 04-08-2002 09:50 PM
symbolic links winger Linux - General 5 04-06-2002 05:16 PM
Symbolic links Valerie Linux - Newbie 12 03-31-2002 01:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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