Re: partitioning problem
> (a hook comes to mind...) what about partitioning the harddisk ready-to-go with e.g. partition-magic (including the linux-partitions), then write a hook that skips partitioning (skiptask partiton) and copies a default fstab into the client's /etc (all computers in our network have the same disk layout). is this possible? thanks in advance mat.
Re: partitioning problem
[...] parsing config file: /fai/disk_config/SMALL_IDE ERROR: cannot preserve partition hde2. partition not found.0 cp: cannot stat `/tmp/fai/disk_var.sh': No such file or directory Save log files via ssh [...] What about the following idea: Using Partition Magic, move the 2nd and 3rd partition back a little, create a new one in the free space - then there is indeed a hde2 - reboot, delete it and then hopefully Partition magic renumbers the other partitions, move the back to their original location, done. Michael
Re: partitioning problem
with this disk_config: disk_config hde primary /mnt/win1 preserve1 ro primary /mnt/win2 preserve2 ro primary /mnt/win3 preserve3 ro logical / 70-2000 rw,errors=remount-ro ;-c -j ext3 [...] i get this error: parsing config file: /fai/disk_config/SMALL_IDE ERROR: cannot preserve partition hde2. partition not found.0 cp: cannot stat `/tmp/fai/disk_var.sh': No such file or directory Save log files via ssh [...] any ideas? thanks a lot! mat. Am Freitag, 25. Februar 2005 14:35 schrieb Thomas Lange: > > On Fri, 25 Feb 2005 12:16:25 +0100, Matthias Lechner <[EMAIL PROTECTED]> said: > > disk_config hde > > primary /mnt/win1 preserve1 ro > > X> primary /mnt/win2 preserve3 ro > X> primary /mnt/win3 preserve4 ro > > > logical / 70-2000 rw,errors=remount-ro ;-c -j ext3 > > the primary partitions are numbers from 1 to 3. > The first logical partition will be number 5. These are the device > numbers that are created. The order of the partitions in the > disk_config this is important. > > So above, the line with an X are wrong. Use preserve2 for /mnt/win2 > and preserve3 for /mnt/win3.
Re: partitioning problem
On Fri, Feb 25, 2005 at 02:35:37PM +0100, Matthias Lechner wrote: > hm, it did not work; neither with the preserve1, preserve2, preserv3-method > nor with fdisk. fdisk can align the partitions in the right order, but does > not correct the nubers (i.e. i get hde1-hde3-hde4 instead of hde1-hde4-hde3, > but not hde1-hde2-hde3 as i want). > btw, fai fails also with the corrected order. > the point which i dont understand: why does debain-installer work but fai > not? Because the disk partitioning script is genuine FAI, not d-i ? I guess it should be pretty easy to handle your special situation (a hook comes to mind...) Cheers, Steffen -- Steffen Grunewald * * * Merlin cluster admin (http://pandora.aei.mpg.de) Albert-Einstein-Institut (MPI Gravitationsphysik, http://www.aei.mpg.de) Science Park Golm, Am Mühlenberg 1, 14476 Potsdam, Germany e-mail: steffen.grunewald(*)aei.mpg.de * +49-331-567-{fon:7233,fax:7298}
Re: partitioning problem
> On Fri, 25 Feb 2005 14:35:37 +0100, Matthias Lechner <[EMAIL PROTECTED]> > said: > the point which i dont understand: why does debain-installer work but fai not? FAI uses a complete different script for partitioning ! This is not well tested in windo.. environments. -- regards Thomas
Re: partitioning problem
hm, it did not work; neither with the preserve1, preserve2, preserv3-method nor with fdisk. fdisk can align the partitions in the right order, but does not correct the nubers (i.e. i get hde1-hde3-hde4 instead of hde1-hde4-hde3, but not hde1-hde2-hde3 as i want). btw, fai fails also with the corrected order. the point which i dont understand: why does debain-installer work but fai not? regards, thanks and a nice weekend mat.
Re: partitioning problem
> On Fri, 25 Feb 2005 12:16:25 +0100, Matthias Lechner <[EMAIL PROTECTED]> > said: > disk_config hde > primary /mnt/win1 preserve1 ro X> primary /mnt/win2 preserve3 ro X> primary /mnt/win3 preserve4 ro > logical / 70-2000 rw,errors=remount-ro ;-c -j ext3 the primary partitions are numbers from 1 to 3. The first logical partition will be number 5. These are the device numbers that are created. The order of the partitions in the disk_config this is important. So above, the line with an X are wrong. Use preserve2 for /mnt/win2 and preserve3 for /mnt/win3. -- regards Thomas
Re: partitioning problem
Hy, > [...] > here are the important parts of my SMALL_IDE: > > disk_config hde > primary /mnt/win1 preserve1 ro > primary /mnt/win2 preserve3 ro > primary /mnt/win3 preserve4 ro > logical / 70-2000 rw,errors=remount-ro ;-c -j ext3 > > switching hde4 before hde3 causes a similar error. > my question is: how do i get FAI to work with that? > thanks in advance i think (not sure and not tested and i would not bet on it if data loss is the risk) the number X in preserveX is not some device number, just a linear upcounting number in the fai disk config list, so it should work when using preserve1 preserve2 preserve3... Interesting question why this number is necessary anyway, as i know i always have to count a lot of partitions when fiddling with my notebook's disk config, which has a FAI installation made in the office for work and a home FAI installation for my private use and experimenting - it would be a lot easier if just "preserve" would be enough, or if lazyformat wouldn't bear the risk of formatting just because disk errors and therefore changed geometry - but on the other hand, i don't have to do the fiddling often enough that it drove me to look for why it is like that and how to make it better :) Henning
Re: partitioning problem
[...] the only way i got linux installed is by booting with an partition-magic disk and convert the extendet partition into a primary one and to shrink the last partition. thismleads to a pretty stupid partition-order: hde1, hde4 and then hde3. a manual debian installation worked with that, but fai just tells me the following: [...] Calling task_partition Partitioning local harddisks FAI: setup harddisks V0.32fai Probing disks: /dev/hde Disks found: hde parsing config file: /fai/disk_config/SMALL_IDE NUMERATION ERROR in line 10, the number of the partition can not be preserved: primary /mnt/win2 preserve4 ro cp: cannot stat `/tmp/fai/disk_var.sh': No such file or directory The problem lies in your partition ordering (i.e., hde1, hde4, hde3) - you can't preserve the 4th partition, if there are only 3 ... (at least linux-)fdisk should be able to fix the partition-order. [...] Regards, Michael
partitioning problem
hi! i have some difficulties with our strange constellation of partitions. the default in our network is a three partition layout: 1) primary fat16 for DOS (our main admin is a turboBasic freak and needs that) 2) extendet ntfs for WinNT 3) primary NTFS for data and applications as you can guess this was not my idea :) the only way i got linux installed is by booting with an partition-magic disk and convert the extendet partition into a primary one and to shrink the last partition. thismleads to a pretty stupid partition-order: hde1, hde4 and then hde3. a manual debian installation worked with that, but fai just tells me the following: [...] Calling task_partition Partitioning local harddisks FAI: setup harddisks V0.32fai Probing disks: /dev/hde Disks found: hde parsing config file: /fai/disk_config/SMALL_IDE NUMERATION ERROR in line 10, the number of the partition can not be preserved: primary /mnt/win2 preserve4 ro cp: cannot stat `/tmp/fai/disk_var.sh': No such file or directory here are the important parts of my SMALL_IDE: disk_config hde primary /mnt/win1 preserve1 ro primary /mnt/win2 preserve3 ro primary /mnt/win3 preserve4 ro logical / 70-2000 rw,errors=remount-ro ;-c -j ext3 switching hde4 before hde3 causes a similar error. my question is: how do i get FAI to work with that? thanks in advance mat.
SCSI harddisk partitioning problem
Hi, I tried to install Debian Woody on a PIII system with two SCSI discs using FAI. I used fai 2.3.4 downloaded from sourceforge. This is the disk configuration I used: disk_config sda primary / 512 rw, errors=remount-ro ; reiser primary swap2048 primary /usr5000-6000 rw ; reiser primary /var1000- rw ; reiser Unfortunately I don't have a log from that install. It complained about too many primary partitions and aborted, even though there are exactly 4 primary partitions in the configuration. I used the same configuration (except with hda instead of sda) for IDE systems before, without problems. I also tried an installation using both harddisks: disk_config sda primary / 512 rw, errors=remount-ro ; reiser primary swap2048 primary /usr1000- rw ; reiser disk_config sdb primary swap2048 primary /var1000- rw ; reiser Then it successfully created all partions but later tried to format the non-existing sda4 with reiserfs ... and aborted. I was able to fix the problem by commenting out a single line in /sbin/setup_harddisks: --- setup_harddisks.old Fri Oct 25 18:50:08 2002 +++ setup_harddisks Fri Oct 25 18:52:14 2002 @@ -393,7 +393,7 @@ ($MPPrimary{$extmp} eq "yes") && ($NoMoreLogicals = 1); $MPPrimary{$mountpoint} = "yes"; $PrimPartNo++; - ($PrimPartNo == 3) && ($disk =~ /^sd/) && ($PrimPartNo++); + #($PrimPartNo == 3) && ($disk =~ /^sd/) && ($PrimPartNo++); ($PrimPartNo >4 ) && die "ERROR: Too much primary partitions (max 4).". " All logicals together need one primary too.\n"; $MountpointPart{$mountpoint} = PartName($disk,$PrimPartNo); I don't know anything about perl, so I couldn't figure out what it is actually supposed to do, but for me it was just causing trouble. I hope this information helps finding a proper solution for the problem. Best regards, Felix __\|/_____ ___ ___ __Tschüß___\_6 6_/___/__ \___/__ \___/___\___You can do anything,___ _Felix___\Ä/\ \_\ \_\ \__U___just not everything [EMAIL PROTECTED]>o<__/ \___/ \___/at the same time!