LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 09-30-2013, 12:17 PM   #1
dferris
LQ Newbie
 
Registered: Jun 2006
Location: Colorado
Distribution: Fedora, Suse, FreeBSD
Posts: 2

Rep: Reputation: 0
Ubuntu 12.04 Preseed File


Hi,

I'm trying to set up the installer preseed file to automatically partition the hard disk.

The problem is, the installer doesn't seem to recognize my expert recipe. Instead, it will automatically partition the hard drive and allocate the full size of RAM for swap.

This is my recipe. If anyone can see what the problem is, I would really appreciate it.

Code:
d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string lvm
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-lvm/device_remove_lvm_span boolean true
d-i partman-auto/purge_lvm_from_device boolean true
#d-i partman-auto-lvm/guided_size string max
#d-i partman-md/device_remove_md boolean true
d-i partman-auto-lvm/new_vg_name string vg0
#d-i partman/alignment select cylinder
d-i partman-auto/choose_recipe select boot-root
d-i partman-auto/expert_recipe string                           \
        boot-root ::                                            \
                256 8000 256 ext2                               \
                        $primary{ }                             \
                        $bootable{ }                            \
                        method{ format }                        \
                        format{ }                               \
                        use_filesystem{ }                       \
                        filesystem{ ext2 }                      \
                        mountpoint{ /boot } .                   \
                 3000 7000 1000000000  ext4                     \
                        $primary{ }                             \
                        $defaultignore{ }                       \
                        method{ lvm }                           \
                        device{ /dev/sda }                      \
                        vg_name{ vg0 } .                        \
                 30000 5000 1000000000 ext4                     \
                        $lvmok{ }                               \
                        in_vg{ vg0 }                            \
                        lv_name{ root }                         \
                        method{ format }                        \
                        format{ }                               \
                        use_filesystem{ }                       \
                        filesystem{ ext4 }                      \
                        mountpoint{ / } .                       \
                 256 1024 512 swap                              \
                        $lvmok{ }                               \
                        in_vg{ vg0 }                            \
                        lv_name{ swap }                         \
                        method{ swap }                          \
                        format{ } .                             \
d-i partman/default_filesystem string ext4
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
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-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true

Last edited by dferris; 10-01-2013 at 11:43 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu autoinstall via Cobbler Preseed. gdizzle Ubuntu 0 07-02-2013 02:44 AM
How to use late_command in preseed file? eliote Programming 7 03-17-2011 07:17 AM
Linux partitioning using 'preseed.cfg' file eliote Programming 8 12-22-2010 01:55 AM
Ubuntu Preseed not found Curtor Ubuntu 1 09-12-2008 07:27 AM
Preseed file documentation or how-to? matiasar Debian 2 09-03-2008 06:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 11:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration