Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 01-28-2006, 03:34 PM   #1
Registered: May 2003
Distribution: Fedora Core 3, Gentoo
Posts: 47

Rep: Reputation: 15
accidentally installed linux on external hard drive

I accidentally installed Linux (ubuntu) on external hard drive and now I can't get to the old data on the drive. (Long dumb story)

I know it's still there because I can see it in Windows.

I moved all of the Linux operating system files to a directory called "old_install" thinking maybe if I restarted the Linux install on the internal hard drive on my comptur wouldn't think it's Linux on the external anymore. But now it just shows:
/media/usbdisk/old_install/etc /bin /opt /sbin, etc.

Also when I df -k it only says the external drive is 8GB when it's really 80GB.
/dev/sdb2 9479636 964540 8033548 11% /media/usbdisk

I backed up all the data in Windows so I can reformat it but I'd really rather not, I'd like to know if there is a way to remove Linux from the hard drive so I can get to the data again.

Remember kids, always unplug any extra hard drives when you're installing Linux (or any OS that you don't want messing with them).

Old 01-28-2006, 03:47 PM   #2
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 62
Run the command as root to display partitions on the drive ' /sbin/fdisk -l '. That is a lower case -L.

Old 01-28-2006, 03:53 PM   #3
Registered: May 2003
Distribution: Fedora Core 3, Gentoo
Posts: 47

Original Poster
Rep: Reputation: 15
You're Awesome! I found the old files. I just mounted /dev/sdb1 and there they are! Woohoo.

How silly of me to forget about our good friend fdisk

I still don't know how to make it so ubuntu automounts sdb1 and/or get rid of sdb2 though, so if you could help with that too that would be awesome-est


Here's the output:

/sbin/fdisk -l

Disk /dev/sda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 9777 78533721 83 Linux
/dev/sda2 9778 9964 1502077+ 5 Extended
/dev/sda5 9778 9964 1502046 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

Device Boot Start End Blocks Id System
/dev/sdb1 1 8474 68067373+ c W95 FAT32 (LBA)
/dev/sdb2 * 8475 9673 9630967+ 83 Linux
/dev/sdb3 9674 9729 449820 5 Extended
/dev/sdb5 9674 9729 449788+ 82 Linux swap / Solaris


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux on an external hard drive? uberpete Linux - Newbie 3 10-12-2005 03:46 PM
transferring linux to an external hard drive martha123 Linux - Newbie 1 09-21-2005 09:48 AM
Linux on an external hard drive nominruil Linux - Distributions 2 07-11-2005 07:19 PM
I installed linux on an external drive, and now I can't boot WizzKid Linux - Newbie 4 11-09-2004 08:37 PM
Accidentally Initialized Hard Drive!! gsibble Linux - General 11 04-28-2004 04:30 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:53 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration