[Netkit.users] Simple question
Fabio Ricci
ribio a tiscali.it
Ven 3 Mar 2006 14:05:44 CET
You can obtain the offset with this comand:
# fdisk -l -u netkit-fs
....
Disk netkit-fs: 0 MB, 0 bytes
128 heads, 32 sectors/track, 0 cylinders, total 0 sectors
Units = sectors of 1 * 512 = 512 bytes
Device Boot Start End Blocks Id System
netkit-fs1 * 32 1228799 614384 83 Linux
here we have sector of 512 bytes, so if the partion start at 32th sector
we have an offset of 32*512=16384 bytes
Fabio
On Ven, 3 Marzo 2006 1:07 pm, Gianni Costanzi wrote:
> Thank you, I've understood that the problem was that there was a partition
> on that file, but I didn't know what to do :)
>
> PS: is "16384" a known offset or is there some way too understand that the
> partition is at that offset?
>
> Thx!
> Gianni
>
> On 3/3/06, Fabio Ricci <ribio a tiscali.it> wrote:
>>
>> Hi Gianni,
>> you can mount a netkit filesystem on loop device but you have to specify
>> an offset like this
>>
>> #mount netkit-fs /mnt/ -o loop=/dev/loop4,offset=16384
>>
>> #mount
>> /home/fabio/netkit2/fs/netkit-fs-F2.2 on /mnt type ext2
>> (rw,loop=/dev/loop4,offset=16384)
>>
>> that's because there is one partition in the file so you have to look
>> for
>> the begin of the disk from the byte 16384
>>
>> have a good time with netkit
>> greetings
>> Fabio
>>
>>
>> On Ven, 3 Marzo 2006 12:00 pm, Gianni Costanzi wrote:
>> > Hi,
>> > I have a simple question for you: how can I increase the size of the
>> > filesystem that comes with netkit2? I can't mount it as a loopback
>> device,
>> > since it is not an ext2 filesystem (otherwise I could create another
>> empty
>> > file, with a bigger size, create on it a new filesystem and then copy
>> > there
>> > the content of the netkit2 filesystem).. Any suggestion?
>> >
>> > Thank you very much!
>> >
>> > --
>> >
>> --------------------------------------------------------------------------------------------------------------
>> > | Gianni Costanzi (gianni.costanzi a gmail.com)
>> > |
>> > | Gentoo Documentation Project (GDP) Member - Italian Translator
>> > | (http://www.gentoo.org/proj/en/gdp/)
>> > | (http://ares.science.unitn.it/~gianni.costanzi/)
>> > |
>> > | Free Software Foundation Member #3844 (www.fsf.org)
>> > |
>> > | Why GNU/Linux? (http://www.gnu.org/gnu/why-gnu-linux.html)
>> >
>> --------------------------------------------------------------------------------------------------------------
>> > _______________________________________________
>> > Netkit.users mailing list
>> > Netkit.users a list.dia.uniroma3.it
>> > http://list.dia.uniroma3.it/mailman/listinfo/netkit.users
>> >
>>
>>
>> _______________________________________________
>> Netkit.users mailing list
>> Netkit.users a list.dia.uniroma3.it
>> http://list.dia.uniroma3.it/mailman/listinfo/netkit.users
>>
>
>
>
> --
> --------------------------------------------------------------------------------------------------------------
> | Gianni Costanzi (gianni.costanzi a gmail.com)
> |
> | Gentoo Documentation Project (GDP) Member - Italian Translator
> | (http://www.gentoo.org/proj/en/gdp/)
> | (http://ares.science.unitn.it/~gianni.costanzi/)
> |
> | Free Software Foundation Member #3844 (www.fsf.org)
> |
> | Why GNU/Linux? (http://www.gnu.org/gnu/why-gnu-linux.html)
> --------------------------------------------------------------------------------------------------------------
>
Maggiori informazioni sulla lista
Netkit.users