hard drive removal
I have 2 hard drives installed. How do I physically identify /dev/hda or /dev/hdb so that I can remove the one hard drive from the system? After doing so how do I modify the proper file (grub??) to enable a proper boot?
Thanks for help. |
hda - mastter, hdb - slave
On an standard IDE cable with cable select (CS) the slave should be the gray connector but if the drives are not configured for CS you will have to physically look at their jumpers to make sure you have the correct one identified. You will need to post your menu.lst and fstab files before anyone can determine what needs to be modified. |
Other useful commands for sorting out what is what and where (you may need to be root for these to work) are:
fdisk -l mount |
title Ubuntu 7.10, kernel 2.6.22-14-386
root (hd0,0) kernel /boot/vmlinuz-2.6.22-14-386 root=/dev/md0 ro initrd /boot/initrd.img-2.6.22-14-386 title Ubuntu 7.10, kernel 2.6.22-14-386 (recovery mode) root (hd0,0) kernel /boot/vmlinuz-2.6.22-14-386 root=/dev/md0 ro single initrd /boot/initrd.img-2.6.22-14-386 # /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 /dev/md0 / ext3 defaults,errors=remount-ro 0 1 /dev/md1 /dvdbackup ext3 defaults 0 1 /dev/md2 none swap sw 0 0 /dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0 /dev/scd1 /media/dvd+rw udf,iso9660 user,noauto 0 0 /dev/fd0 /media/floppy0 auto rw,user,noauto 0 0 /dev/sda /media/usb0 auto rw,user,noauto 0 0 /dev/sdb /media/usb1 auto rw,user,noauto 0 0 fdisk -l Disk /dev/sda: 80.0 GB, 80026361856 bytes 255 heads, 63 sectors/track, 9729 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x00051b2f Device Boot Start End Blocks Id System /dev/sda1 * 1 6687 53713296 fd Linux raid autodetect /dev/sda2 6688 9605 23438835 fd Linux raid autodetect /dev/sda3 9606 9702 779152+ 82 Linux swap / Solaris Disk /dev/sdb: 80.0 GB, 80026361856 bytes 255 heads, 63 sectors/track, 9729 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sdb1 * 1 6687 53713296 fd Linux raid autodetect /dev/sdb2 6688 9605 23438835 fd Linux raid autodetect /dev/sdb3 9606 9702 779152+ fd Linux raid autodetect Disk /dev/md0: 55.0 GB, 55002333184 bytes 2 heads, 4 sectors/track, 13428304 cylinders Units = cylinders of 8 * 512 = 4096 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System Disk /dev/md1: 24.0 GB, 24001249280 bytes 2 heads, 4 sectors/track, 5859680 cylinders Units = cylinders of 8 * 512 = 4096 bytes Disk identifier: 0x00000000 Disk /dev/md1 doesn't contain a valid partition table Disk /dev/md2: 797 MB, 797769728 bytes 2 heads, 4 sectors/track, 194768 cylinders Units = cylinders of 8 * 512 = 4096 bytes Disk identifier: 0x00000000 Disk /dev/md2 doesn't contain a valid partition table mount /dev/md0 on / type ext3 (rw,errors=remount-ro) proc on /proc type proc (rw,noexec,nosuid,nodev) /sys on /sys type sysfs (rw,noexec,nosuid,nodev) varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755) varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777) udev on /dev type tmpfs (rw,mode=0755) devshm on /dev/shm type tmpfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) lrm on /lib/modules/2.6.22-14-386/volatile type tmpfs (rw) /dev/md1 on /dvdbackup type ext3 (rw) securityfs on /sys/kernel/security type securityfs (rw) binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev |
wow...no help??
|
Have not played with software RAID much and it was a few years ago.
/dev/md0 is a software raid device which appears to be using USB drives /dev/sda and /dev/sdb. fdisk does not show any IDE drives but if the kernel is using the libata then IDE drives will be SCSI devices i.e. /dev/sda. Use these commands to find out information about the raid array. cat /proc/mdstat mdadm --query /dev/md0 http://www.devil-linux.org/documenta...x/ch01s05.html |
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md2 : active raid1 sda3[1] 779072 blocks [2/1] [_U] md1 : active raid1 sda2[0] sdb2[1] 23438720 blocks [2/2] [UU] md0 : active raid1 sda1[0] sdb1[1] 53713216 blocks [2/2] [UU] unused devices: <none> /dev/md0: 51.22GiB raid1 2 devices, 0 spares. Use mdadm --detail for more detail |
All times are GMT -5. The time now is 02:18 AM. |