PDA

View Full Version : [all variants] Cannot mount second harddisk - wrong fs type



volmark
June 26th, 2008, 12:05 PM
I have installed second SATA HD drive (the boot one is SCSI) but couldn’t mount it properly. I’ve formatted it with fsck.ext3 and partitioned with TestDisk (external CD).
The system reports following error:
"mount: wrong fs type, bad option, bad superblock on /dev/sdb1"
Here are some listings of /etc/fstab and screen dumps of fdisk.
NOTE: It is server. No GUI utilities such "gparted" are possible

~$ sudo fdisk -l

Disk /dev/sda: 36.4 GB, 36419584000 bytes
255 heads, 63 sectors/track, 4427 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xc3cd54c8

Device Boot Start End Blocks Id System
/dev/sda1 * 1 4240 34057768+ 83 Linux
/dev/sda2 4241 4427 1502077+ 5 Extended
/dev/sda5 4241 4427 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
Disk identifier: 0xc3b64465

Device Boot Start End Blocks Id System
/dev/sdb1 1 9729 78148161 83 Linux

--------------------------------------------------------------------

~$ sudo nano /etc/fstab
GNU nano 2.0.7

File: /etc/fstab

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda1
UUID=1010ffdb-c0fb-4f1d-9e65-589160c3bcd8 / ext3 relatime,errors=remount-ro 0 1
# /dev/sda5
UUID=dd32c617-6437-42ce-b3dc-17a9977fa74c none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0

# 2. HD
/dev/sdb1 /media/hd2 ext3 defaults 0 0
--------------------------------------------------------------------
~$ sudo mount -a
--------------------------------------------------------------------
~$ sudo mount -a
mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

volmark
June 26th, 2008, 10:31 PM
Is it a wrong forum? There is no reaction to the issue. What shell I do so??? Is it possible to move the thread to other, more relevant forums?

VMC
June 26th, 2008, 10:41 PM
Why did you use "fsck.ext3", and not "gparted" to format the drive?
In fact I didn't know you could format using that tool.

Edit: okay I see, you used testdisk. I've heard that tool used for repaits. I still use gparted to format and/or partition my hard drive. Of even cfdisk.

volmark
June 27th, 2008, 06:33 AM
Little bit confused … In all manuals “fsck.ext3” presented as HD formatting and partitioning tool

volmark
June 27th, 2008, 06:51 AM
Unfortunately I cannot use "gparted" because I don’t have GUI. I can use only command line utilities.

volmark
June 27th, 2008, 07:22 AM
I have found some rapports about “cfdisk” errors:

cfdisk creates invalid (!) partion tables on disk
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/198248

Id say the disk was ****** - it cant get the disk size and therefore I cant format
http://ubuntuforums.org/showthread.php?t=34819

I don’t want to occasionally loose my primary disk that’s why I need reliable methods.

kelvin spratt
June 27th, 2008, 07:37 AM
Download a live version of Gparted/ Pmagic 2.0 or later and boot into the live disc then your drives are not mounted to your system. Try disc check first as this does not destroy any data and hopefully the disc will mount on reboot. note all partitioning should be done in isolation of the distro.

volmark
June 27th, 2008, 01:13 PM
The host machine is placed in basement and it is a pure Linux box without display and keyboard. It can only be managed through remote terminal.
If I’m going to use Live CD I need to carry the computer up to 3. floor because there is no system consol in basement.
Are there other possibilities to do it remotely through terminal emulator like Putty??

volmark
June 27th, 2008, 05:52 PM
Reformatted with fdisk in accordance with http://partedmagic.com/wiki/PartedMagic.php?n=PartedMagic.CLIPartitioning
Still impossible to mount second hard drive

:~$ sudo mount /dev/sdb1 /media/hd2/
mount: you must specify the filesystem type

~$ sudo mount -t ext3 /dev/sdb1 /media/hd2/
mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog – try dmesg | tail or so

~$ sudo fdisk -l

Disk /dev/sda: 36.4 GB, 36419584000 bytes
255 heads, 63 sectors/track, 4427 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xc3cd54c8

Device Boot Start End Blocks Id System
/dev/sda1 * 1 4240 34057768+ 83 Linux
/dev/sda2 4241 4427 1502077+ 5 Extended
/dev/sda5 4241 4427 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
Disk identifier: 0xc3b64465

Device Boot Start End Blocks Id System
/dev/sdb1 1 9729 78148161 83 Linux

What's wrong ???