LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-16-2011, 02:18 PM   #1
kjeldsen
LQ Newbie
 
Registered: Apr 2005
Posts: 10

Rep: Reputation: 0
Mounting ext3 formatted drive


I am trying to install a harddisk, which is already formatted as ext3, into my Qnap NAS box. The web interface of the NAS box shows, that the harddrive has been detected, but I am not able to mount any of its partitions.
This is the output from fdisk -l:
Code:
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1          66      530125   83  Linux
/dev/sdb2              67         132      530142   83  Linux
/dev/sdb3             133      121538   975193693   83  Linux
/dev/sdb4          121539      121600      498012   83  Linux
When I try to mount partition 3, I get the following error:
Code:
[/mnt] # mount -t ext3 /dev/sdb3 /mnt/testmount/
mount: wrong fs type, bad option, bad superblock on /dev/sdb3,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
Do I have to add a line to fstab for mount to work?
 
Old 02-16-2011, 02:55 PM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,116

Rep: Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530
what does your /etc/fstab look like?

also, have you tried fsck on it?
 
Old 02-16-2011, 02:56 PM   #3
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,118

Rep: Reputation: 494Reputation: 494Reputation: 494Reputation: 494Reputation: 494
I never specify the file system type. Usually the system will figure it out.

Try as root, 'mount /dev/sdb3 /mnt/testmount/' and see if that works. And no, you do not have to have an entry in fstab, unless you want it mounted at boot time.
 
Old 02-16-2011, 03:25 PM   #4
kjeldsen
LQ Newbie
 
Registered: Apr 2005
Posts: 10

Original Poster
Rep: Reputation: 0
@szboardstretcher: Sorry, fsck is not available.

@camorri:
I am doing the mount as a user named admin, but he has uid=0, so I think he must be the root user.

mount without filesystem argument:
Code:
[/mnt] # mount /dev/sdb3 /mnt/testmount/
mount: you must specify the filesystem type
This is the output from dmesg | tail:
Code:
FAT: invalid media value (0x6a)
VFS: Can't find a valid FAT filesystem on dev sdb3.

Last edited by kjeldsen; 02-16-2011 at 03:33 PM.
 
Old 02-16-2011, 03:43 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,265

Rep: Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624
What is the model number of your NAS and is the drive internal or external.
 
Old 02-16-2011, 03:48 PM   #6
kjeldsen
LQ Newbie
 
Registered: Apr 2005
Posts: 10

Original Poster
Rep: Reputation: 0
TS-239 Pro II.

The drive is internal.
 
Old 02-16-2011, 06:02 PM   #7
ajlewis2
Member
 
Registered: Nov 2003
Distribution: Ubuntu
Posts: 217

Rep: Reputation: 46
Quote:
Originally Posted by kjeldsen View Post
Code:
[/mnt] # mount -t ext3 /dev/sdb3 /mnt/testmount/
mount: wrong fs type, bad option, bad superblock on /dev/sdb3,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
Do I have to add a line to fstab for mount to work?
You do not need a line in fstab. You do need to be sure there is a filesystem on the partition, though.

fdisk -l only shows you that you have those partitions. It does not show that the partitions have filesystems or data. You seem sure that these partitions have been formatted and that they were formatted ext3 and not something else. Did you get the drive from another machine where you it was working as expected? If it was working in another machine, then fsck seems like the only thing you can do. Can you run a recovery disk that has e2fsck if it is not available on the machine? What form of Linux is on the machine, btw? Odd that e2fsck isn't on it.
 
Old 02-16-2011, 06:08 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,265

Rep: Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624
The online manual does not provide much information. It sort of implies that you that the NAS needs to format the drive before it can be used. Is this the only drive and is it configured as single disk volume?
 
Old 02-17-2011, 02:34 AM   #9
kjeldsen
LQ Newbie
 
Registered: Apr 2005
Posts: 10

Original Poster
Rep: Reputation: 0
@ajilewis
Ah, I tried typing just 'fsck' before. I get the following with 'e2fsck':
Code:
[~] # e2fsck /dev/sdb3
e2fsck 1.41.4 (27-Jan-2009)
e2fsck: Superblock invalid, trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open /dev/sdb3

The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>
Does not sound good. I tried the suggested parameters for alternate superblock, but it did not work. I think I will try and put
the disk back in the HDX media streamer it came from, to see if it works there.

I don't know the name of the linux on the nas. This is the output from uname:
Code:
[~] # uname -a
Linux NAS 2.6.33.2 #1 SMP Tue Nov 9 23:40:50 CST 2010 i686 unknown
@michaelk
OK. But that just feels weird, since it is linux based? One should should think everything was possible, but maybe the drive is indeed corrupted.

Last edited by kjeldsen; 02-18-2011 at 12:27 PM.
 
Old 02-18-2011, 12:37 PM   #10
kjeldsen
LQ Newbie
 
Registered: Apr 2005
Posts: 10

Original Poster
Rep: Reputation: 0
I found some information on how the NMT / HDX harddrive is formatted here.


The partition I am interested in is the one for media files, which is formatted like this according to the article:
Code:
linux:/home/linux # mkfs -t ext3 -j -m 0 -T largefile4 /dev/sdc3   
mke2fs 1.41.1 (01-Sep-2008)                                        
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
357536 inodes, 366093236 blocks
0 blocks (0.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
11173 block groups
32768 blocks per group, 32768 fragments per group
32 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
        102400000, 214990848

Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 37 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
Can the -m or -T arguments have anything to do with my mounting problem?
 
Old 02-18-2011, 01:57 PM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,265

Rep: Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624
Embedded systems are not full functioning desktop operating systems. It would of been nice if you had fully explained what you wanted to accomplish in your original post. I would suggest connecting the drive to a desktop computer.
 
  


Reply


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot mount ext3-formatted USB drive Changes Linux - General 5 12-05-2009 06:23 PM
Accessing an ext3 formatted drive from a Linux VM on Windows RussellChamp Linux - Distributions 3 09-11-2009 10:52 AM
recovering files from a formatted ext3 drive... possible? oskar Linux - General 8 10-25-2008 06:23 PM
How to mount internal drive just formatted to ext3 Pumalite Linux - Hardware 25 04-13-2007 11:12 AM
ext3 formatted drive capacity smaller than ntfs gsupp Linux - General 12 07-25-2004 03:47 PM


All times are GMT -5. The time now is 07:59 PM.

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