LinuxQuestions.org
Review your favorite Linux distribution.
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 09-24-2002, 04:01 AM   #1
smitty
LQ Newbie
 
Registered: Sep 2002
Distribution: redhat,mandrake
Posts: 4

Rep: Reputation: 0
partition w/cfdisk problem


When I try to add a partition for LFS with cfdisk I get the response "cannot create logical drive here-would create two extended partitions"
My drive looks like this
hda1 boot primary win 95 fat 32(LBA) 4491(MB)
hda5 logical Linux ext2 254
hda6 logical Linux swap 411
hda7 logical Linux ext2 1357
hda8 logical Linux ext2 1044
hda9 logical Linux ext2 1044
hda3 Primary Linux ext2 / 4194
hda4 Primary Linux swap 82
Logical Free 27135

This computer is triple booting Mandrake 8.0, redahat 7.1 and windows using lilo. I am in Redhat 7.1 using cfdisk but had the same problem when in mandrake. Selected free partition, new,beggining and got the above results.
I don't have partition magic. I am hopeful someone could help me in getting past this point so I can get started with LFS. What, how can I add a partition?

Last edited by smitty; 09-24-2002 at 04:03 AM.
 
Old 10-14-2002, 03:32 PM   #2
vladkrack
Member
 
Registered: Oct 2002
Location: Curitiba - Brazil
Distribution: Conectiva
Posts: 334

Rep: Reputation: 30
Hi smitty,

The problem is that you can't have more logical partions, because you already have 3 primary partitions and a logical one.

The sun of these partitions can't exceed 4, so you will have to remove one of the then to create another.

Another thing, you don't need more than one swap partitions.

Tip: if you were using LVM, it would be easier to fix that, so next time ...
 
Old 10-16-2002, 05:26 PM   #3
smitty
LQ Newbie
 
Registered: Sep 2002
Distribution: redhat,mandrake
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks

Thanks for the response. I get around pretty good with linux but really want to do LFS. I have got past the drive part and am stuck on installing bash. I was doing it in mandrake 9.0 and using 2.0 Gbytes of /mnt/LFS. I dont have the ncurses stuff referred to in 3.3 chapter 5 and it is extremely vague to me. I cant find the ncurses stuff either. I wish people would be a bit more step-by-step for newbies and try to remember just how much trouble they had when first starting.
For example to state something like "install ncurses" doesn't inform a newbie how to do it.
Something a bit more step-by-step would
1. Check to see if your distro has ncurses(tell them how to do it)
2. if not, get ncurses here http://www.somesite.com(put it in /usr/local/sbin for example)
3. do this tar xvf ncurses.tar.gz or something similar
so on so on so on
Not ranting but if a useable distro for LFS doesn't install with ncurses there should be a link to find it. The goal for LFS is to learn linux and not to spend hours trying to find files. I have almost given up on doing it due to the vagueness of just what to do next. There seems to be an awful lot of assumptions made and most people doing it are newbies. I know the mailing list is huge compared to others and if the directions in the book were a little more elementary and step-by-step theis list would diminish greatly.
I would suggest the writers of LFS book 3.3 and others put a newbie in front of a computer and see if they can do it. If not it is the fault of the writers and not the people attempting to do it.
Anyways sorry for running on. I just want to do this so very bad and can't seem to get past what is obvious for most.
Steve
 
Old 10-17-2002, 02:40 AM   #4
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
Are you sure that you don't have ncurses? It seems like mandrake would have that. check in /usr/local/lib for the files too. if that doesn't work, do "updatedb" to make a database of all of the files on your system. then do "locate libcurses" or locate libncurses" and you will probably get something. If not, isn't mandrake an rpm-based distro? You will probably be able to find the "ncurses-dev" rpm package on one of the cd's or somewhere on a mandrake ftp site. let us know how it turns out. The rest of the book is really step-by-step (I built my latest one by doing copy and paste straight from the book to the command line)

EDIT:

the "put package here" stuff is just part of getting used to linux. It's a basic operation that you are going to have to learn.... which is why you are doing lfs, right?

if you download something, you usually have an option to save it in a particular directory. if you want to move it, do "mv <source> <destination>", or copy it "cp <source> <destination>" for example, if i have a file in /root and I want it in /usr/src/sources, i'll do this:

mv /root/file /usr/src/sources/

now, the "tar -zxvf <file.tar.gz>" is another one you are just going to have to learn. gzip is a program that compresses/decpompresses files, and tar kindof does the same, but it will do it to a folder w/ stuff in it. the "tar -zxvf <file.tar.gz>" will unpack both the gzip and the tar. and give you the folder which the sources are in. when you install something like bash, you need to change into the directory you just unpacked (ex: cd /usr/src/sources/bash-xx) and then type in exactly what the book says... that's all there is to it.

if you have a <file.tar.bz2> file, do "tar -jxvf <file.tar.bz2>", the only difference being the "j" instead of "z". If this is too much, to unpack a .bz2 file, do "bzcat <file.tar.bz2> | tar -xv".... just like it says in the book.

so basically, other than the ncurses thing, you need to know three basic commands:

cp --> copy a file (cp <from> <to>)
mv ---> move a file (mv <from> <to>) *** also used to rename files
tar -jxvf <file.tar.bz2>
tar -zxvf <file.tar.gz>

It does take a lot of reading to start to become comfortable with all of this, but that's how you learn. isn't that your reason for going through LFS?

good luck

-Adam

Last edited by adam_boz; 10-17-2002 at 02:52 AM.
 
Old 10-17-2002, 02:57 AM   #5
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
P.S.- the (partial) goal for lfs IS to spend those hours looking for files, then when you're done, you realize that there was a much easier, faster way to do it.... and you've just learned something.

for instance:

to see if you have ncurses in /usr/local/lib, try this:

ls /usr/local/lib | grep curses

that will list all the files in /usr/local/lib, then send that output to grep, which only lets through files which match the string "curses"

Last edited by adam_boz; 10-17-2002 at 02:59 AM.
 
Old 10-18-2002, 03:40 AM   #6
smitty
LQ Newbie
 
Registered: Sep 2002
Distribution: redhat,mandrake
Posts: 4

Original Poster
Rep: Reputation: 0
I did as you suggested for curses and have libncurses.so files in /lib and in /usr/lib and in /mnt/lfs but the files all end in .so not .a as this paragraph states.
I have no libcurses.a or .so files anywhere
"Before you attempt to install Bash, you have to check to make sure your distribution has the /usr/lib/libcurses.a and /usr/lib/libncurses.a files. If your host distribution is an LFS system, all files will be present if you followed the instructions of the book version you read exactly."
Which if I a to do as this paragraph states "exactly" I should have libncurses.a NOT libncurses.so. I can't find libncurses.a at all. The internet was a wash as well.
So I am now stuck for days now looking for this file maybe someone could help me get it or am I reading the paragraph wrong.
I have in /mnt/lfs a ncurses-5.2.tar/gz and when I unzipped and untarred it there is no .a files at all only .so
Steve

Last edited by smitty; 10-18-2002 at 03:46 AM.
 
Old 10-18-2002, 03:56 AM   #7
smitty
LQ Newbie
 
Registered: Sep 2002
Distribution: redhat,mandrake
Posts: 4

Original Poster
Rep: Reputation: 0
I just rebooted the computer and went to redhat 7.1 and in /usr/lib there are both the lincurses.a and libcurses.so files also the libncurses.a and .so files. Mandrake doesn't have them there only .so files.
steve
 
Old 10-18-2002, 03:22 PM   #8
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
cool, so now you can just build the LFS from redhat. I'm not sure if the .so files that are in mandrake are all that you will need, but it's best to be safe.... just use r.h. The ncurses package that you unpacked from the LFS sources hasn't been compiled yet, so that wouldn't have all of the files that you need.

Anywase, good luck with all of it. If you run into any problems, post a question (in another thread). This site is a very good resource for help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Partition types in cfdisk davemar Linux - General 1 01-12-2005 08:19 AM
cfdisk partition problem fat32 baird Linux - General 2 07-13-2004 07:35 PM
Error in cfdisk? Cant partition! bobthebear Linux - General 6 07-05-2004 10:14 AM
partition with cfdisk.. but no permission!! r3dxP Linux - Software 2 05-27-2004 03:15 PM
Extra Partition after cfdisk SBarretDolph Linux - Newbie 1 01-20-2004 12:32 AM

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

All times are GMT -5. The time now is 06:17 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration