[Gllug] UML file system question...

Vincent AE Scott gllug at codex.net
Thu May 30 16:53:11 UTC 2002


Jake Jellinek(jj at positive-internet.com)@Wed, May 29, 2002 at 08:12:51PM +0100:
> Hi,
> 
> 
> dd if=/dev/zero of=home_fs seek=500 count=1 bs=1M
> 
> (got the block size and seek from the howto, although I'm no expert
> there and the howto seems to relate to reiserfs rather than ext2 which
> I'm starting with for the time being, so it may be wrong)
> 
> I'm then starting up uml like this:-
> 
> linux eth0=ethertap,tap1,fe:fd:0:0:0:2,213.253.25.151
> ubd0=/home/jj/root_fs ubd1=/home/jj/home_fs
> 
> and all is fine apart from the fact that I can't then seem to use fdisk,
> fsck or mount to get the home_fs bit mounted as another partition.
> 
> Things I have randomly for no good reason tried without success:-
> 
> # fdisk /dev/ubd1
> 
> Unable to read /dev/ubd1
> 
> (hoto doesn't mention fdisk, perhaps not needed anyway)
> 
> # mkfs /dev/ubd1
> 
> mke2fs 1.27 (8-Mar-2002)
> mkfs.ext2: Device size reported to be zero.  Invalid partition
> specified, or partition table wasn't reread after running fdisk, due to
> a modified partition being busy and in use.  You may need to reboot to
> re-read your partition table.
> 
> Anyone got any experience/suggestions that might help on this one?
> 
> Many thanks for any help I might get,

a couple of things spring to mind.
do you have a /dev/ubd1 device file inside UML?
did you try creating the FS on the actual file first?

i dont think you can fdisk ubd devices.  IIRC i saw very recently on the
UML list, that you can now setup a device which can have upto 8 (IIRC)
fdisk partitions on it.  i beliebe tho, that its not accessed via ubdn
on the flags, but some other mechanism.

i'll have a quick look thru my UML inbox, when i've got round to
checking all my mail, na dlet you know.

BTW, i dont think this new disk access mechanism has been documented
yet.  i saw mention of it only a few days ago.

-v

-- 
keys:  http://codex.net/pgp/gpg.asc http://codex.net/pgp/pgp.asc

 If NT is the answer, you didn't understand the question. 



-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list