LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   moving my hard drive (http://www.linuxquestions.org/questions/linux-general-1/moving-my-hard-drive-44611/)

illtbagu 02-08-2003 04:48 PM

moving my hard drive
 
looking at moving my hard drive from my controller card onto my onboard ide. currently my hard drive has been assigned hde so is the only thing i need to do is change the entry in the lilo config from hde to hda or is there more to it then that. like my etc/fstab file does it also change or will it get updated during boot.

here is my etc/lilo.config file

prompt
timeout="50"
default=linux
boot="/dev/hde"
map=/boot/map
install=/boot/boot.b
message=/boot/message
linear
vga="792"

image="/boot/vmlinuz-2.4.18-14"
label="linux.bak"
initrd="/boot/initrd-2.4.18-14.img"
read-only
append="hdc=ide-scsi root=LABEL=/"

image=/boot/vmlinuz-2.4.18-19.8.0
label=linux.bak1
append="hdc=ide-scsi root=LABEL=/"
read-only
initrd=/boot/initrd-2.4.18-19.8.0.img

image=/boot/vmlinuz-2.4.18-24.8.0
label=linux
append="hdc=ide-scsi root=LABEL=/"
read-only
initrd=/boot/initrd-2.4.18-24.8.0.img



etc/fstab

LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hde7 swap swap defaults 0 0
/dev/cdrom1 /mnt/cdrom1 iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
/dev/hde2 /mnt/hde2 vfat auto
/dev/hde3 /mnt/hde3 vfat auto
/dev/hde4 /mnt/hde4 vfat auto

/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0


thanks for any advise,
AD

Mara 02-08-2003 04:52 PM

You need to change both lilo.conf and fstab (won't be changed automatically). Simple replace all hde by hda (and hde1 with hda1 and so on). With the two files changed it will work correctly.

illtbagu 02-08-2003 04:56 PM

thanks here goes nothing. im crossing my fingers!!!! ;)


All times are GMT -5. The time now is 12:08 PM.