Jump to content

Recommended Posts

Posted

They both look okay . . . but I do not see the .rpm you downloaded on C: in Windows . . . . where did you store it ??:devil: Bruno

  • Replies 121
  • Created
  • Last Reply

Top Posters In This Topic

  • bcondemi

    58

  • Bruno

    57

  • teacher

    6

  • ian

    1

Top Posters In This Topic

Posted

under 'linux download'I can move it to c: Should I do that?B(2)

Posted

NO no no . . . . not needed . . . i just need to know where it exactly is.okay let us see:

# ls -al /mnt/win_c/Linux\ download

:devil: Bruno

Posted

[root@localhost root]# ls -al /mnt/win_c/Linux\ downloadtotal 64dr-x------ 1 root root 0 Apr 8 17:04 ./dr-x------ 1 root root 8192 Apr 9 09:05 ../-r-------- 2 root root 55576 Apr 8 17:04 mkinitrd-4.1.12-9tex.i586.rpm[root@localhost root]# B(2)

Posted

Cool !!!now:

# cp /mnt/win_c/Linux\ download/mkinitrd-4.1.12-9tex.i586.rpm  /mnt/sdb1/root# ls -al /mnt/sdb1/root

No reply on the first command is OK and means it was successfulB) Bruno

Posted

[root@localhost root]#[root@localhost root]# cp /mnt/win_c/Linux\ download/mkinitrd-4.1.12-9tex.i586.rpm /mnt/sdb1/root[root@localhost root]# ls -al /mnt/sdb1/roottotal 328drwxr-x--- 29 root root 4096 Apr 9 15:56 ./drwxr-xr-x 20 root root 4096 Apr 8 20:38 ../-rw------- 1 root root 145 Apr 8 20:45 .bash_history-rw-r--r-- 1 root root 24 Dec 2 2002 .bash_logout-rw-r--r-- 1 root root 106 Dec 2 2002 .bash_profile-rw-r--r-- 1 root root 359 Feb 12 17:45 .bashrc-rw-rw-r-- 1 root root 24491 Feb 17 22:03 boot.lss-rw-r--r-- 1 root root 233 Dec 2 2002 .cshrc-rw------- 1 root root 66 Dec 7 16:41 .cvspassdrwx------ 3 root root 4096 Apr 8 20:38 Desktop/-rw------- 1 root root 26 Dec 6 14:21 .dmrcdrwxrwxr-x 2 root root 4096 Feb 18 20:08 .emelfm/-rw-rw-r-- 1 root root 307 Feb 16 21:13 .fonts.confdrwx------ 4 root root 4096 Feb 18 20:05 .gconf/drwx------ 2 root root 4096 Feb 18 20:06 .gconfd/drwxr-xr-x 2 root root 4096 Feb 18 19:47 .giFT/drwx------ 4 root root 4096 Feb 16 16:13 .gnome/drwx------ 4 root root 4096 Dec 7 15:38 .gnome2/drwx------ 2 root root 4096 Dec 6 14:32 .gnome2_private/drwx------ 3 root root 4096 Dec 16 12:40 .gnupg/drwxr-xr-x 2 root root 4096 Feb 17 14:31 .gstreamer-0.8/-rw-r--r-- 1 root root 1952 Feb 16 21:14 .gtk_qt_engine_rc-rw-r--r-- 1 root root 275 Feb 16 20:36 .gtkrc-2.0-rw------- 1 root root 195 Apr 8 20:13 .ICEauthoritydrwxr-xr-x 4 root root 4096 Dec 6 22:26 .icons/drwx------ 4 root root 4096 Apr 8 20:38 .kde/-rw------- 1 root root 265 Feb 16 21:14 .kdercdrwx------ 3 root root 4096 Dec 10 15:25 .macromedia/-rw-r--r-- 1 root root 6257 Feb 16 16:13 .mailcapdrwxrwxr-x 2 root root 4096 Dec 7 19:56 .mc/drwxr-xr-x 3 root root 4096 Dec 6 14:21 .mcop/-rw------- 1 root root 31 Feb 18 20:05 .mcoprc-rw-r--r-- 1 root root 1270 Feb 16 16:13 .mime.types-r-------- 1 root root 55576 Apr 9 15:56 mkinitrd-4.1.12-9tex.i586.rpmdrwx------ 3 root root 4096 Dec 7 15:58 .mozilla/drwxr-xr-x 2 root root 4096 Feb 12 18:10 .mplayer/drwxr-xr-x 5 root root 4096 Apr 8 20:38 OpenOffice.org1.1.4/drwxr-xr-x 2 root root 4096 Apr 8 20:38 .qt/-rw------- 1 root root 34494 Dec 6 22:20 .realplayerrc-rw------- 1 root root 1485 Feb 18 10:17 .recently-useddrwxrwxr-x 2 root root 4096 Feb 18 19:46 Shared/drwxrwxrwx 2 root root 4096 Dec 16 17:47 smb4k/-rwxr-xr-x 1 root root 120 Feb 16 16:13 .sversionrc*drwx------ 2 root root 4096 Feb 18 20:03 .synaptic/-rw-r--r-- 1 root root 189 Dec 2 2002 .tcshrcdrwxr-xr-x 3 root root 4096 Dec 6 18:10 .themes/drwx------ 3 root root 4096 Dec 6 15:09 .thumbnails/drwx------ 3 root root 4096 Dec 7 15:37 .thunderbird/drwx------ 2 root root 4096 Apr 8 20:00 tmp/-rw-r--r-- 1 root root 3750 Dec 2 2002 .vimrc-rw------- 1 root root 304 Feb 18 20:05 .Xauthority-rw------- 1 root root 54 Apr 8 20:12 .xauthwSMKUi-rw-r--r-- 1 root root 1479 Dec 2 2002 .Xdefaultsdrwxr-xr-x 2 root root 4096 Dec 7 17:31 .xine/[root@localhost root]# Just a question.. the ls command is list and the cp command is copy right?I don't know them yet... Will have to!B(2)

Posted
Just a question.. the ls command is list and the cp command is copy right?
100% corrrect ;)This is looking good so far . . . now we are getting to the point of no return . . . so fasten your seatbelts :devil:
# umount /mnt/win_c# mount -t proc none /mnt/sdb1/proc# mount -t none /dev /mnt/sdb1/dev -o bind# chroot /mnt/sdb1

Show me the prompt you are getting before and after the chroot command . . B) Bruno

Posted

[root@localhost root]# umount /mnt/win_c[root@localhost root]# mount -t proc none /mnt/sdb1/proc[root@localhost root]# mount -t none /dev/mnt/sdb1/dev -o bindUsage: mount -V : print version mount -h : print this help mount : list mounted filesystems mount -l : idem, including volume labelsSo far the informational part. Next the mounting.The command is `mount [-t fstype] something somewhere'.Details found in /etc/fstab may be omitted. mount -a [-t|-O] ... : mount all stuff from /etc/fstab mount device : mount device at the known place mount directory : mount known device here mount -t type dev dir : ordinary mount commandNote that one does not really mount a device, one mountsa filesystem (of the given type) found on the device.One can also mount an already visible directory tree elsewhere: mount --bind olddir newdiror move a subtree: mount --move olddir newdirA device can be given by name, say /dev/hda1 or /dev/cdrom,or by label, using -L label or by uuid, using -U uuid .Other options: [-nfFrsvw] [-o options] [-p num].For many more details, say man 8 mount .[root@localhost root]# mount -t none /dev /mnt/sdb1/dev -o bind[root@localhost root]# chroot /mnt/sdb1[root@localhost /]# I forgot the space after the dev and therefore re-typed the #mount -t none /dev /mnt/sdb1/dev -o bind command.seems okB(2)

Posted

Okay . . no problem

# rpm -Uvh /root/mkinitrd-4.1.12-9tex.i586.rpm

:devil: Bruno

Posted

[root@localhost /]# rpm -Uvh /root/mkinitrd-4.1.12-9tex.i586.rpmerror: failed to stat /initrd/proc: No such file or directoryPreparing... ########################################### [100%] 1:mkinitrd ########################################### [100%][root@localhost /]# B(2)

Posted

Brilliant !!!!Now the next command . . . look out for typos !!

# mkinitrd   --preload=ehci-hcd  --preload=usb-storage  --preload=scsi_mod  --preload=sd_mod  /boot/usbinitrd.img   2.6.10-oci7

( NOTE: This command is ONE command . . ONE line !!! ):devil: Bruno

Posted

[root@localhost /]# mkinitrd --preload=ehci-hcd --preload=usb-storage --preload=scsi_mod --preload=sd_mod /boot/usbinitrd.img 2.6.10-oci7tune2fs 1.35 (28-Feb-2004)Setting interval between check 0 seconds[root@localhost /]# Seems to have worked. The Drive light flashed a bit.I assumed that there were 2 spaces between each set of command (I can't cut and paste). Did I assume right?B(2)

Posted

One or two spaces makes no difference . . I only did put them there so the spaces would be clear to you :)Seems indeed like it worked :)Okay next set of commands:

# ls -al /boot# cat /etc/lilo.conf

:devil: Bruno

Posted

[root@localhost /]# ls -al /boottotal 3092drwxr-xr-x 2 root root 4096 Apr 9 16:20 ./drwxr-xr-x 20 root root 4096 Apr 8 20:38 ../-rw-r--r-- 1 root root 512 Nov 28 14:06 boot.0300-rw-r--r-- 1 root root 512 Apr 8 20:43 boot.0810lrwxrwxrwx 1 root root 18 Apr 8 20:28 config -> config-2.6.10-oci7-rw-r--r-- 1 root root 56236 Feb 15 21:48 config-2.6.10-oci7-rw-r--r-- 1 root root 497203 Apr 8 20:42 initrd-2.6.10-oci7.imglrwxrwxrwx 1 root root 22 Apr 8 20:28 initrd.img -> initrd-2.6.10-oci7.imglrwxrwxrwx 1 root root 26 Apr 8 20:28 kernel.h -> /boot/kernel.h-2.6.10-oci7-rw-r--r-- 1 root root 695 Feb 16 20:00 kernel.h-2.6.10-oci7-rw-rw-r-- 1 root root 256 Apr 8 20:43 livecd.klt-rw------- 1 root root 145408 Apr 8 20:43 maplrwxrwxrwx 1 root root 15 Apr 8 20:28 message -> message-graphic-rw-r--r-- 1 root root 104786 Dec 2 18:33 message-graphic-rw-r--r-- 1 root root 132 Nov 28 14:06 message-textlrwxrwxrwx 1 root root 22 Apr 8 20:28 System.map -> System.map-2.6.10-oci7-rw-r--r-- 1 root root 576316 Feb 15 21:48 System.map-2.6.10-oci7-rw-rw-r-- 1 root root 343843 Apr 9 16:20 usbinitrd.img-rw-r--r-- 1 root root 256 Nov 28 14:06 us.kltlrwxrwxrwx 1 root root 19 Apr 8 20:28 vmlinuz -> vmlinuz-2.6.10-oci7-rw-r--r-- 1 root root 1371899 Feb 15 21:48 vmlinuz-2.6.10-oci7[root@localhost /]# cat /etc/lilo.congcat: /etc/lilo.cong: No such file or directory[root@localhost /]# cat /etc/lilo.confboot=/dev/sdbmap=/boot/mapdefault="pclinuxos"keytable=/boot/livecd.kltpromptnowarntimeout=100message=/boot/messagemenu-scheme=wb:bw:wb:bwimage=/boot/vmlinuz-2.6.10-oci7 label="pclinuxos" root=/dev/sdb1 initrd=/boot/initrd-2.6.10-oci7.imgappend="devfs=nomount nomce splash=silent"vga=788read-onlyother=/dev/sdc1label="win_c"other=/dev/sdc5label="win_d"[root@localhost /]# B(2)

Posted (edited)

Bruno: You are doing great . . . . . I am starting to be proud we wear the same name ! ;)Now comes another difficult part we will change the lilo.conf . . . . .

# kwrite /etc/lilo.conf

This will open a text-editor with the lilo.conf file loaded . . . . . . I changes almost every line of it . . so go through it line by line and spot the differences . . and be careful for typos ;)Here is how it should look:

default="Linux-NEW"boot=/dev/sdbmap=/boot/mapkeytable=/boot/livecd.kltpromptnowarntimeout=100message=/boot/messagemenu-scheme=wb:bw:wb:bwimage=/boot/vmlinuz-2.6.10-oci7         label="Linux-OLD"        root=/dev/sdb1        initrd=/boot/initrd-2.6.10-oci7.img        append="devfs=nomount nomce splash=silent"        vga=788        read-onlyimage=/boot/vmlinuz-2.6.10-oci7         label="Linux-NEW"        root=/dev/sdb1        initrd=/boot/usbinitrd.img        append="devfs=nomount nomce splash=silent"        vga=788        read-only other=/dev/sdc1       label="win_c"
When finished editing . . save the file and close the editor . . you will then get the prompt back in the terminal . . . and then I want to check if you did the edit correctly . . so:
 # cat /etc/lilo.conf

:devil: Bruno

Edited by Bruno
Posted

D***! hit a snag...[root@localhost /]# kwrite /etc/lilo.confXlib: connection to "localhost:0.0" refused by serverXlib: Invalid MIT-MAGIC-COOKIE-1 keykwrite: cannot connect to X server :0.0[root@localhost /]# kwrite /etc/lilo.confXlib: connection to "localhost:0.0" refused by serverXlib: Invalid MIT-MAGIC-COOKIE-1 keykwrite: cannot connect to X server :0.0[root@localhost /]# I thought I checked the typing....must be something else.....B(2)

Posted

B2 . . . . watch it because I just made changes in the lilo.conf I posted above . . . . :)Give this command:

# set DISPLAY=localhost:0.0

And try againB) Bruno

Posted
B2 . . . . watch it because I just made changes in the lilo.conf I posted above . . . . :)Give this command:
# set DISPLAY=localhost:0.0

And try againB) Bruno

Just to confirm, I give the set Display command first then re-do the kwrite command?B(2)
Posted

Yep . . . that is correct :DB) Bruno

Posted

[root@localhost /]# set DISPLAY=localhost:0.0[root@localhost /]# kwrite /etc/lilo.confXlib: connection to "localhost:0.0" refused by serverXlib: Invalid MIT-MAGIC-COOKIE-1 keykwrite: cannot connect to X server :0.0[root@localhost /]# still no goB(2)

Posted

No Problem . . we do it another way !Leave this terminal OPEN . . . do not touch it . . . but on another desktop open another Konqueror window and type in the addressbar

file:/

And hit EnterYou will see the directories on the / . . . . . one of them is "/mnt" . . open it. . .and you see "/sdb1" . . open it . . and you see the tree of the HD install . . open "/etc" . . . and in "/etc" you will find the file "lilo.conf" . . . rightclick on it and choose from the context menu "Open With" . . and there you can choose an editor . . pick any you want :DB) BrunoPS: Putting "file:/mnt/sdb1/etc" in the addressbar would maybe work quicker . . :devil:

Posted

that worked much better..I edited the file (actually the cut and paste worked on the second desktop) here we are...[root@localhost /]# cat /etc/lilo.confdefault="Linux-NEW"boot=/dev/sdbmap=/boot/mapkeytable=/boot/livecd.kltpromptnowarntimeout=100message=/boot/messagemenu-scheme=wb:bw:wb:bwimage=/boot/vmlinuz-2.6.10-oci7 label="Linux-OLD" root=/dev/sdb1 initrd=/boot/initrd-2.6.10-oci7.img append="devfs=nomount nomce splash=silent" vga=788 read-onlyimage=/boot/vmlinuz-2.6.10-oci7 label="Linux-NEW" root=/dev/sdb1 initrd=/boot/usbinitrd.img append="devfs=nomount nomce splash=silent" vga=788 read-onlyother=/dev/sdc1 label="win_c"[root@localhost /]# B(2)

Posted

WOW !!!! . . .Good one !!!!Now the most crucial command

# /sbin/lilo -b /dev/sdb

Show me what you get . . . ;)B) Bruno

Posted

[root@localhost /]# /sbin/lilo -b /dev/sdbIgnoring entry 'boot'Added Linux-OLDAdded Linux-NEW *Added win_c[root@localhost /]# B(2)

Posted

BRILLIANT . . . . We are making a home-run here !!!! :DLast commads:First Ctrl+D . . . that will log you out of the chroot and should give your old prompt back. . . . Then:

# umount /mnt/sdb1/dev# umount /mnt/sdb1/proc# umount /mnt/sdb1

B) Bruno

Posted

[root@localhost /]# exit[root@localhost root]# umount /mnt/sdb1/dev[root@localhost root]# umount /mnt/sdb1/proc[root@localhost root]# umount /mnt/sdb1umount: /mnt/sdb1: device is busy(almost a home run). Just 1 strike.I have to unmount the 1'st partition. Is there another way?B(2)

Posted

No problem . . . as long as /proc and /dev are umounted it is okay . . . . Now type "reboot" . . and remove the CD and set the BIOS to boot from the USB-HDD . . you will get Lilo with 3 entries: Linux-NEW Linux-OLD Win_c ( Linux-NEW is the default boot and if you do not touch the arrow keys or hit enter it will automatically boot the default . . . hitting Enter will speed things up B) ) The second one ( Linux-OLD ) is obsolete . . . I left it there just temporary . . we will remove it as soon as you are booted in PCLos HD install The 3rd entry is to boot Windows :) Okay go for it and try to boot "Linux-NEW" . . . crossing my fingers :D . . . putting the champagne on ice . . B) Bruno

Posted

GRAND SLAM!!!! AND BRUNO WINS THE WORLD SERIES!!!!!!!!!!!!!Outstanding Job!!!thank-you thank-you thank-you!!!Bruno(2) B)

Posted

Just a Question. I read somewhere on your website to never hit the reset button on the case. What happens if the USB drive's button gets pushed to off (not that it will) but I guess it will simulate a power loss. Anything tragic will happen?Second question, I will probably edit the time in the lilo.conf file. I should just use any editior to do the job right?Bruno(2) B)

Posted

HURRRRRAAAAAY !!!!!Wow . . . man . . . . . excellent job !!!!!!!I would like to tweak the lilo a bit more tomorrow . . . . replace Linux-NEW by "PCLos" . . remove the PCLos-OLD . . . And change the name of Win_c into "Windows" . . . but all that is just cosmetic ;)Champagne . . . time to celebrate !!! . . . . magnumgroup.jpegB) Bruno

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...