On 20/06/05, Robert Connolly <[EMAIL PROTECTED]> wrote: > Hi. I have a 10GB partition, /dev/hda2, and I want to mount just the first 2GB > of it (long story). It's got to be really interesting. Please tell :)
> Any of you know what else I could try? mount does not let me use the size= > option with ext2, only with tmpfs. Have you thought about dd? Someting like dd if=/dev/hda2 of=$HOME/hda2-part bs=1024k count=2048 should copy the first 2GB of it (using the 2**10 conversion, use 1000 and 2000 if you're talking about vendor-math). You may then be able to mount it with mount -o loop -t ext2 $HOME/hda2-part /mnt/2 Just make sure you have enough size on your hard drive. About the dissapearing file I don't know. Maybe because the first one is mounted on a loop device, but it shouldn't happen, methinks. cmn -- Carlos MartÃn http://www.cmartin.tk http://rpgscript.berlios.de Nowadays everyting has infrared and wireless. If it's big enough, it gets Gigabit and a DVD burner. -- http://linuxfromscratch.org/mailman/listinfo/lfs-chat FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
