← Back to team overview

sslug-teknik team mailing list archive

Re: Hvis man nu har flyttet sin Linux disk...

 

In <8C481B317D91D31191E400600862AB18A8D92E@DBAMAIL> Steffen Hansen <Steffen.Hansen@xxxxxx> writes:

>Men nu hedder Linux disken jo ikke jo ikke HDB længere, men
>HDC.. Hvordan får jeg fortalt linux at root partitionen ligger på HDC
>?..., og at den skal op i single mode på en gang (single mode alene
>du'r ikke)

Ved LILO prompten skriver du
  linux root=/dev/hdc1 init=/bin/sh

Så booter du op uden om init - direkte ind i en shell. Herefter:
  mount -n -o remount,rw /
  <rediger /etc/fstab og /etc/lilo.conf - erstat "hdb" med "hdc">
  /sbin/lilo
  mount -n -o remount,ro /
  /sbin/reboot

Herefter skulle du kunne boote normalt.
-- 
Henrik Storner      | "ATA100 is another testimony to the fact that 
<henrik@xxxxxxxxxx> |  pigs can be made to fly given sufficient thrust"
                    | 
                    |          Linux kernel hacker Alan Cox, on IDE drives


References