Changeset 3371 in MondoRescue for branches/3.2/mindi
- Timestamp:
- Apr 18, 2015, 7:15:32 PM (10 years ago)
- Location:
- branches/3.2/mindi
- Files:
-
- 3 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi/README.ia64
r3136 r3371 3 3 Linux distributions on ia64 uses a different file table format than on i386, called GPT instead of MBR. The fdisk command used by mindi/mondo to determine all aspects related to the disc hasn't been adapted yet to handle GPT. Only the parted command is able to do it. 4 4 5 So a perl script called parted2fdisk.pl was written that will take as input all the order that mindi/mondo pass to fdisk, translate them to be given to parted and print the result in fdisk format. So this is a filter allowing fdisk replacement. It's only used on ia64. On other archs,parted2fdisk is a link to fdisk.5 So a perl script called mr_parted2fdisk was written that will take as input all the order that mindi/mondo pass to fdisk, translate them to be given to parted and print the result in fdisk format. So this is a filter allowing fdisk replacement. It's only used on ia64. On other archs, mr_parted2fdisk is a link to fdisk. 6 6 7 Thus mindi/mondorestore commands launched by root will pass all their call to parted2fdisk on ia64 instead of the real fdisk, and be able to support the GPT format. It will call fdisk and parted for its work. (Note again that on ia32 parte2fdisk is in fact a link to fdisk to avoid any compatibility issue)7 Thus mindi/mondorestore commands launched by root will pass all their call to mr_parted2fdisk on ia64 instead of the real fdisk, and be able to support the GPT format. It will call fdisk and parted for its work. (Note again that on ia32 parte2fdisk is in fact a link to fdisk to avoid any compatibility issue) 8 8 9 9 The install.sh script will setup everything correctly for you. 10 10 11 Note that parted2fdisk.plsupports currently only the -l and -s options as well as the commands p,n,d,w,t,a,q11 Note that mr_parted2fdisk supports currently only the -l and -s options as well as the commands p,n,d,w,t,a,q 12 12 13 13 On Itanium systems you won't generally find an installed isolinux.bin file which is required by mindi to create the bootable images. You'll generally have to take an i386 package for your distribution and install it on your itanium system so that you provide the required missing file. … … 18 18 Bruno. 19 19 20 2015-03-21 tool renamed to mr_parted2fdisk 20 21 2013-06-08 no binary made anymore, only perl scripts 21 22 2005-12-12 parted2fdisk used everywhere -
branches/3.2/mindi/install.sh
r3361 r3371 95 95 96 96 # Manage perl script man pages 97 for s in mindi-bkphw mindi-get-perl-modules parted2fdisk.pl; do97 for s in mindi-bkphw mindi-get-perl-modules mr_parted2fdisk; do 98 98 install -m 755 $s $SBINDIR 99 99 pod2man -c "$s a MondoRescue tool" --section=8 --release="$VERSTR" $SBINDIR/$s > $s.8 … … 104 104 EOF 105 105 done 106 (cd $MANDIR ; if [ ! -f parted2fdisk.9 ]; then ln -s parted2fdisk.pl.8 parted2fdisk.9; fi)107 106 108 107 if [ "_$PREFIX" = "_" ] && [ ! -f $locallib/mindi/rootfs/bin/busybox ]; then … … 110 109 fi 111 110 112 # Managing parted2fdisk113 (cd $SBINDIR && ln -sf parted2fdisk.pl parted2fdisk && install -m 755 parted2fdisk.pl $locallib/mindi/rootfs/usr/sbin/parted2fdisk)111 # Managing mr_parted2fdisk 112 (cd $SBINDIR && install -m 755 mr_parted2fdisk $locallib/mindi/rootfs/usr/sbin/mr_parted2fdisk) 114 113 115 114 if [ "$PKGBUILDMINDI" != "true" ]; then 116 115 chown -R root:root $locallib/mindi $conf # $DOCDIR 117 chown root:root $SBINDIR/mindi $MANDIR/mindi.8 $locallib/mindi/analyze-my-lvm $SBINDIR/ parted2fdisk.pl116 chown root:root $SBINDIR/mindi $MANDIR/mindi.8 $locallib/mindi/analyze-my-lvm $SBINDIR/mr_parted2fdisk 118 117 fi 119 118 -
branches/3.2/mindi/mindi
r3368 r3371 100 100 \n0eF107-Main | Boot Parameters 0eF207-1/2 | 0eF307-2/2 | 0eF407-PXE\n\ 101 101 " 102 FDISK=$MINDI_SBIN/ parted2fdisk102 FDISK=$MINDI_SBIN/mr_parted2fdisk 103 103 104 104 # Using a config file allow to overwrite some values -
branches/3.2/mindi/mr_parted2fdisk
r3370 r3371 3 3 # $Id$ 4 4 # 5 # parted2fdisk: fdisk like interface for parted5 # mr_parted2fdisk: fdisk like interface for parted 6 6 # [developed for mindi/mondo http://www.mondorescue.org] 7 7 # … … 27 27 =head1 NAME 28 28 29 parted2fdisk is a fdisk like command using parted internally for analysing GPT labelled disks29 mr_parted2fdisk is a fdisk like command using parted internally for analysing GPT labelled disks 30 30 31 31 =head1 DESCRIPTION 32 32 33 parted2fdisk behaves like the fdisk command, but dialog internally with parted in order to manipulate partition tables, which allow it to support GPT partition format as well as MBR, contrary to fdisk. It aims at providing compatible external interface with fdisk. Developed initialy for ia64 Linux, it is also useful now on x86 systems using GPT partition format (for large HDDs).33 mr_parted2fdisk behaves like the fdisk command, but dialog internally with parted in order to manipulate partition tables, which allow it to support GPT partition format as well as MBR, contrary to fdisk. It aims at providing compatible external interface with fdisk. Developed initialy for ia64 Linux, it is also useful now on x86 systems using GPT partition format (for large HDDs). 34 34 35 35 =head1 SYNOPSIS 36 36 37 parted2fdisk -s partition38 39 parted2fdisk -l [device]40 41 parted2fdisk [-n] device37 mr_parted2fdisk -s partition 38 39 mr_parted2fdisk -l [device] 40 41 mr_parted2fdisk [-n] device 42 42 43 43 =head1 OPTIONS … … 102 102 103 103 # Log 104 my $flog = "/var/log/ parted2fdisk.log";104 my $flog = "/var/log/mr_parted2fdisk.log"; 105 105 open(FLOG, "> $flog") || die "Unable to open $flog"; 106 106 … … 133 133 my $device; 134 134 my $endmax = ""; 135 my $appname = " parted2fdisk";135 my $appname = "mr_parted2fdisk"; 136 136 my ($mrver,$mrrev) = mr_version_init(); 137 137
Note:
See TracChangeset
for help on using the changeset viewer.