Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

*Partly solved* Strange behaviour using preseed install

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
phloks
Posts: 4
Joined: 2013-04-16 12:35

*Partly solved* Strange behaviour using preseed install

#1 Post by phloks »

I withdraw this question.
It turned out that there still was a typo somewhere in the preseed file that caused the strange partman behaviour.
Now, partitioning and everything else works as expected, except for the fixed ip address part.
It still looks like this section is ignored completely.

Will look into this a little further, and if necessary, I'll post a new question.

Sorry for the trouble !

=====================================================


Tried several preseed configurations to install a Debian 9 machine, but my automated installation always fails with the menu-item 'disk-detect'.

This is the relevant part in my preseed file:

Code: Select all

partman-auto partman-auto/disk string /dev/[sv]da
d-i partman-auto/method string regular
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
d-i partman-auto/choose_recipe select multi
d-i partman-md/confirm boolean true
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
d-i partman/mount_style select traditional
Since I have two devices (one usb attached and one internally on the motherboard) the installation is missing the firmware for these devices, but I have set the following in the preseed file :

Code: Select all

d-i hw-detect/load_firmware boolean false
Now, when I get to the point where the disk should be partitioned, I get the following lines in the syslog (3 times):

Code: Select all

Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda1 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda1 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda2 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda2 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda5 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda5 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda1 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda1 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda2 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda2 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda5 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda5 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/fd0 on /media failed: No such file or directory
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/fd0 on /media failed: No such file or directory
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda1 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda1 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda2 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda2 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda5 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda5 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda1 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda1 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda2 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda2 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda5 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda5 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/fd0 on /media failed: No such file or directory
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/fd0 on /media failed: No such file or directory
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda on /m
After the third time, these lines appear:

Code: Select all

Dec 10 14:25:52 main-menu[215]: WARNING **: Configuring 'disk-detect' failed with error code 1
Dec 10 14:25:52 main-menu[215]: WARNING **: Menu item 'disk-detect' failed.
and the installation halts with a red screen.
When I manually (from the menu that now appears) start the item Detect disks again, I'm asked if I want to download firmware
for one of the devices I mentioned above, I decline, and now the automated installation succeeds and goes all the way to the end.

I have not been able to find what the reason for this behaviour is. Does anyone here have a clue, please ?

Furthermore, it seems like the setting of a fixed ip address in the preseed file is ignored completely.
I'm trying to set this using the following lines in the preseed file :

Code: Select all

d-i netcfg/choose_interface select eth0
d-i netcfg/disable_autoconfig boolean true
d-i netcfg/dhcp_failed note
d-i netcfg/dhcp_options select Configure network manually
d-i netcfg/disable_dhcp boolean true
d-i netcfg/get_nameservers string 8.8.8.8
d-i netcfg/get_ipaddress string 192.168.0.73
d-i netcfg/get_gateway string 192.168.0.1
d-i netcfg/confirm_static boolean true
but the installation merrily just uses DHCP.....

Any help would be greatly appreciated !
Thanks you,
Hans

lagah
Posts: 3
Joined: 2020-06-16 04:29

Re: *Partly solved* Strange behaviour using preseed install

#2 Post by lagah »

phloks wrote:I withdraw this question.
It turned out that there still was a typo somewhere in the preseed file that caused the strange partman behaviour.
Now, partitioning and everything else works as expected, except for the fixed ip address part.
It still looks like this section is ignored completely.

Will look into this a little further, and if necessary, I'll post a new question.

Sorry for the trouble !

=====================================================


Tried several preseed configurations to install a Debian 9 machine, but my automated installation always fails with the menu-item 'disk-detect'.

This is the relevant part in my preseed file:

Code: Select all

partman-auto partman-auto/disk string /dev/[sv]da
d-i partman-auto/method string regular
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
d-i partman-auto/choose_recipe select multi
d-i partman-md/confirm boolean true
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
d-i partman/mount_style select traditional
Since I have two devices (one usb attached and one internally on the motherboard) the installation is missing the firmware for these devices, but I have set the following in the preseed file :

Code: Select all

d-i hw-detect/load_firmware boolean false
Now, when I get to the point where the disk should be partitioned, I get the following lines in the syslog (3 times):

Code: Select all

Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda1 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda1 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda2 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda2 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda5 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda5 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda1 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda1 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda2 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda2 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda5 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda5 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/fd0 on /media failed: No such file or directory
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/fd0 on /media failed: No such file or directory
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda1 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda1 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda2 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda2 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda5 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda5 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda1 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda1 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda2 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda2 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda5 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda5 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/fd0 on /media failed: No such file or directory
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/fd0 on /media failed: No such file or directory
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda on /m
After the third time, these lines appear:

Code: Select all

Dec 10 14:25:52 main-menu[215]: WARNING **: Configuring 'disk-detect' failed with error code 1
Dec 10 14:25:52 main-menu[215]: WARNING **: Menu item 'disk-detect' failed.
and the installation halts with a red screen.
When I manually (from the menu that now appears) start the item Detect disks again, I'm asked if I want to download firmware
for one of the devices I mentioned above, I decline, and now the automated installation succeeds and goes all the way to the end.

I have not been able to find what the reason for this behaviour is. Does anyone here have a clue, please ?

Furthermore, it seems like the setting of a fixed ip address in the preseed file is ignored completely.
I'm trying to set this using the following lines in the preseed file :

Code: Select all

d-i netcfg/choose_interface select eth0
d-i netcfg/disable_autoconfig boolean true
d-i netcfg/dhcp_failed note
d-i netcfg/dhcp_options select Configure network manually
d-i netcfg/disable_dhcp boolean true
d-i netcfg/get_nameservers string 8.8.8.8
d-i netcfg/get_ipaddress string 192.168.0.73
d-i netcfg/get_gateway string 192.168.0.1
d-i netcfg/confirm_static boolean true
but the installation merrily just uses DHCP.....

Any help would be greatly appreciated !
Thanks you,
Hans
I'm having the same issue now, in 2020. Any solution?

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: *Partly solved* Strange behaviour using preseed install

#3 Post by Head_on_a_Stick »

lagah wrote:Any solution?
Correct the typo.

And please don't full-quote unnecessarily, it degrades the readability of the thread.
deadbang

Post Reply