Tuesday, June 14, 2011

No init found . Try passing init = boot arg

Problem:
No init found . Try passing init = boot arg . 
Busy Box v1.15.3 (Ubuntu 1:1.15.3-1ubuntu 5)built-in shell (ash) 
Enter 'help' for a list of built-in commands. 
(initramfs)

One possible solution: 
1. Boot from the Ubuntu Live CD.
2. Open/Run Terminal.
3. Type: sudo fdisk -l (to get the device name) then press ENTER.
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: **********

Device Boot Start End Blocks Id System
/dev/sda1 * 1 30238 242886703+ 83 Linux
/dev/sda2 30239 30401 1309297+ 5 Extended
/dev/sda5 30239 30401 1309266 82 Linux swap / Solaris


4. Type: sudo fsck /dev/sda1 then press ENTER.
5. Restart the system and boot normally.

Friday, June 3, 2011

How to mount and unmount an ISO image under Solaris

Mount an iso image
You can use lofiadm command to mount ISO image under Solaris.
e.g.;

# lofiadm -a /absolute/path/to/isoimage.iso

output:
/dev/lofi/1
Here, /dev/lofi/1 is a device, now you can use the mount command to mount the iso image.

# mount -o ro -F hsfs  /dev/lofi/1   /mnt 


Unmount and detach the image

Use umount command to unmount the image

# umount /mnt

Now remove/free block device

# lofiadm -d /dev/lofi/1



There was an error in this gadget