Find the answer to your Linux question:
Results 1 to 6 of 6
I have installed Ubuntu on a new HDD (C but accidentally left my second HDD connected. The radio button for the second drive (D: under WinXP -NTFS) was unmarked so ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2008
    Location
    West Yorkshire, UK
    Posts
    9

    Second HDD problem after clean-installing Ubuntu on Primary HDD


    I have installed Ubuntu on a new HDD (C but accidentally left my second HDD connected. The radio button for the second drive (D: under WinXP -NTFS) was unmarked so I would have expected that it should not have touched it. Now I have a second disk, that was full of my daughters homework, that just has a series of directories in it all containing a log file and something else. I cannot open any of the data in Ubuntu or Windows.
    I feel that the data is still there somewhere but I just do not have a clue how to get to it.
    Any help to recover or educate me would be very much appreciated.

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    First of all, Lets check partition structure of both disks.
    Open Terminal and execute this
    Code:
    sudo fdisk -l
    df -h
    Post output 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
    Jul 2008
    Location
    West Yorkshire, UK
    Posts
    9
    Hi DC
    Thanks for the quick response. Output as follows:
    brian@brian-desktop:~$ sudo fdisk -l

    Disk /dev/sda: 6448 MB, 6448619520 bytes
    240 heads, 63 sectors/track, 833 cylinders
    Units = cylinders of 15120 * 512 = 7741440 bytes
    Disk identifier: 0x7a4c7a4c

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 833 6297448+ 7 HPFS/NTFS

    Disk /dev/sdb: 20.4 GB, 20409532416 bytes
    255 heads, 63 sectors/track, 2481 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x32cf32ce

    Device Boot Start End Blocks Id System
    /dev/sdb1 * 1 1163 9341766 7 HPFS/NTFS
    /dev/sdb2 1164 2481 10586835 5 Extended
    /dev/sdb5 1164 2419 10088788+ 83 Linux
    /dev/sdb6 2420 2481 497983+ 82 Linux swap / Solaris
    brian@brian-desktop:~$ df -h

    Hope the above provides a clue.
    Thanks again.

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    One NTFS partition in each disk.
    Execute this
    Code:
    sudo mkdir /media/sda1 /media/sdb1
    sudo mount -t ntfs-3g  /dev/sda1  /media/sda1  -o  defaults,umask=0
    sudo mount -t ntfs-3g  /dev/sdb1  /media/sdb1  -o  defaults,umask=0
    ls /media/sda1
    ls /media/sdb1
    You have to mount both partitions manually on every boot up. You can edit /etc/fstab file to automount both partition.
    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! weatherkid's Avatar
    Join Date
    Aug 2008
    Posts
    55

    Arrow Or another way...

    ...is to fire up trusty old Norton Ghost on your Windows side of the computer. Maybe it can find it. All I can say is backup on a removable drive like a CD-ROM once a month and before updating Windows or Ubuntu.

  6. #6
    Just Joined!
    Join Date
    Jul 2008
    Location
    West Yorkshire, UK
    Posts
    9
    SOLVED
    Data now recovered.
    Most of it was on my monthly backup but as Murphys Law always prevails, it was the recent stuff done since last backup I was trying to recover. Next time I will remember to disconnect any drives that I don't want to use - and remember to take a backup before I start messing!! Lesson learnt.
    Thanks to all for your help.
    Last edited by Brian W; 08-12-2008 at 03:13 PM. Reason: Additional comment added

Posting Permissions

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