Tuesday, September 21, 2004

Its working!

Finally got EVMS working y'day. I connected a Fujitsu 4 GB hard disk to play around with. I managed to do a %: fdisk hdb and get away with it :D

After the 'd' and 'w' commands, it did pop up the same thing about the new partition table and kernel adopting the old table till reboot. I almost burst into tears, but decided to reboot n' check to see if it really wuz screwed. Thanked my stars when GRUB loaded and the kernel came up OK..

Once in a while, the computer still craps about the filesystem when I start it, and obstinately forces a check. PartitionMagic still calls Disk1's partition type 'BAD' and probably wants it spanked :p

Here's how to create a snapshot with EVMS. After you install it, do a
%: ldconfig or else you'll be scolded for missing a library!
[Thank God it doesn't ask you to replace all the books :| OK sorry!]

%: evms_activate
%: evms

EVMS : create:segment,hdb_freespace1,size=100MB

(You could open %: evmsgui and click the small +'s to find out which /dev/hd has enough freespace..)
This will return a handle (the hd created). Lets assume its hdb1.

EVMS : create:container,LvmRegMgr={name="container",pe_size=16MB},hdb1
EVMS : create:region,LvmRegMgr={name="region",size=100MB},"lvm/container/Freespace"
EVMS : create:object,Snapshot={original="/dev/evms/hda1",snapshot=snap},"lvm/container/region"
EVMS : create:volume,snap,n="volume"

(Here, /dev/evms/hda1 is the drive you want to take a snapshot of.)

Tip: If you want your Windows partition mounted when you start Linux, herez the line you could add in your /etc/fstab file.

/dev/hda1      /mnt/C      auto   auto,users,ro   0 0

Replace the first parameter with your Windows drive and the second with the directory where you want it mounted. n' btw there's a Explore2FS utility, which lets you view your Linux partitions in Windows :)

0 Comments:

Post a Comment

<< Home