SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Using Slack 9.1 with kernel 2.4.23. I've posted before but no one could help. I've read man pages, LQ threads, Googled all over the place, and can't seem to find out why this has happened. If I do the normal fdisk -l command it just returns me to a prompt. If I list the device afterwards, I get the proper output. So fdisk is working, but just not as it should.
From man fdisk
Quote:
-l List the partition tables for the specified devices and then exit. If no devices are given, those mentioned in /proc/partitions (if that exists) are used.
Everything in [square brackets] is optional. The device, however, is not. If you only have one drive, then fdisk will show the output for that one disk (as my single hard drive system does). As you have two hard drives, when you give the command fdisk -l, fdisk doesn't know which drive you mean and so returns no output. When you give it the device, it works as it should. I am presuming this is what is happening I don't know if anyone else can confirm this. When I get around to buying a new hard drive, I'll let you know ;-)
Originally posted by reclusivemonkey So what's happening then?
Dude, you didn't read my first post very well. Try that again, would you? The first line says that I've read man fdisk. And then it tells you this, which I'll repeat for you.
Code:
-l List the partition tables for the specified devices and then exit. If no devices are given,
those mentioned in /proc/partitions (if that exists) are used.
It used to work just fine, and does on other comps with Slack 9.1 and 2 drives.
Now we get to your question above, which is my question.
What does Tink say in his sig?
guru, n:
A computer owner who can read the manual.
Do you have a clue why this may have happened, or what I can read to try and figure it out, or if I can just reinstall fdisk? I'm at the end of my resources.
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296
Rep:
sorry bout that mate, i was reading thru your original post and skimmed this one, i missed it. this is strange indeed. i believe that a guru will have to pin this one down.
Originally posted by PEACEDOG sorry bout that mate, i was reading thru your original post and skimmed this one, i missed it. this is strange indeed. i believe that a guru will have to pin this one down.
When I find someone that can, I'm putting him on retainer! I thought Tink would do it right off the bat. Or 'spot on' - whatever that means :}
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296
Rep:
Quote:
When I find someone that can, I'm putting him on retainer! I thought Tink would do it right off the bat. Or 'spot on' - whatever that means :}
me too. just thinking out loud here, could there have been some sort of update, or possibly kernel compile that changed the parameters of the fdisk commands? i only ask this because it worked, then, it only works w/ the device parameter.
fdisk is a buggy program that does fuzzy things - usually it happens to produce reasonable results.
...and I'm the only one reading it stoned so I guess I'll be the only one who finds it all funny.
I used to do everything stoned, and now I don't get stoned anymore. And, I sure wish I had all those brain cells back that I burned up! Stop while there's still hope for you!
Originally posted by PEACEDOG me too. just thinking out loud here, could there have been some sort of update, or possibly kernel compile that changed the parameters of the fdisk commands? i only ask this because it worked, then, it only works w/ the device parameter.
Yes I have recompiled the kernel to 2.4.23, but I don't know how to "check the parameters." I'll read, and if you know, you can enlighten me. I'm out to learn, not reinstall Slack, as we'd do if Winders stopped showing 'drives' in Winders Explorer.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.