LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 10-23-2009, 07:24 AM   #1
Alkisx
Member
 
Registered: Apr 2006
Location: Greece
Distribution: Slackware
Posts: 74

Rep: Reputation: 16
Replacing fdisk with gnu fdisk in busybox?


I want to replace the fdisk that is included on the busy box of the Slackware dvd, with the gnu fdisk. Trying to find something but not any luck till now.

Can it be done?
 
Old 10-23-2009, 08:48 AM   #2
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Slackware -current (multilib) with kernel 3.15.5
Posts: 1,500
Blog Entries: 12

Rep: Reputation: 155Reputation: 155
I haven't a clue about that, but am curious. I guess if you're using an initrd you could put any program you want in the initrd.gz/bin, but otherwise I'm guessing you'd have some major busybox hacking, recompiling to do.... But why oh why would you want to do that? How does "gnu fdisk" differ from the fdisk in busybox and what is it that it offers?
 
Old 10-23-2009, 09:23 AM   #3
Alkisx
Member
 
Registered: Apr 2006
Location: Greece
Distribution: Slackware
Posts: 74

Original Poster
Rep: Reputation: 16
The reason I want to do this is here:

http://www.linuxquestions.org/questi...cedure-763910/


It is a detail of a bigger effort.

I thought installing parted into the busy box and configure for use instead of fdisk. But since gnu fdisk uses the same commands, I thought just a replacement would need less work.

But things on busy box are a bit different. it is not just a compile. If you look at the structure of busybox you understand why.
 
Old 10-23-2009, 10:02 AM   #4
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Slackware -current (multilib) with kernel 3.15.5
Posts: 1,500
Blog Entries: 12

Rep: Reputation: 155Reputation: 155
Oh well, that's a good reason, but your two threads should probably be merged.
Quote:
But things on busy box are a bit different. it is not just a compile
That's why I said hacking too...
 
Old 10-23-2009, 10:07 AM   #5
Alkisx
Member
 
Registered: Apr 2006
Location: Greece
Distribution: Slackware
Posts: 74

Original Poster
Rep: Reputation: 16
No no, I don't want it to be merged, the replacement of the old fdisk with the gnu one it is just a possibility. And a big one. If the result is good, then it would be referered to the other thread as a step.

But it could be also different thread.

And well, yes some hacking, but I don't know how to do this on busybox (at least untill know), and something that it says inside about where is the location on how to use the command to create applets, that location it says is not there.

So I am a bit stacked, if anyone can help, or knows how to put software inside busybox, and documentation about using it. The one I found, it is not enough I think for newcomers on it.

Last edited by Alkisx; 10-23-2009 at 10:12 AM.
 
Old 10-23-2009, 11:51 AM   #6
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,750

Rep: Reputation: 462Reputation: 462Reputation: 462Reputation: 462Reputation: 462
Just remove the fdisk link to busbox and copy the real thing over if the installer initrd has glibc in it, or if the installer has no glibc, then compile and statically link fdisk and copy it over to the initrd. You can probaly even link against newlib, dietlib or uClibc to make it smaller. But, last I checked, the installer had glibc in there -for dialog and maybe some other things, so real fdisk should have no trouble running there either -excpet you may need to copy libuuid or whatever other depends of fdisk are not in there.
 
  


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
weird fdisk problem (Fdisk unable to see winxp partitions) khidot Slackware - Installation 5 04-07-2007 09:26 PM
busybox fdisk error?Help! whepin Linux - Laptop and Netbook 1 09-05-2005 02:51 PM
busybox fdisk error?Help! whepin Linux - General 0 09-05-2005 09:22 AM
fdisk theresaboothe Linux - Newbie 3 01-28-2005 09:08 AM
can't fdisk tweak13 Linux - Newbie 4 04-02-2003 01:02 AM


All times are GMT -5. The time now is 06:30 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration