LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Can't see Slave Hard drive (https://www.linuxquestions.org/questions/linux-hardware-18/cant-see-slave-hard-drive-450521/)

Hitty 06-01-2006 07:20 AM

Can't see Slave Hard drive
 
Hi,

I installed ubuntu on one of my old hard drives, but decided I wanted to upgrade it a little, bought a new hard drive, reinstalled it, and now I'm trying to copy all my documents over to my new hard drive.

I set my old hard drive to Slave, and plugged it into my computer, with my new hard drive (set as master) booting up.

I've looked in every folder I can find in '/' that I think could have my second hard drive listed, and I can't find it anywhere.

I've read in other forums while I looked through google for help with this, that they're named hda, hdb, hdc, and so on. So I searched for hda and hdb (using the search tool) and still can't find it.

I wondered if anyone could tell me an easy way to view my second hard drive, and copy the documents over.


Many Thanks in Advance

Nylex 06-01-2006 07:23 AM

Have you actually mounted the drive? Post the output of "fdisk -l" (that's a lowercase L, not a 1 and fdisk will probably need to be run as root).

Hitty 06-01-2006 07:25 AM

tony@beng:~$ sudo fdisk -l
Password:

Disk /dev/hda: 300.0 GB, 300069052416 bytes
255 heads, 63 sectors/track, 36481 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 36198 290760403+ 83 Linux
/dev/hda2 36199 36481 2273197+ 5 Extended
/dev/hda5 36199 36481 2273166 82 Linux swap / Solaris

Disk /dev/hdb: 82.3 GB, 82348277760 bytes
255 heads, 63 sectors/track, 10011 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 9729 78148161 83 Linux
/dev/hdb2 9730 10011 2265165 5 Extended
/dev/hdb5 9730 10011 2265133+ 82 Linux swap / Solaris
tony@beng:~$



Thats my entire output from it.

Nylex 06-01-2006 07:31 AM

It looks like you want to mount /dev/hdb1. Make a directory to mount your drive, with mkdir, e.g. "mkdir /mnt/old" (you may need to use sudo, depending on where you're trying to create the directory). Then, mount the device with "sudo mount -t ext3 /dev/hdb1 /mnt/old" (replacing "/mnt/old" with whatever directory you've chosen). You should now be able to cd into that directory and access the files.

Hitty 06-01-2006 07:34 AM

I can!

Thanks a lot for the help! I'm writing that down for the next time I have a problem with this, no doubt I will :p


Again, Thanks a lot for the help! :)

Nylex 06-01-2006 07:36 AM

No problem.


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