"jose orlando t. ribeiro" <[EMAIL PROTECTED]> wrote:
> 
> Well,
> 
> ...
> I've tried to change the cables but I had no succes... linux wouldn't
> boot, failing with that message:
> 
> ========== begin error message =========================
> 
> VFS Can not open root device "341" or 03:41
> Please append a correct "root" boot option
> 
> ============ end error message =========================
> 
> 
> I tried then use a floppy drive for booting and passing the parameter
> "linux= boot /dev/hdc" and I've had the same error message again.

That's "linux root=/dev/hdc"

> So I returned the old configuration and I'm looking for some help now...
> 
> I think that the main consideration is: how the links that I use in X
> and in the command line will work after this? A link is a reference to a
> file or to a device and a file??? How I change references about
> /dev/cdrom? CD players and burners and file system will fail to find
> it... what files/configs I have to change? I'm using Reiser FS, by the way.

Well, I cannot comment on how reiser will change things, but the big
things you'll need to change are /etc/fstab and /etc/lilo.conf.

Because once you get past the boot command above you're going to hang up on
fstab referencing the wrong partitions.  

One way to make this work is somewhat involved:

power off (obvious, but hey ;-)
remove the cdrom and install any old ide drive as hdc. (you COULD simply move the 
cdrom to
        where its going to end up, but that adds one more change that I wanted to 
avoid)
boot up - everything SHOULD still work.
log in as root and:
        fdisk  -l /dev/hdb
        fdisk /dev/hdc
                now make /dev/hdc have the same PARTITIONS (not necessarily the same 
SIZES)
                as /dev/hdb (that's the reason for the fdisk -l above)
        # make directories as required for those partitions, mount the partitions on 
        # those directories, and copy over /bin, /sbin, /etc, and whatever else you 
end up needing
        # to be able to boot on that drive. 
        halt  # the truly paranoid would unmount everything first ;-)

change the drives around (the new temporary disk switches to hdb, the old hdb goes to 
hdc)

boot off your recovery floppy onto hdb  (repeat the above steps till this works.  An 
alternative
        would be to simply INSTALL (a minimal) linux on that new drive and proceed to 
the next step.
For discussion purposes, I'm going to assume your previous setup had /dev/hdb1 mounted 
as /,
        /dev/hdb5 mounted as /boot (just to show a second filesystem), and /dev/hdb6 
as swap.

log in as root and:
        mkdir /mnt/hdc{1,5}
        mount /dev/hdc1 /mnt/hdc1
        chroot /mnt/hdc1
        mount /dev/hdc5 /boot
        # if you have trouble running vi in the next step, do it before the chroot.
        vi /etc/{lilo.conf,fstab}  # (or emacs, or xemacs, or ....)
        # then add an entry in lilo.conf for linux on /dev/hdc1
        # save and exit
        # if you have more than one partition, you may need to have them mounted (See 
above)
        lilo  # see above note if this fails.
        umount /stuff
        exit # to get out of chroot
        umount /dev/hdc1
        reboot # and see if it works, its supposed to ;-)

I *think* that will do it, but beware this was typed from memory and YMMV!

rc


Rusty Carruth          Email:     [EMAIL PROTECTED] or [EMAIL PROTECTED]
Voice: (480) 345-3621  SnailMail: Schlumberger ATE
FAX:   (480) 345-8793             7855 S. River Parkway, Suite 116
Ham: N7IKQ @ 146.82+,pl 162.2     Tempe, AZ 85284-1825
ICBM: 33 20' 44"N   111 53' 47"W

Reply via email to