LinuxQuestions.org
Help answer threads with 0 replies.
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 03-13-2012, 11:50 PM   #1
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Rep: Reputation: 47
Linux in a folder


Is it possible to install linux in a folder with all the essential folders like /bin /etc /var etc to be in that one main folder? The kernel line on grub entry will need to have the name of that folder for it to load.

Last edited by rng; 03-13-2012 at 11:51 PM.
 
Old 03-14-2012, 03:20 AM   #2
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 385Reputation: 385Reputation: 385Reputation: 385
It is possible but depends on which distro you are using check this:http://distro.ibiblio.org/tinycorelinux/install.html
Quote:
Note: If you already have a Linux System booting, then you do not need to make a partition for Tiny Core! Tiny Core can run in a single directory in your existing Linux installation. To do so, at step 1, uncheck the option to "Install boot loader". At step 2, select an existing partition, and at Step 3, do not format it. Upon completion you will need to manually configure your existing boot loader.
Regards
 
Old 03-14-2012, 10:05 AM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,534

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
The last post in the link below (post # 10) indicates this was done with Fedora and gives the Grub 2 menuentry example. I expect you would be able to do this with other distributions with modifications after extracting the CD contents to a Folder as in this example.

http://www.linuxquestions.org/questi...needed-882796/

Last edited by yancek; 03-14-2012 at 10:07 AM.
 
Old 03-15-2012, 04:04 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,996

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
One can easily put every part of a linux OS into a single file.

The problem is that now every app and every other statement that may include a path will need to be edited.
 
Old 03-15-2012, 07:46 PM   #5
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Original Poster
Rep: Reputation: 47
It seems possible with liveCDs. But for regular installation, is it possible to make a folder as root rather than / being root of the system?
 
Old 03-19-2012, 08:44 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,361

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
I think the concept you asking for is 'chroot', but it would help if you explained exactly why you want to do this.
Some things eg BIND/named offer this as a built-in option.
 
Old 03-20-2012, 07:26 AM   #7
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Original Poster
Rep: Reputation: 47
Quote:
it would help if you explained exactly why you want to do this.
Maybe not of much use functionally, but it would be better if I can have my hard disk as a whole and operating system should be limited to a folder, rather than operating system taking up whole of the disk (partition at least) and giving only /home/user folder to me! The problem is much solved by limiting the operating system to a partition, while I can use separate partition(s) for my data.

Moreover, it would be great if the operting system folder could be movable and be put anywhere - needing only bootloader pointer to be changed. Again probably not much of functional importance.

Last edited by rng; 03-20-2012 at 07:28 AM.
 
  


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
opening folder Windows Folder in Red Hat Linux TEXT MODE janbaztaimur Linux - Newbie 8 05-17-2011 04:34 PM
mixed mounting of automount and fstab in one folder? &different home folder using NIS herofmm Linux - Software 0 04-06-2009 11:00 AM
save web page results in a file and a folder. Whats the folder for? geeyathink General 2 01-30-2008 06:57 AM
Folder Max Size and Limiting SSH access to home folder. Mefistofeles Linux - General 4 11-26-2005 02:09 PM

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

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