|
This is an FYI post.
You should be able to resize the partition without a problem. But if you just couldn't risk trashing the partition you could actually make a linux filesystem on that windows partition.
If your windows partition was mounted at /win/c.
dd if=/dev/zero of=/win/c/home bs=1024 count=1000000 #This makes a 1G file.
mke2fs /win/c/home
mke2fs 1.34 (25-Jul-2003)
/win/c/home is not a block special device.
Proceed anyway? (y,n) y
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
125184 inodes, 250000 blocks
12500 blocks (5.00%) reserved for the super user
First data block=0
8 block groups
32768 blocks per group, 32768 fragments per group
15648 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 30 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
Now /win/c/home is a Linux ext2 filesystem we can mount just like a partition using the -o loop option:
# mount /win/c/home /home -o loop
# ls /home
lost+found/
# df /home
Filesystem Size Used Avail Use% Mounted on
/win/c/home 962M 20K 913M 1% /home
# mount
/win/c/home on /home type ext2 (rw,loop=/dev/loop0)
You can even put an entry in /etc/fstab. So anytime you are getting low on Linux file space you don't necessarily have to make a new partition.
CAUTION: The dd command will write a single continuous block. So you should defrag the vfat partition before using this, or you could lose data.
Last edited by /bin/bash; 11-23-2003 at 12:42 AM.
|