November 22, 2024, 02:15:44 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: installing second drive problem  (Read 14454 times)

Offline titocosa

  • Linux Noob !
  • *
  • Posts: 4
installing second drive problem
« on: April 16, 2004, 08:54:58 PM »
Hi there.  8)
I want to install a second drive (with data) in my linux, and when I try to do so, I have problems at boot time. Of course I set the second drive like a slave disk, and I also try to install the 2nd disk in the 2nd IDE channel. But is still not working.
Can anyone help me with this issue?
Thanks!
Regards.
Tito.
 :lol:

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
installing second drive problem
« Reply #1 on: April 17, 2004, 05:01:29 AM »
Well.. as far as I guess if you want to connect a additional drive then simply attach it and make sure jumber setting are correct if you are connecting it as primary slave.. and if it is secondry master then no problem at all.. then mount them to use..
can you tell us what boot problem you get ?

Offline titocosa

  • Linux Noob !
  • *
  • Posts: 4
installing second drive problem
« Reply #2 on: April 19, 2004, 07:45:04 PM »
Here are some of the errors that appear on screen:
Activating swap partitions: swapon /dev/hda9: No such drive (there is no 9 on hda, only on the 2nd drive)
after fsck.jfs I can see:
The current device is /dev/hda10 (there is no 10 on hda!!!)
Superblock is corrupt and cannot be repaired because both primary and secondary copies are corrupt
FSCK CANNOT CONTINUE
***An error ocurred during the file system check
***Dropping you to a shell; the system will reboot
***when you leave the shell

On the shell I executed mount command and I saw that / points to /dev/hdd8 (my 2nd drive)

FSTAB was like this:
LABEL=/        /
LABEL=/boot       /boot
but I changed to:
/dev/hda2/           /
/dev/hda1/           /
following a paper encountered in Internet.
Do you tell me what is going on?
Thanks.
Tito

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
installing second drive problem
« Reply #3 on: April 20, 2004, 12:42:46 PM »
Well.. I would like to see the output of the
Code: [Select]
fdisk -lalso plz post your /etc/fstab content here.

Lastly.. it should be like.. /dev/hda for first device and /dev/hdb for second device.

Offline sudipta_cht

  • Linux Noob !
  • *
  • Posts: 14
installing second drive problem
« Reply #4 on: April 21, 2004, 09:07:21 AM »
By the way, did you check the second disk install howto on
http://www.tldp.org/HOWTO/Multi-Disk-HOWTO.html
It is informative, to say the least...

Offline titocosa

  • Linux Noob !
  • *
  • Posts: 4
installing second drive problem
« Reply #5 on: April 21, 2004, 04:21:50 PM »
Ok.
Here is fdisk output:

Disk /dev/hda: 255 heads, 63 sectors/track, 2481 cylinders
Units: cylinders of 16065 * 512 = 8225280 bytes
Device      Boot      Start        End          Blocks            Id     System
/dev/hda1    *        1             13            104391           83    Linux
/dev/hda2              14           2449         19567170       83    Linux
/dev/hda3              2450       2481         257040           82    Linux swap

Disk /dev/hdd: 16 heads, 63 sectors, 39535 cylinders
Units: cylinders of 1008 * 512 bytes
Device       Boot      Start         End          Blocks           Id     System
/dev/hdd1    *         1              107          53465+          83    Linux
   Partition 1 does not end on cylinder boundary:
       phys=(6,168,20) should be (6,15,63)
/dev/hdd2               107           10514      5245355+      83     Linux
   Partition 2 does not end on cylinder boundary:
       phys=(659,172,34) should be (659,15,63)
/dev/hdd3               10514        15714      2620620        83     Linux
   Partition 3 does not end on cylinder boundary:
       phys=(985,236,52) should be (985,15,63)
/dev/hdd4               15714         39525     12001126+    85     Linux extended
   Partition 4 does not end on cylinder boundary:
       phys=(1023,254,63) should be (1023,15,63)
/dev/hdd5               15714         20913     2620604        83     Linux
/dev/hdd6               20913         22931     1016992+      83     Linux
/dev/hdd7               22931         25013     1049050        83     Linux
/dev/hdd8               25013         27094     1049050        83     Linux
/dev/hdd9               27094         29118     1020088+      82     Linux swap
/dev/hdd10             29118         39525     5245338+      83     Linux

If I go to repair filesystem mode and read the fstab:

(Repair filesystem)1# cat fstab
LABEL=/  / ext3 defaults 1 1
/dev/hda10 /var jfs defaults,rw,nosuid,nodev 1 2
LABEL=/boot  /boot ext3 defaults,rw,nosuid,nodev,noexec 1 2
LABEL=/cache /cache ext3 defaults,rw,nosuid,nodev,noexec 1 2
none /dev/pts devpts gid=5, mode=620 0 0
LABEL=/home /home ext3 defaults, rw, nosuid, nodev, noexec, usrquota, grpquota 1 2
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
LABEL=/tmp /tmp ext3 defaults,rw nosuid,nodev 1 2
LABEL=/var/spool/mail /var/spool/mail ext3 defaults, rw, nosuid, nodev, noexec, usrquota, grpquota 1 2
LABEL=/var/spool/mqueu /var/spool/mqueue ext3 defaults, rw, nosuid, nodev, 1 2
/dev/hda9 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto, owner, kudzu, ro 0 0
/dev/fd0 /mnt/floppy auto noauto, owner, kudzu 0 0

But if I connect only the 1st disk, fstab is like this:

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/hda3 swap swap defaults 0 0

I'm going to read the HOWTO paper!
Thanks.

Offline titocosa

  • Linux Noob !
  • *
  • Posts: 4
installing second drive problem
« Reply #6 on: April 22, 2004, 03:20:10 PM »
I have the solution.
The problem was in grub.conf, it was configured like this:
default=0
timeout=10
splashimage=(hd0,0) /grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8)
            root (hd0,0)
            kernel /vmlinuz-2.4.20-8 ro root=LABEL=/
            initrd /initrd-2.4.20-8.img

I has to change root=LABEL=/ for root=/dev/hda2 and that's all!

Thank you anymway for your help!
Regards.
Tito

Offline nitindes

  • New Member
  • Posts: 1
installing second drive problem
« Reply #7 on: November 26, 2004, 06:26:46 AM »
I Want Add Windows Hard Disk In Linux 9

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
installing second drive problem
« Reply #8 on: November 26, 2004, 04:33:52 PM »
Well that is not hard, actually in linux you have to associate hard driver or partition with a location ie directory which is called mount point. So what we do is just create a directory and then associate specific partition with that directory, it is done by modifying the /etc/fstab file.
You can find detailed instructions here. Mounting Hardisk partition