Hi,

> -----Urspr�ngliche Nachricht-----
> Von: [EMAIL PROTECTED] [mailto:unattended-info-
> [EMAIL PROTECTED] Im Auftrag von Thomas Lohschmidt
> Gesendet: Montag, 11. April 2005 19:05
> An: [email protected]
> Betreff: [Unattended] Multiple partitions and profilesdir
> 
> Hi folks,
> 
> first of all thanks for all the effort put into this project. It makes
> life a lot easier.
> 
> While browsing the archive I've come at least twice across postings
> asking for putting the ProfilesDir on another partition.
> 
> I have worked out the following solution:
> 
> My Setup: Drive C: Windows, Drive D: Applications, Drive E: Documents
> and Settings
> 
> Put the following code in your site/config.pl
> 
> sub my_partition_cmds {
>        chdir ("/usr/sbin");
>        symlink "/z/linuxaux/usr/sbin/mkfs.vfat", "mkfs.vfat";
>        chdir ("/");
>        my $partition_cmds = $u->{'_meta'}->{'partition_cmds'};
>        foreach my $cmd (split /;/, $partition_cmds) {
>          print "Executing command to partition: $cmd...\n";
>       system ("$cmd");
>        }
> };
> 
> $u->{'_meta'}->{'fdisk_cmds'} = \&my_partition_cmds;
> 
> The following is needed in the [_meta] section of unattend.txt:
> 
> partition_cmds="parted /dev/dsk mklabel msdos;parted /dev/dsk mkpart
> primary fat32 0 4000;parted -- /dev/dsk mkpart extended 10000 -0;parted
> /dev/dsk mkpart logical fat32 10000 30000;parted -- /dev/dsk mkpart
> logical fat32 30000 -0;sleep 2;parted /dev/dsk set 1 boot
> on;make-blkdev-nodes hda;mkfs.vfat /dev/dsk1 -F 32;mkfs.vfat /dev/dsk5
> -F 32;mkfs.vfat /dev/dsk6 -F 32"
> 
> Notice: This is one (very long) line. Put in it what ever commands you
> need to partition your drive.
> 
> Remove your fdisk_cmds.
> 
> This obviously only works with the linuxboot.
> 
> I didn't get it to work using only parted commands. The mkpartfs seems
> to have no effect.
I had the same problem. In older parted versions mkpartfs was working. But
you can use mkpart and then mkfs from parted - you get the same effect as
mkpartfs should. You don�t have to copy mkfs.vfat manually!



> Therefore I copied the mkfs.vfat binary from my
> debian sarge distro into linuxaux/usr/sbin/. The code in config.pl will
> symlink it so the command can run without using the full path.
> 
> So I get one primary partition (C:) of 10 GB with NTFS and two fat32
> which can later be tranformed to NTFS using convert.
> 
> I works like a charm on my machines. Hope it helps others.
> 
> Regards
> Thomas
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> unattended-info mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/unattended-info



-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
_______________________________________________
unattended-info mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unattended-info

Reply via email to