Enlarging coLinux Root File System
1. Create a large file using fsutil:
c:\> fsutil file createnew <name> <size>
where name can be any legal Windows file name and size is in bytes.
2. Edit coLinux configuration XML file to add the newly created file as a block device
3. Reboot coLinux
# shutdown -h now
4. Restart coLinux
5. Login as root
6. Create a file system
# mkfs.ext3 /dev/cobd2
/dev/cobd2 determined based on the index value used in the configuration XML file.
7. Create a temporary mount point
# mkdir /tmp/mnt
8. Mount newly created file system
# mount /dev/cobd2 /tmp/mnt
9. Copy all files to the file system
# cp -ax / /tmp/mnt
10. Copy devices to the file system
# cp -a /dev/* /tmp/mnt/dev/
11. Sync the file system
# sync
12. Unmount the file system
# umount /dev/cobd2
13. Shutdown coLinux
# shutdown -h now
14. Edit the configuration XML file to remove the line added in step #2. Modify the root block device file name to the new file.
15. Restart coLinux
c:\> fsutil file createnew <name> <size>
where name can be any legal Windows file name and size is in bytes.
2. Edit coLinux configuration XML file to add the newly created file as a block device
3. Reboot coLinux
# shutdown -h now
4. Restart coLinux
5. Login as root
6. Create a file system
# mkfs.ext3 /dev/cobd2
/dev/cobd2 determined based on the index value used in the configuration XML file.
7. Create a temporary mount point
# mkdir /tmp/mnt
8. Mount newly created file system
# mount /dev/cobd2 /tmp/mnt
9. Copy all files to the file system
# cp -ax / /tmp/mnt
10. Copy devices to the file system
# cp -a /dev/* /tmp/mnt/dev/
11. Sync the file system
# sync
12. Unmount the file system
# umount /dev/cobd2
13. Shutdown coLinux
# shutdown -h now
14. Edit the configuration XML file to remove the line added in step #2. Modify the root block device file name to the new file.
15. Restart coLinux

0 Comments:
Post a Comment
<< Home