LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 08-16-2003, 02:43 AM   #1
mcd
Member
 
Registered: Aug 2003
Location: Denver, CO
Distribution: CentOS, Debian
Posts: 825

Rep: Reputation: 33
bashing my head against a wall


i'm getting frustrated trying to learn things at the command line because I keep getting the message bash: command not found

apparently there's no finger command, or lsmod, lspci, lsusb, or a lot of other things that are listed as basic linux commands in the files i've been reading. is it just me, or are these commands really missing on my system?

(i'm using out-of-the-box mandrake 9.1, running a gnome terminal, not usually as root)

mcd
 
Old 08-16-2003, 02:48 AM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Most of those commands are going to require root privileges. Whenever you get a message like that, if your database is up to date, do a 'locate foo' and it'll show. Do a 'ls -l foo' and you'll probably see a lot of 'root's and the 'x's stopping suddenly.
 
Old 08-16-2003, 02:54 AM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Actually, I hate to say this...

But Mandrake, by default, does not give you some of those commands. They think you want their version:
lspcidrake
lsusbdrake
Which have a twist on em.

You still can get the real packages, it just takes a bit more work, and usually entails some elusion of downgrading packages since occasionally Mandrake will beef up a release version to give you the sense of 'latest package' even though it's their tweaked out version of the last release...

Mandrake is great to learn on, to get accustomed to something different, but once you start hitting the command line, personally I think it's time to find a distro that is built for that. Strap into:
www.archlinux.org
www.slackware.com
www.debian.org
www.gentoo.org
www.distrowatch.com
www.linuxfromscratch.org

And I think you'll see the difference.

Cool
 
Old 08-16-2003, 03:28 AM   #4
mcd
Member
 
Registered: Aug 2003
Location: Denver, CO
Distribution: CentOS, Debian
Posts: 825

Original Poster
Rep: Reputation: 33
thanks guys, i've heard a lot of people mention slackware, maybe i'll give it a try.

btw, i tried locate foo and it spat back
bash: locate: command not found

i tried find and i still couldn't find it

mcd
 
Old 08-16-2003, 03:31 AM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
You'll need to install the slocate package from your install CD's.



COol
 
Old 08-16-2003, 05:36 AM   #6
softgun
Member
 
Registered: Jun 2003
Posts: 119

Rep: Reputation: 15
Try Debian.
It is great with broadband
It is used by most live CD distros - Knoppix, Mepis, Morphix, Damn Small Linux etc
It has all possible software working on it!
And Hurd is coming................
 
Old 08-16-2003, 10:51 AM   #7
mcd
Member
 
Registered: Aug 2003
Location: Denver, CO
Distribution: CentOS, Debian
Posts: 825

Original Poster
Rep: Reputation: 33
I'm looking at the different distros now to see which one I'd like to install and play around with, but I had a quick question. Since I've already got Mandrake 9.1, can I create a new / partition for slackware/debian or whatever, and use the same /swap and /home partitions?
 
Old 08-16-2003, 11:00 AM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Yes you can but....

Swap is just fine and encouraged, however sharing home can be a bad idea since you'll have version conflicts and stuff (home is where all the user specific info is kept for each program). But a swap and a /boot partition should be 'shared' for each distro.

Cool
 
Old 08-16-2003, 11:20 AM   #9
mcd
Member
 
Registered: Aug 2003
Location: Denver, CO
Distribution: CentOS, Debian
Posts: 825

Original Poster
Rep: Reputation: 33
Right now I've got the following:

Disk /dev/hdb: 30.0 GB, 30020272128 bytes
255 heads, 63 sectors/track, 3649 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 764 6136798+ 83 Linux
/dev/hdb2 765 2728 15775830 5 Extended
/dev/hdb5 765 827 506016 82 Linux swap
/dev/hdb6 828 1448 4988151 83 Linux
/dev/hdb7 1449 2728 10281568+ 83 Linux

hdb5 is my /swap partition
hdb6 is my /home
hdb7 is my /multimedia

I also have 7G left unpartitioned for my new distro. My Mandrake Control Center partitioning GUI shows / on hdb1, but I'm guessing it's actually hdb2 since it doesn't list a /boot partition at all (and there clearly is one on hdb1)....is that what it looks like?

So when I'm installing I should create new / and /home partitions on the unused 7G right?

thanks,
 
Old 08-16-2003, 11:23 AM   #10
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
/boot is probably not it's own seperate partition... yet.

Yes, in the free 7G you'll wanna create yourself a new / and **optionally** a new /home (good idea for reinstalling, backing up etc..). And probably a /boot that you will end up sharing on your existing distro as well (you'll edit fstab to show the changes, copy the /boot info to the new partition and mount it up).

/dev/hdb1 IS your / hdb2 is the container for which all your logical drives exist (or extended as I always get the 2 mixed up ). hdb1 is primary, hdb2 is extended and everything after that is because hdb2 is extended.

Cool
 
Old 08-16-2003, 11:54 AM   #11
mcd
Member
 
Registered: Aug 2003
Location: Denver, CO
Distribution: CentOS, Debian
Posts: 825

Original Poster
Rep: Reputation: 33
Doesn't /boot have to be on the first 1024 cylinders? Or is that just for older versions? If it does, how should I go about creating a new partition for it? Copy the present / partition to another location then resize the current hdb1, then copy / and /boot back separately?

thanks,
 
Old 08-16-2003, 12:17 PM   #12
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
/boot no longer has to be within those parameters IIRC. In fact I don't think it was /boot that had to be there, but rather the location of the boot loader itself, the /boot had to be within the first 8GB of the drive? Not sure, but anyway, no I don't think it's an issue anymore.

Cool
 
Old 08-16-2003, 02:51 PM   #13
rahulsundaram
Member
 
Registered: May 2003
Location: India
Distribution: Knoppix, RedHat
Posts: 246

Rep: Reputation: 30
hi

the 1024 limit in lilo was a old thing. grub and newer lilo dont have this problem
 
  


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
Sata Raid + IDE = it won't install *head hitting wall* m0ngos3 Slackware - Installation 3 01-23-2005 05:09 PM
Multi-monitor Issues on RH9, Geforce 4 Ti Dual Head + TNT2 Single Head the letter b Linux - Newbie 3 12-05-2004 12:23 AM
Keyboard bashing!!! spedsta Linux - General 4 09-06-2004 11:55 PM
DirectColor,16bits, Wall, Head, Bash PhilShaw Linux - Hardware 0 11-11-2003 05:48 AM
x86 Solaris 9 XSun and Matrox G550 dual-head... one head down, one to go. finegan Solaris / OpenSolaris 4 03-11-2003 01:39 PM

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

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