Jump to content


Photo
- - - - -

mount second hard drive


7 replies to this topic

#1 Charles Anthony

Charles Anthony

    Noob

  • Members
  • Pip
  • 37 posts

Posted 30 November 2007 - 07:12 PM

How do I mount this second hard drive?

All of the tutorials I find tell me to format the drive.
The hard drive is from a previous Linux installation. I just want it for storage purposes because I have tons of media files on it. Therefore, I do not want to re-format it.
It is IDE and I plugged it in as a slave to my optical drive.

Where do I go from here?
Help!

#2 magikman

magikman

    Linux-Noob Member

  • Members
  • PipPip
  • 63 posts

Posted 30 November 2007 - 07:20 PM

do this and return with the output:

fdisk -l /dev/hdc
user posted image

#3 Charles Anthony

Charles Anthony

    Noob

  • Members
  • Pip
  • 37 posts

Posted 30 November 2007 - 07:30 PM

Yikes!

In both my root and my regular user, I get:

bash: fdisk: command not found


Does that mean I have to install fdisk?


----


ADDENDUM:

I typed in just
fdisk -l
and got this:


Disk /dev/sda: 40.0 GB, 40016019456 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot	  Start		 End	  Blocks   Id  System
/dev/sda1   *		   1		  13	  104391   83  Linux
/dev/sda2			 132		4864	38017822+   f  W95 Ext'd (LBA)
/dev/sda3			  14		 131	  947835   82  Linux swap / Solaris
/dev/sda5			 132		1661	12289693+   7  HPFS/NTFS
/dev/sda6			1662		2171	 4096543+   e  W95 FAT16 (LBA)
/dev/sda7			2172		4864	21631491   8e  Linux LVM

Partition table entries are not in disk order

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		  13	  104391   83  Linux
/dev/sdb2			  14		9729	78043770   8e  Linux LVM

Disk /dev/sdg: 8053 MB, 8053063680 bytes
183 heads, 32 sectors/track, 2685 cylinders
Units = cylinders of 5856 * 512 = 2998272 bytes

   Device Boot	  Start		 End	  Blocks   Id  System
/dev/sdg1   *		   1		2686	 7864304	b  W95 FAT32

The hard drive that I added is the /dev/sdb: 80.0 GB, 80026361856 bytes one.
Help!

#4 anyweb

anyweb

    Administrator

  • Admin
  • PipPipPipPipPipPipPipPip
  • 3,689 posts

Posted 30 November 2007 - 08:07 PM

well then just create some dir (mountpoint)

mkdir /test

and then try this
mount /dev/sdb /test

if you then

ls -al /test

does it list anything ?

cheers
anyweb
i do windows too

#5 Charles Anthony

Charles Anthony

    Noob

  • Members
  • Pip
  • 37 posts

Posted 30 November 2007 - 08:36 PM

After this: # mount /dev/sdb /mnt/backup
I get this:
mount: you must specify the filesystem type
which suggests that it did not succeed.

Now, after this:
# ls -al /mnt/backup
I get this:
total 16
drwxrwxrwx 2 root root 4096 2007-11-30 09:49 .
drwxr-xr-x 3 root root 4096 2007-11-30 09:49 ..


How do I determine the file system?
It should be ext2 but I tried the mount command like this:
mount -t ext2 /dev/sdb /mnt/backup
and got an error:
mount: wrong fs type, bad option, bad superblock on /dev/sdb2,
	   missing codepage or other error
	   In some cases useful info is found in syslog - try
	   dmesg | tail  or so


With the dmesg | tail command, it yields:
SELinux: initialized (dev sdg1, type vfat), uses genfs_contexts
VFS: Can't find ext3 filesystem on dev sdb2.
hfs: unable to find HFS+ superblock
VFS: Can't find ext3 filesystem on dev sdb.
VFS: Can't find ext3 filesystem on dev sdb.
VFS: Can't find ext3 filesystem on dev sdb2.
VFS: Can't find an ext2 filesystem on dev sdb.
VFS: Can't find ext3 filesystem on dev sdb2.
VFS: Can't find an ext2 filesystem on dev sdb.
hfs: unable to find HFS+ superblock




Just noticed:
how do i see what filesystem i have
ADDENDUM:
The mount command alone yields:

/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)

Help!

#6 znx

znx

    Linux-Noob GURU

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,236 posts

Posted 04 December 2007 - 02:27 PM

You must mount the partitions not the disk (i.e. sdb1 and sdb2). However:

Device Boot	  Start		 End	  Blocks   Id  System
/dev/sdb1   *		   1		  13	  104391   83  Linux
/dev/sdb2			  14		9729	78043770   8e  Linux LVM

LVM .. you have a LVM partiton on the first disk as well, are you sure that it isn't already in use within the LVM?

#7 Charles Anthony

Charles Anthony

    Noob

  • Members
  • Pip
  • 37 posts

Posted 15 January 2008 - 01:18 PM

Unfortunately, I finally figured this out with some hands on help: my disk was damaged.
Luckily, the essential data was recoverable.
Help!

#8 anyweb

anyweb

    Administrator

  • Admin
  • PipPipPipPipPipPipPipPip
  • 3,689 posts

Posted 15 January 2008 - 04:21 PM

well at least you got your data !
i do windows too



Reply to this topic



  


2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users