Fwd: how to adjust the partion size of ubuntu 6.06?

Alexander Skwar listen at alexander.skwar.name
Sun Jul 16 06:57:24 UTC 2006


Good morning!

zhihang wang schrieb:

> I have move the data to the LVS or my logical volumn. And I can create 
> another physical volumn on the hda4. But I don't know how to let the 
> grub or linux know that the system files are on the lvm now?

You don't have to do anything special, when you're using the Dapper
kernel initramfs. In my /boot/grub/menu.lst, I've got:

title           Ubuntu, kernel 2.6.15-25-686
root            (hd0,6)
kernel          /vmlinuz-2.6.15-25-686 root=/dev/mapper/sys-URoot ro resume=/dev/hda6 resume2=swap:/dev/hda6 quiet splash
initrd          /initrd.img-2.6.15-25-686
savedefault
boot

(That's of course not the complete menu.lst, which you can find
on <http://askwar.pastebin.ca/89424>.)

The important thing is to use the Ubuntu initrd (or a selfmade one).

As far as the /etc/fstab is concerened, you can find it on <http://askwar.pastebin.ca/89428>.
Important for Ubuntu is:

proc            /proc           proc    defaults        0       0
/dev/hda6       none            swap            sw                      0 0
/dev/hdc        /media/cdrom0   udf,iso9660     user,noauto             0 0

LABEL=URoot     /               reiserfs        noatime,user_xattr      0 1
LABEL=UHome     /home           jfs             noatime                 0 2
LABEL=UTemp     /tmp            jfs             noatime                 0 2
LABEL=UUSR      /usr            jfs             noatime                 0 2
LABEL=UVar      /var            jfs             noatime                 0 2
LABEL=UBoot     /boot           ext2            noatime                 0 2
LABEL=Repository /var/local/repository jfs      noatime                 0 2

As you can see, I'm using LABELs, which has nothing to do with
LVM ;)

Anyway, suppose your Volume Group is named "sys" and your Logical
Volume which holds the filesystem for /home is called Home, you could
add to fstab:

/dev/sys/Home	/home		auto		noatime			0 2
or
/dev/mapper/sys-Home	/home	auto		noatime			0 2

Instead of "auto" for filesystem, you might want to add the correct
filesystem, of course. :)


Regards,

Alexander Skwar
-- 
QOTD:
	"Do you smell something burning or is it me?"
		-- Joan of Arc




More information about the ubuntu-users mailing list