Penguin
Diff: UserModeLinux
EditPageHistoryDiffInfoLikePages

Differences between version 12 and predecessor to the previous major change of UserModeLinux.

Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History

Newer page: version 12 Last edited on Friday, January 9, 2004 10:17:20 pm by DavePearson Revert
Older page: version 8 Last edited on Wednesday, November 5, 2003 10:02:10 am by GreigMcGill Revert
@@ -10,9 +10,9 @@
  dd if=/dev/zero of=root_fs bs=1M count=512 
 and formatted it with ext2 
  mke2fs ./root_fs 
 then mounted it as a loop back device 
- mkdir x && mount -o loop ./root_fs uml 
+ mkdir uml && mount -o loop ./root_fs uml 
 then built my disto on it 
  debootstrap woody uml /mirrors/debian 
 you can then boot uml 
  linux single rw devfs=mount eth0=tuntap,,,''the-ip-of-your-host-machine'' 
@@ -26,10 +26,10 @@
 Now lets configure all the packages 
  dpkg-reconfigure -a 
  tzconfig 
 now before we reboot we need to create some files that the installer usually creates 
- echo /dev/ubd/0 / ext2 defaults,errors=remount-ro 0 1 >/etc/fstab  
- echo none /proc proc defautls 0 0 >>/etc/fstab 
+ echo /dev/ubd/0 / ext2 defaults,errors=remount-ro 0 1 >/etc/fstab  
+ echo none /proc proc defaults 0 0 >>/etc/fstab 
  
  echo ''hostname-of-your-uml-machine'' >/etc/hostname 
  
 and lets set up networking on boot 
@@ -78,4 +78,35 @@
 tuntap_open_tramp failed - errno = 22%%% 
 SIOCSIFFLAGS: Invalid argument%%% 
  
 I tried EVERYTHING to get rid of this. Finally the solution was VERY simple. Run as a standard user, who is in the uml-net group, and not as root. Note: This is a "works for me". I still don't know why this solved the problem, only that it did. Also, another oddity is that AFTER I had run it as a user, I could then run it as root with no problems. This smacks of tap0 being created with incorrect permissions or some oddity. Anyway, it works now. 
+  
+!Mounting one of the pre-built Root FSes (ON THE HOST!)  
+  
+It took a while for me to work out how to mount a root FS for RH9 so I could change it before booting UML. The FS had two partitions and a partition table, so mount the_fs /mnt -o loop didn't work. It turns out you need to specify an offset to mount to skip past the partition table. You can find out how many bytes to skip by doing this:  
+  
+ # fdisk redhat9.image.server-minimal.disk  
+ Command (m for help): u  
+ Changing display/entry units to sectors  
+  
+ Command (m for help): p  
+  
+ Disk redhat9.image.server-minimal.disk: 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  
+ redhat9.image.server-minimal.disk1 * 32 3756031 1878000 83 Linux  
+ redhat9.image.server-minimal.disk2 3756032 4194303 219136 82 Linux swap  
+  
+ Command (m for help): q  
+  
+ # bc  
+ bc 1.06  
+ Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc.  
+ This is free software with ABSOLUTELY NO WARRANTY.  
+ For details type `warranty'.  
+ 32*512  
+ 16384  
+ # mount redhat9.image.server-minimal.disk /mnt -o loop,offset=16384 -t ext3  
+  
+Sorted.