Nils Olav Fossum wrote, On 27.03.2008 21:58:
> Torsdag 27 mars 2008 21:22, skrev Nils Olav Fossum:
> > sanity check with: parted -s /dev/dsk
>
> Im bad at multitasking and context switching :-)
> To print out the partition table:
>
>  parted -s /dev/dsk print

Hi Nils!

Thanks for your answer.
My existing partition table shows like this (suse fdisk layout):

> /dev/sda1        1   2433   20GB    7   HPFS/NTFS
> /dev/sda2     2434           2GB   82   Linux Swap
> /dev/sda3 *   2678          12GB   83   Linux

_meta section in unattend.txt is:

> [_meta]
> ; Contents of doit.bat script
>     edit_files=1
>     netinst="c:\netinst"
>     ; Use extended INT13 BIOS calls for fdisk?
>     fdisk_lba=1
> ;    fdisk_cmds="fdisk /clear 1;fdisk /pri:20480;fdisk
> /pri:100,100;fdisk /delete /pri:1;fdisk /pri:4000;fdisk /activate:1"
>     fdisk_cmds="fdisk /delete /pri:1;fdisk /pri:4000;fdisk /activate:1"
>     fdisk_confirm=0
>     format_cmd="format /y /z:seriously /q /u /a /v: c:"
>     replace_mbr=1
>     ntp_servers=0
>    bottom=cleanup.bat
>     local_admins=""

I tested it with this fdisk_cmds and switched to console 2 when prompted
for edit files;
parted -s /dev/dsk print shows me:

> Minor  Start       End        Type       Filesystem   Flag
> 2      19085.xxx   20999.xxx  Primary    fat32
> 3      20999.xxx   32451.xxx  Primary    linux swap
> 1      32451.xxx   36452.xxx  Primary    ext3         boot

New windows partition is added after other partitions, free space before
is not used...


Then I reset partition table to start (see above), commented out
fdisk_cmds in unattend.txt and tried your second version with manually
creating partition when fdisk menu comes up.
This ends up with:

> Minor  Start       End        Type       Filesystem   Flag
> 1      0.031       4196.xxx   primary    fat32        boot
> 2      19085.xxx   20999.xxx  primary    linux swap
> 3      20999.xxx   32451.xxx  primary    ext3

This layout looks much better and is working now!

btw: parted is grumping about using deprecated SCSI ioctl:
"program parted is using a deprecated SCSI ioctl, please convert it to
SG_IO"
> #parted --version
> GNU Parted 1.6.22

My unattended tree is grown since version 2.5b and this must be version
4.7pre or 4.7 now I think...

-- 
best regards
Sven Geipel



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
unattended-info mailing list
unattended-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unattended-info

Reply via email to