View previous topic :: View next topic |
Author |
Message |
psychocandy Apprentice
Joined: 09 Nov 2006 Posts: 192
|
Posted: Wed Dec 06, 2006 3:33 pm Post subject: forcing CPDISK and SFDISK install (on sparc) |
|
|
to use as a command line version to partition disks - fdisk is menu driven.
Unfortunately, they dont appear to be on my system...
Looks like emerge of util-linux skips these files for arch=sparc....
Last edited by psychocandy on Thu Dec 07, 2006 12:52 am; edited 2 times in total |
|
Back to top |
|
|
thorpe l33t
Joined: 09 May 2005 Posts: 618 Location: Sydney, Australia.
|
Posted: Wed Dec 06, 2006 3:35 pm Post subject: |
|
|
What? fdisk IS a command line utility. _________________ Research before taking any advice from me. I'm still coming to grips with this myself. |
|
Back to top |
|
|
psychocandy Apprentice
Joined: 09 Nov 2006 Posts: 192
|
Posted: Wed Dec 06, 2006 3:39 pm Post subject: |
|
|
thorpe wrote: | What? fdisk IS a command line utility. |
Yeh. But it takes you into a menu-driven thing....
I can't see from the maqn pages how I'd use it in a script or something cos it needs user interaction.
For instance, I want to be able to write a script called PARTITION-DISK which goes away and creates my disk partitions for me. |
|
Back to top |
|
|
sonicbhoc Veteran
Joined: 24 Oct 2005 Posts: 1805 Location: In front of the computer screen
|
Posted: Wed Dec 06, 2006 3:39 pm Post subject: |
|
|
cfdisk may be what you are looking for. |
|
Back to top |
|
|
psychocandy Apprentice
Joined: 09 Nov 2006 Posts: 192
|
Posted: Wed Dec 06, 2006 3:40 pm Post subject: |
|
|
sonicbhoc wrote: | cfdisk may be what you are looking for. |
Yeh. Someone else has mentoned sfdisk as well....
Which package do I need to emerge to get this? |
|
Back to top |
|
|
sonicbhoc Veteran
Joined: 24 Oct 2005 Posts: 1805 Location: In front of the computer screen
|
Posted: Wed Dec 06, 2006 3:42 pm Post subject: |
|
|
I didn't emerge anything, I just typed cfdisk and I had it. It comes with the base system, I think. And same with sfdisk. Although cfdisk is the best IMO. |
|
Back to top |
|
|
psychocandy Apprentice
Joined: 09 Nov 2006 Posts: 192
|
Posted: Wed Dec 06, 2006 3:46 pm Post subject: |
|
|
sonicbhoc wrote: | I didn't emerge anything, I just typed cfdisk and I had it. It comes with the base system, I think. And same with sfdisk. Although cfdisk is the best IMO. |
Nope. I aint got it....
This is gentoo on sparc though... |
|
Back to top |
|
|
sonicbhoc Veteran
Joined: 24 Oct 2005 Posts: 1805 Location: In front of the computer screen
|
Posted: Wed Dec 06, 2006 3:55 pm Post subject: |
|
|
sys-apps/util-linux-2.12r-r5 has it. See if you can emerge it.
I didn't know that you were trying to make a script for it - I read too fast. use sfdisk, cfdisk is a menu driven utility as well. |
|
Back to top |
|
|
psychocandy Apprentice
Joined: 09 Nov 2006 Posts: 192
|
Posted: Wed Dec 06, 2006 4:06 pm Post subject: |
|
|
sonicbhoc wrote: | sys-apps/util-linux-2.12r-r5 has it. See if you can emerge it.
I didn't know that you were trying to make a script for it - I read too fast. use sfdisk, cfdisk is a menu driven utility as well. |
OK. Thx. Giving it a try... |
|
Back to top |
|
|
psychocandy Apprentice
Joined: 09 Nov 2006 Posts: 192
|
Posted: Wed Dec 06, 2006 4:12 pm Post subject: |
|
|
Hmmm. Emerged this but still no joy...
R U sure its in there?
Which directory does it install it to? |
|
Back to top |
|
|
psychocandy Apprentice
Joined: 09 Nov 2006 Posts: 192
|
Posted: Wed Dec 06, 2006 4:13 pm Post subject: |
|
|
Actually just noticed I got 2-12r4 installed....... |
|
Back to top |
|
|
psychocandy Apprentice
Joined: 09 Nov 2006 Posts: 192
|
Posted: Wed Dec 06, 2006 7:11 pm Post subject: |
|
|
Nope. Installed the r5 version now and its still not there.
Any ideas anyone ? |
|
Back to top |
|
|
psychocandy Apprentice
Joined: 09 Nov 2006 Posts: 192
|
Posted: Wed Dec 06, 2006 7:14 pm Post subject: |
|
|
sonicbhoc wrote: | sys-apps/util-linux-2.12r-r5 has it. See if you can emerge it.
I didn't know that you were trying to make a script for it - I read too fast. use sfdisk, cfdisk is a menu driven utility as well. |
BTW. Sorry for the stupidity but how do you mind which apps are in which ebuild ? |
|
Back to top |
|
|
wynn Advocate
Joined: 01 Apr 2005 Posts: 2421 Location: UK
|
Posted: Wed Dec 06, 2006 7:18 pm Post subject: |
|
|
I've seen a number of your threads and it really seems as though something has got it in for you
Quote: | $ equery files util-linux
[ Searching for packages matching util-linux... ]
* Contents of sys-apps/util-linux-2.12r-r4:
/bin
/bin/arch
/bin/dmesg
/bin/more
/bin/mount
/bin/umount
/etc
/etc/conf.d
/etc/conf.d/crypto-loop
/etc/fdprm
/etc/init.d
/etc/init.d/crypto-loop
/sbin
/sbin/agetty
/sbin/blockdev
/sbin/cfdisk
/sbin/ctrlaltdel
/sbin/elvtune
/sbin/fdisk
/sbin/fsck.cramfs
/sbin/fsck.minix
/sbin/hwclock
/sbin/losetup
/sbin/mkfs
/sbin/mkfs.bfs
/sbin/mkfs.cramfs
/sbin/mkfs.minix
/sbin/mkswap
/sbin/pivot_root
/sbin/sfdisk
/sbin/swapoff -> swapon
/sbin/swapon | and a lot more... _________________ The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details. |
|
Back to top |
|
|
psychocandy Apprentice
Joined: 09 Nov 2006 Posts: 192
|
Posted: Wed Dec 06, 2006 7:51 pm Post subject: |
|
|
Trying to pick up someone elses half finished gentoo project with no previous experience myself...
Its been hard work but I'm getting there now (and its been fun !) |
|
Back to top |
|
|
psychocandy Apprentice
Joined: 09 Nov 2006 Posts: 192
|
Posted: Wed Dec 06, 2006 7:52 pm Post subject: |
|
|
wynn wrote: | I've seen a number of your threads and it really seems as though something has got it in for you
Quote: | $ equery files util-linux
[ Searching for packages matching util-linux... ]
* Contents of sys-apps/util-linux-2.12r-r4:
/bin
/bin/arch
/bin/dmesg
/bin/more
/bin/mount
/bin/umount
/etc
/etc/conf.d
/etc/conf.d/crypto-loop
/etc/fdprm
/etc/init.d
/etc/init.d/crypto-loop
/sbin
/sbin/agetty
/sbin/blockdev
/sbin/cfdisk
/sbin/ctrlaltdel
/sbin/elvtune
/sbin/fdisk
/sbin/fsck.cramfs
/sbin/fsck.minix
/sbin/hwclock
/sbin/losetup
/sbin/mkfs
/sbin/mkfs.bfs
/sbin/mkfs.cramfs
/sbin/mkfs.minix
/sbin/mkswap
/sbin/pivot_root
/sbin/sfdisk
/sbin/swapoff -> swapon
/sbin/swapon | and a lot more... |
Weird. Wonder where my files went cos they aint in /sbin !!! |
|
Back to top |
|
|
psychocandy Apprentice
Joined: 09 Nov 2006 Posts: 192
|
Posted: Thu Dec 07, 2006 12:38 am Post subject: |
|
|
I've unbzed and untared one of the distfiles for util-linux and had a look at it...
Looks like one of the Makefiles doesnt do something if arch = sparc !!!!
Tried to change this and recreate the bz2 to see if I can force it to install it... |
|
Back to top |
|
|
psychocandy Apprentice
Joined: 09 Nov 2006 Posts: 192
|
Posted: Thu Dec 07, 2006 12:51 am Post subject: |
|
|
Bummer. When I do this emerge recognises that the checksum is different and tries to download the package again !!!
Any ideas how to override this? |
|
Back to top |
|
|
wynn Advocate
Joined: 01 Apr 2005 Posts: 2421 Location: UK
|
Posted: Thu Dec 07, 2006 12:03 pm Post subject: |
|
|
You can create your own version of the ebuild https://forums.gentoo.org/viewtopic-p-3749526.html#3749526 _________________ The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details. |
|
Back to top |
|
|
psychocandy Apprentice
Joined: 09 Nov 2006 Posts: 192
|
Posted: Thu Dec 07, 2006 12:57 pm Post subject: |
|
|
Managed to force an install of sfdisk and cfdisk....
https://forums.gentoo.org/viewtopic-t-522514-highlight-.html
However, can't seem to get it to work on my sparc machine. Maybe thats why its not installed on a sparc !!!!
Gives an error about block 0 not being an ms-dos disk or something.....
Anyone got sfdisk working on a sparc machine ? |
|
Back to top |
|
|
wynn Advocate
Joined: 01 Apr 2005 Posts: 2421 Location: UK
|
Posted: Thu Dec 07, 2006 4:07 pm Post subject: |
|
|
It hadn't occurred to me until now but it seems obvious that fdisk, cfdisk and sfdisk would only work with an PC BIOS partition table.
On a Sparc you would need utilities which would know about the Sun partition table format. When last seen, Sun disks allowed only 7 partitions and one referred to the whole disk... _________________ The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details. |
|
Back to top |
|
|
psychocandy Apprentice
Joined: 09 Nov 2006 Posts: 192
|
Posted: Thu Dec 07, 2006 8:38 pm Post subject: |
|
|
wynn wrote: | It hadn't occurred to me until now but it seems obvious that fdisk, cfdisk and sfdisk would only work with an PC BIOS partition table.
On a Sparc you would need utilities which would know about the Sun partition table format. When last seen, Sun disks allowed only 7 partitions and one referred to the whole disk... |
fdisk works fine with a sparc. Theres even an option to give the disk a sun disk label. And ,yes, Sun disks do have the third partiton reserved as a special for the whole disk.
I have used Solaris to format all bar one of the partitions and then used fdisk to create a linux one. This way I can run partimage from CD and bacup the sun partitions to the spare linux partition and then burn to cd.
Next trick is going to be for my boot cd to partition 6 as solaris partitons and one as linux partition and then restore from a Cd using partimage....
dont know yet if it works though |
|
Back to top |
|
|
psychocandy Apprentice
Joined: 09 Nov 2006 Posts: 192
|
Posted: Thu Dec 07, 2006 8:39 pm Post subject: |
|
|
Forgot to add...
I got fdisk working in batch mode by doing:-
fdisk /dev/xxx < infile
where infile is a text file with stored keypresses to do what I want in fdisk.... |
|
Back to top |
|
|
|