Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have a USB stick with netinst version of Debian Wheezy (testing). I am trying to load a preseed file, named "preseed.cfg" in the USB root folder (same folder as initrd.gz). I use GRUB and my entry looks like this:

menuentry 'Debian Wheezy automatic install' {
  linux /vmlinuz preseed/file=/hd-media/preseed.cfg auto=true priority=critical
  initrd /initrd.gz
}

Now everytime the installer starts it says cannot find file:///hd-media/preseed.cfg. Will continue with manual install". Do I have the wrong syntax? Also, I thought any file named "preseed.cfg" will be detected automatically.

share|improve this question

3 Answers 3

up vote 2 down vote accepted

Here's the line I used for grub1 when I was doing this on Lenny using CDs.

append vga=normal initrd=/install.amd/initrd.gz preseed/file=/cdrom/preseed.txt debian-installer/locale=en_US console-keymaps-at/keymap=us --

Other than the fact that you're using grub2, it doesn't look significantly different.

You need to make sure that the path you're trying to use is actually the correct path. Does the USB installer mount itself to /hd-media? I haven't tried this with Wheezy (yet) but that doesn't feel right to me.

To check, start up the installer then switch to the shell console (I believe it's 4, so press ctrl+alt+4) then look around the system for your pressed.cfg file.

The file path that you list must match the exact file path of the preseed.cfg from the root of the booted installer.

share|improve this answer
    
Silly me, it was true that the usb was never mounted, because I dowloaded the netinst version instead of the hd-media version. Currently there is a bug in WHeezy install that makes the hd-media version hang when scanning for the ISO file under some circumstances, so I changed to netinst without thinking what implications it would get to the mounting process. –  Rolle Sep 27 '12 at 8:41

Could you add rootdelay=60 to your boot parameter, to see if it helps? Sometimes the kernel needs time to have USB devices detected, ready, drivers loaded and filesystems mounted.

share|improve this answer

I had the same problem and apparently the contents of the installation image (Debian Wheezy 7.3) was mounted under /cdrom/ instead of /hd-media/ - however, I did use unetbootin to create the USB-disk, which might affect the location of the mount.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.