Find the answer to your Linux question:
Results 1 to 6 of 6
Hi there, I have got a hard drive which was used in some other linux system. it has 4 partitions hdc1, hdc2, hdc3, hdc4. now i have connected this old ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2006
    Posts
    22

    Hard drive


    Hi there,
    I have got a hard drive which was used in some other linux system.
    it has 4 partitions hdc1, hdc2, hdc3, hdc4.
    now i have connected this old hard drive in a new system
    when i use dmesg command it show two hard drives & its partition:
    Probing IDE interface ide0...
    hda: ST3120026A, ATA DISK drive
    ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
    Probing IDE interface ide1...
    hdc: ST380021A, ATA DISK drive
    ide1 at 0x170-0x177,0x376 on irq 15
    hda: max request size: 512KiB
    hda: 234441648 sectors (120034 MB) w/8192KiB Cache, CHS=16383/255/63, UDMA(100)
    hda: cache flushes supported
    hda: hda1 hda2 hda3
    hdc: max request size: 128KiB
    hdc: 156301488 sectors (80026 MB) w/2048KiB Cache, CHS=65535/16/63, UDMA(100)
    hdc: cache flushes not supported
    hdc: hdc1 hdc2 hdc3 hdc4
    and i try to mount the partition using following command:
    mount /dev/hdc1 /usr
    it shows this error:
    [root@psalin001 ~]# mount /dev/hdc1 usr
    mount: unknown filesystem type 'xfs'
    i have no idea with to do
    Please help as i need to access other hard drive

    Thanks & Regards
    Anshul

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Post the output of fdisk -l command here.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Jan 2008
    Posts
    12
    this partition is not ext3 filesystem so i thing u have to format this partition ur mounting

    #mke2fs /dev/hdc...

    then mount

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    ** Formatting will erase everything from partition(s). If you have important data in it then dont execute above command.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Just Joined!
    Join Date
    Aug 2006
    Posts
    22
    [root@psalin001 ~]# fdisk -l

    Disk /dev/hda: 120.0 GB, 120034123776 bytes
    255 heads, 63 sectors/track, 14593 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 77 514080 83 Linux
    /dev/hda3 78 14593 116599770 8e Linux LVM

    Disk /dev/hdc: 80.0 GB, 80026361856 bytes
    16 heads, 63 sectors/track, 155061 cylinders
    Units = cylinders of 1008 * 512 = 516096 bytes

    Device Boot Start End Blocks Id System
    /dev/hdc1 1 8127 4096007+ fd Linux raid autodetect
    /dev/hdc2 8128 11175 1536192 fd Linux raid autodetect
    /dev/hdc3 11176 12216 524664 fd Linux raid autodetect
    /dev/hdc4 12217 155061 71993880 fd Linux raid autodetect

    Disk /dev/md4: 73.7 GB, 73721643008 bytes
    2 heads, 4 sectors/track, 17998448 cylinders
    Units = cylinders of 8 * 512 = 4096 bytes

    Disk /dev/md4 doesn't contain a valid partition table

    Disk /dev/md3: 537 MB, 537133056 bytes
    2 heads, 4 sectors/track, 131136 cylinders
    Units = cylinders of 8 * 512 = 4096 bytes

    Disk /dev/md3 doesn't contain a valid partition table

    Disk /dev/md2: 1572 MB, 1572995072 bytes
    2 heads, 4 sectors/track, 384032 cylinders
    Units = cylinders of 8 * 512 = 4096 bytes

    Disk /dev/md2 doesn't contain a valid partition table

    Disk /dev/md1: 4194 MB, 4194238464 bytes
    2 heads, 4 sectors/track, 1023984 cylinders
    Units = cylinders of 8 * 512 = 4096 bytes

    Disk /dev/md1 doesn't contain a valid partition table

  6. #6
    Just Joined!
    Join Date
    Aug 2006
    Posts
    22
    plz check this command output also, it may help you to figure out
    how can i access this hard drive contents
    [root@psalin001 ~]# fdisk /dev/hdc

    The number of cylinders for this disk is set to 155061.
    There is nothing wrong with that, but this is larger than 1024,
    and could in certain setups cause problems with:
    1) software that runs at boot time (e.g., old versions of LILO)
    2) booting and partitioning software from other OSs
    (e.g., DOS FDISK, OS/2 FDISK)

    Command (m for help): p

    Disk /dev/hdc: 80.0 GB, 80026361856 bytes
    16 heads, 63 sectors/track, 155061 cylinders
    Units = cylinders of 1008 * 512 = 516096 bytes

    Device Boot Start End Blocks Id System
    /dev/hdc1 1 8127 4096007+ fd Linux raid autodetect
    /dev/hdc2 8128 11175 1536192 fd Linux raid autodetect
    /dev/hdc3 11176 12216 524664 fd Linux raid autodetect
    /dev/hdc4 12217 155061 71993880 fd Linux raid autodetect

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •