|
From: Lenir S. <fla...@ya...> - 2007-03-01 15:11:10
|
Guys, i get the following error when i run makeimage.sh after i do the grub part, also im having to use /dev/loop/0 instead of /dev/loop:
localhost trunk # ./makeimage.sh 973
This script will create a bootable AstLinux image from the
development environment in this directory. Every care has been
taken to prevent damage to your host operating system, house, etc.
HOWEVER, IT IS ALWAYS POSSIBLE FOR SOMETHING TO GO WRONG. I CAN
NOT GUARANTEE THAT THIS SCRIPT WILL NOT DESTROY YOUR MACHINE OR
ANY DATA ON IT
Press enter to continue, or CTRL+C to exit
Would you like me to aggresively strip everything in your image?
This can save as much as 10mb.
Please answer yes or no
Strip: no
Stripping declined
You will need to write down the number of cylinders, heads, and
sectors for fdisk. Bad things happen if you mess this up!
========================================================================
bximage
Disk Image Creation Tool for Bochs
$Id: bximage.c,v 1.31 2005/11/20 20:26:35 vruppert Exp $
========================================================================
I will create a 'flat' hard disk image with
cyl=1976
heads=16
sectors per track=63
total sectors=1991808
total size=972.56 megabytes
Writing: [] Done.
I wrote 1019805696 bytes to disk.img.
The following line should appear in your bochsrc:
ata0-master: type=disk, path="disk.img", mode=flat, cylinders=1976, heads=16, spt=63
You need to run fdisk manually to partition the image.
Please write down or memorize the following instructions:
press 'x' - extra functionality
press 'h' fill in heads - probably 16
press 's' fill in sectors - probably 63
press 'c' fill in cylinders - this changes
press 'r' return to main menu
press 'n' to add new partition
press 'p' to choose primary partition
press '1' to set partition number
press Enter keys to choose default value of First Cylinder parameter.
press Enter keys to choose default value of Last Cylinder parameter.
press 'w' to write partition table and exit
Press enter when you are ready
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): x
Expert command (m for help): h
Number of heads (1-256, default 255): 16
Expert command (m for help): s
Number of sectors (1-63, default 63):
Using default value 63
Warning: setting sector offset for DOS compatiblity
Expert command (m for help): c
Number of cylinders (1-1048576, default 123): 1976
The number of cylinders for this disk is set to 1976.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Expert command (m for help): r
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1976, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-1976, default 1976):
Using default value 1976
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 22: Invalid argument.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
ln: `/dev/loop/0' and `/dev/loop/0' are the same file
GRUB Help:
grub> device (hd0) /dev/loop
grub> root (hd0,0)
grub> setup (hd0)
grub> quit
Press enter when you have this memorized
Do it...
GNU GRUB version 0.97 (640K lower / 3072K upper memory)
[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub> device (hd0) /dev/loop/0
grub> root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 18 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+18 p (hd0,0)/boot/grub/stage2 /boot/grub/menu.lst"... failed
Error 22: No such partition
grub> quit
Probing devices to guess BIOS drives. This may take a long time.
Done.
localhost trunk #
Here's the contents of my /dev :
localhost trunk # ls /dev/loop*
/dev/loop1 /dev/loop2 /dev/loop3 /dev/loop4 /dev/loop5 /dev/loop6 /dev/loop7
/dev/loop:
0 1 2 3 4 5 6 7
localhost trunk #
---------------------------------
Looking for earth-friendly autos?
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center. |