LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 03-27-2011, 05:08 PM   #1
rogue_spider
LQ Newbie
 
Registered: Jul 2009
Posts: 21

Rep: Reputation: 0
linux without partitions


is it possible to make lfs without partitions?
just have folders
not sure what its called tried looking up but could not find president of it anywhere that i could use.
 
Old 03-27-2011, 05:26 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
I'm guessing you mean creating files to be the 'partitions' and mounting them via the loopback driver ?

Code:
dd if=/dev/zero of=lfs_root.img bs=1024 count=10000000
mount -o loop,rw /lfs_root.img /mnt/lfs
Adjust as necessary


cheers
 
Old 03-27-2011, 08:32 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
Presuming the OP actually means what s/he asked, Linux supports filesystems built directly on the device as well as on partitions. I have no idea whether lfs can be built on such. I suspect any issues confronted shouldn't be insurmountable.
 
Old 03-27-2011, 08:47 PM   #4
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
LFS most commonly refers to Linux From Scratch.

However I recall that LFS also meant the standard Linux file structure, meaning the types of files that go into each directory such as /etc and /bin and /usr etc. I tried to find corroborating documentation but it is scarcer than hen's teeth. Maybe it is just my dementia flaring up.

In any case it is possible to create a file system on a bare disk. I'm having trouble finding corroborating documentation there as well but I know that I've heard about it. Nevertheless it seems like a bad idea if the person doing it hopes to ask questions about the file system when they run into trouble. Imagine the confusion when the person asks a question and receives the standard instruction to post the result of fdisk -l.

LVM, the logical volume manager in Linux, can treat a bare disk the same way that Windows treats a dynamic volume. LVM can be useful to resize partitions that are already in use.

I also found documentation about Linux LDM, the logical disk manager in Linux. Evidently it is also used to create the same effect as Windows Dynamic Volumes. Here is the reference.
http://www.kernel.org/doc/Documentation/ldm.txt

Anyway I will repeat that it seems like a bad idea for a newbie to create a file system on an unpartitioned disk.
 
Old 03-27-2011, 09:10 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
Given this threads location, I think we can safely assume the intent of the acronym.
Perhaps the other reference you were looking for was fhs.
 
Old 03-28-2011, 11:18 AM   #6
rogue_spider
LQ Newbie
 
Registered: Jul 2009
Posts: 21

Original Poster
Rep: Reputation: 0
ldm

LFS refers to Linux From Scratch.
Quote:
I also found documentation about Linux LDM, the logical disk manager in Linux. Evidently it is also used to create the same effect as Windows Dynamic Volumes. Here is the reference.
http://www.kernel.org/doc/Documentation/ldm.txt

Anyway I will repeat that it seems like a bad idea for a newbie to create a file system on an unpartitioned disk.
this was very helpful
so LDM is already implemented into Ubuntu so i can reference it as my file structure?
and still adapt LFS on top of it?
or should i just give up and download distro and accept whats given me.
 
Old 03-28-2011, 11:36 AM   #7
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Quote:
Originally Posted by rogue_spider View Post
so LDM is already implemented into Ubuntu so i can reference it as my file structure?
and still adapt LFS on top of it?
or should i just give up and download distro and accept whats given me.
If you read the entire article, as I just did for the first time, you will see that LDM refers to a Windows disk partitioning scheme. You can enable it in Linux so that lilo can boot a Linux distribution on an LDM managed disk. Nevertheless it is a Microsoft device.

If you want to dual boot Windows and Linux then I would recommend staying away from either LDM or Linux LVM (Logical Volume Manager).

If you just want Linux on a disk then LVM would work. However I would caution you to search LQ for problems associated with using LVM. There are lots of questions/threads started by people who were experiencing problems.

Keep It Simple.

If your disk is less than or equal to 2 terabytes then just use the traditional MBR style disk partitioning system.

Last edited by stress_junkie; 03-28-2011 at 11:39 AM.
 
Old 03-28-2011, 03:54 PM   #8
rogue_spider
LQ Newbie
 
Registered: Jul 2009
Posts: 21

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by stress_junkie View Post
If you read the entire article, as I just did for the first time, you will see that LDM refers to a Windows disk partitioning scheme. You can enable it in Linux so that lilo can boot a Linux distribution on an LDM managed disk. Nevertheless it is a Microsoft device.

If you want to dual boot Windows and Linux then I would recommend staying away from either LDM or Linux LVM (Logical Volume Manager).

If you just want Linux on a disk then LVM would work. However I would caution you to search LQ for problems associated with using LVM. There are lots of questions/threads started by people who were experiencing problems.

Keep It Simple.

If your disk is less than or equal to 2 terabytes then just use the traditional MBR style disk partitioning system.
sry got excited when i read http://www.linux-ntfs.org/
no i just didna like the idea of being partitioned when i could use a file structured system and not have to worry
about it later.
 
  


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] Is it safe to resize my Slackware partitions after removing my Mint 10 partitions? Robert.Thompson Slackware 19 02-18-2011 11:47 AM
Change primary partitions to logical partitions AND migrate their data? chickenlinux Linux - Hardware 10 04-04-2010 04:31 PM
windows killed my partitions! no linux partitions found on this computer. The MJ Linux - Software 10 01-05-2007 08:31 AM
Question on creating more partitions than default ones, i.e. /home,/root partitions casmac SUSE / openSUSE 1 12-20-2006 05:02 PM
how do I add partitions to drives that have Logical Volume (LVM) partitions? The MJ Linux - Software 5 08-17-2006 06:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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