View hard drive from Ubuntu

Soldato
Joined
2 May 2004
Posts
19,950
Hi,

I plugged a second hard drive into an Ubuntu PC and it's noticed it etc.

So I went into the disk manager but it says there aren't any partitions on it which is true. And I can't get into the HDD. There is already stuff on here that I want to just view without messing around with formatting it etc. Is there any way I can do this please?

Thanks
Craig.
 
If there aren't any partitions on there (as you said) then there can't be any data on it.

Run fdisk on the disc and it'll let you view the partition table to check.
 
If it works in Windows then there is at least one partition there - you can't use an unpartitioned hard disc.

When you say you can't use fdisk, do you get an error?
 
under linux you have to mount the drive first before you can read/write/do anything with it.

what output does sudo /sbin/fdisk -l give you? This should list any possible partitions on the drive and their sizes.
 
# /sbin/fdisk -l


Disk /dev/hdc: 6448 MB, 6448619520 bytes
255 heads, 63 sectors/track, 784 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdc1 * 1 747 6000246 83 Linux
/dev/hdc2 748 784 297202+ 5 Extended
/dev/hdc5 748 784 297171 82 Linux swap / Solaris

It's not listing the 60gb for some reason ><

I meant no partitions as in I haven't made any since I last formatted, so there's just the main one which is working.
 
Craig321 said:
# /sbin/fdisk -l


Disk /dev/hdc: 6448 MB, 6448619520 bytes
255 heads, 63 sectors/track, 784 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdc1 * 1 747 6000246 83 Linux
/dev/hdc2 748 784 297202+ 5 Extended
/dev/hdc5 748 784 297171 82 Linux swap / Solaris

It's not listing the 60gb for some reason ><

I meant no partitions as in I haven't made any since I last formatted, so there's just the main one which is working.

OK, this looks like it hasn't been detected by linux at all (and you cant mount it if it aint detected!)

Couple of quick questions- if you are using SATA is the module for your controller loaded? Or if you are using PATA/SCSI, are your jumper settings correct?
 
Ive got it on IDE with no jumper, it's on the slave part of the IDE cable so it set as slave. Maybe I need the jumper back in on slave? Although I don't see why.
 
if jumpers are an issue check it in the bios?

is windows running on another machine (obviously if it worked from windows and its the same machine it can't be drivers :p)
 
OK, I got the BIOS to recognise it, but then when I try boot Linux it just says invalid partition table. I made sure the drive I just plugged in was on slave, the other's on master. Any idea what's wrong please?

Craig.
 
Back
Top Bottom