P.S. I've tried again with ubd0=/dev/sda5 (spelling mistake before).
It's still not working - I've attached the full error log.
andy
andy baxter wrote:
I've had a go at getting UML running off a partition on the host system.
What I've done is:
- prepare it as an ext3 filesystem.
- mount it and debootstrap a debian base system into it.
- checked it works when you chroot to it.
- install the user-mode-linux debian package.
- run:
$ linux.uml mem=128M udb0=/dev/sda5 rootflags=rw
(also tried udba=/dev/sda5 root=/dev/sda5)
I keep getting the error:
VFS: cannot open root device "98:0" or unknown-block(98,0)
(There is a longer error log than this but there's a lot and it's
awkward to copy it from the machine I'm setting up on)
can anyone help with this?
cheers,
andy
Diego Ramos V. wrote:
Yes, It's possible, I'm going to resend a mail which was sent for a
great friend Benedict Verheyen, follow the instructions and it works out,
- make a new directory for instance: *mkdir /mnt/new*
- mount the filesystem image on new directory *mount -o loop
filesystem_image /mnt/new
- *Now you can copy any file into fileystem *cp apache /mnt/new/home
- *umount the filesystem* image
- *run UML and install apache or any software, don't forget dependencies
-
Good Luck
Diego R.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
a...@whale:~$ linux.uml mem=128M ubd0=/dev/sda5 rootflags=rw
Locating the bottom of the address space ... 0x0
Locating the top of the address space ... 0xc0000000
Core dump limits :
soft - 0
hard - NONE
Checking that ptrace can change system call numbers...OK
Checking syscall emulation patch for ptrace...OK
Checking advanced syscall emulation patch for ptrace...OK
Checking for tmpfs mount on /dev/shm...OK
Checking PROT_EXEC mmap in /dev/shm/...OK
Checking for the skas3 patch in the host:
- /proc/mm...not found: No such file or directory
- PTRACE_FAULTINFO...not found
- PTRACE_LDT...not found
UML running in SKAS0 mode
Adding 11345920 bytes to physical memory to account for exec-shield gap
Linux version 2.6.26 (2.6.26) (r...@lart) (gcc version 4.3.2 (Debian 4.3.2-1.1)
) #2 Thu Jul 30 05:48:02 UTC 2009
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 35260
Kernel command line: mem=128M ubd0=/dev/sda5 rootflags=rw root=98:0
PID hash table entries: 1024 (order: 10, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 124884k available
SLUB: Genslabs=12, HWalign=128, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Mount-cache hash table entries: 512
Checking for host processor cmov support...Yes
Checking that host ptys support output SIGIO...Yes
Checking that host ptys support SIGIO on close...No, enabling workaround
net_namespace: 652 bytes
Using 2.6 host AIO
NET: Registered protocol family 16
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
NET: Registered protocol family 1
mconsole (version 2) initialized on /home/andy/.uml/MsR1DO/mconsole
Checking host MADV_REMOVE support...OK
Mapper v0.1
mmapper_init - find_iomem failed
UML Watchdog Timer
Host TLS support detected
Detected host type: i386 (GDT indexes 6 to 9)
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
JFS: nTxBlock = 976, nTxLock = 7814
SGI XFS with ACLs, security attributes, realtime, large block numbers, no debug
enabled
SGI XFS Quota Management subsystem
msgmni has been set to 244
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
SoftDog: cannot register miscdev on minor=130 (err=-16)
TCP cubic registered
NET: Registered protocol family 17
Initialized stdio console driver
Console initialized on /dev/tty0
console [tty0] enabled
Initializing software serial port version 1
console [mc-1] enabled
Couldn't open "/dev/sda5", errno = 13
Failed to initialize ubd device 0 :Couldn't determine size of device's file
registered taskstats version 1
VFS: Cannot open root device "98:0" or unknown-block(98,0)
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(98,0)
EIP: 0073:[<b7ef8430>] CPU: 0 Not tainted ESP: 007b:bfa13e84 EFLAGS: 00200246
Not tainted
EAX: 00000000 EBX: 00000b64 ECX: 00000013 EDX: 00000b64
ESI: 00000b60 EDI: 0000003b EBP: bfa13f10 DS: 007b ES: 007b
10467e7c: [<0809eed4>] notifier_call_chain+0x34/0x70
10467ea0: [<08311dca>] panic+0x71/0x104
10467ebc: [<08049c03>] mount_block_root+0x15f/0x27f
10467ef4: [<080e8bc7>] sys_mknod+0x27/0x30
10467f08: [<08049d7e>] mount_root+0x5b/0x60
10467f1c: [<08049eb6>] prepare_namespace+0x133/0x17d
10467f34: [<08049147>] kernel_init+0x92/0x290
10467f50: [<0805879f>] tcp_congestion_default+0x0/0x13
10467fa4: [<08080e58>] finish_task_switch+0x28/0x90
10467fbc: [<08072f00>] run_kernel_thread+0x30/0x50
10467fd8: [<08072eef>] run_kernel_thread+0x1f/0x50
10467fe4: [<0805f7bb>] new_thread_handler+0x6b/0xa0
10467fe8: [<080490b5>] kernel_init+0x0/0x290
Segmentation fault
a...@whale:~$
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user