Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot mount partition
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
rawbeefman
Guru
Guru


Joined: 25 Mar 2005
Posts: 375

PostPosted: Fri Jun 03, 2005 7:07 pm    Post subject: Cannot mount partition Reply with quote

Okay, I made a logical partition on this hard drive back at the beginning of the install, and for some reason I cannot mount it. Dmesg gives:

Quote:
ReiserFS: hda4: warning: sh-2006: read_super_block: bread failed (dev hda4, block 8, size 1024)
attempt to access beyond end of device
hda4: rw=0, want=130, limit=2
ReiserFS: hda4: warning: sh-2006: read_super_block: bread failed (dev hda4, block 64, size 1024)
ReiserFS: hda4: warning: sh-2021: reiserfs_fill_super: can not find reiserfs on hda4
attempt to access beyond end of device


Which doesnt look very good to me. Should I delete the partition and make another one? Will doing that possible affect the gentoo I just spent 3 days setting up?

Thanks
- Eschmann
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Fri Jun 03, 2005 7:09 pm    Post subject: Reply with quote

Run reiserfsck on the partition to see if the metadata is damaged; if so, re-create the partition and reformat it.
If the problem persists then you have a bad harddisk.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
rawbeefman
Guru
Guru


Joined: 25 Mar 2005
Posts: 375

PostPosted: Fri Jun 03, 2005 7:14 pm    Post subject: Reply with quote

This shows up when I run reiserfsck /dev/hda4:

Quote:
Do you want to run this program?[N/Yes] (note need to type Yes if you do):Yes
bread: Cannot read the block (2): (Invalid argument).
reiserfs_open: bread failed reading block 2
bread: Cannot read the block (16): (Invalid argument).
reiserfs_open: bread failed reading block 16

reiserfs_open: the reiserfs superblock cannot be found on /dev/hda4.
Failed to open the filesystem.


Am I out of luck?
- Eschmann
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Fri Jun 03, 2005 7:18 pm    Post subject: Reply with quote

There is not actually a reiserfs filesystem on this partition, is there ?
It would appear not, anyway.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
rawbeefman
Guru
Guru


Joined: 25 Mar 2005
Posts: 375

PostPosted: Fri Jun 03, 2005 7:32 pm    Post subject: Reply with quote

Quote:
mkreiserfs /dev/hda4
mkreiserfs 3.6.19 (2003 www.namesys.com)

A pair of credits:
Alexander Lyamin keeps our hardware running, and was very generous to our
project in many little ways.

Oleg Drokin was the debugger for V3 during most of the time that V4 was under
development, and was quite skilled and fast at it. He wrote the large write
optimization of V3.


Did this install the filesystem? It doesnt appear as if it did, but that is the command. It still doesnt work though. Any suggestions?
- Eschmann
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Fri Jun 03, 2005 8:10 pm    Post subject: Reply with quote

No, it did not.
It should at the very least show you the journal being created, and the superblocks being written - which takes a few seconds (15 or so depending on the size of the partition).
What happens when you try to mount it explicitly ?
Code:
mkdir /mnt/temp
mount -t reiser /dev/hda4 /mnt/temp

_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
rawbeefman
Guru
Guru


Joined: 25 Mar 2005
Posts: 375

PostPosted: Fri Jun 03, 2005 8:25 pm    Post subject: Reply with quote

When I try to mount it in the terminal I get:

Quote:
upstairs ~ # mount -t reiserfs /dev/hda4 /mnt/temp
mount: wrong fs type, bad option, bad superblock on /dev/hda4,
or too many mounted file systems
(aren't you trying to mount an extended partition,
instead of some logical partition inside?)


Any ideas?
- Eschmann
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Fri Jun 03, 2005 8:30 pm    Post subject: Reply with quote

Well color me stupid!

It is right - it is an extended partition you're trying to mount.
Needless to say, this is not possible.

Code:
fdisk -l

will tell you what the real partition number is.

D'oh!
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
rawbeefman
Guru
Guru


Joined: 25 Mar 2005
Posts: 375

PostPosted: Fri Jun 03, 2005 8:56 pm    Post subject: Reply with quote

Hmmm, there is something I dont understand. I'm learning as I go. Can you explain to me what you mean?

- Eschmann
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54831
Location: 56N 3W

PostPosted: Fri Jun 03, 2005 9:08 pm    Post subject: Reply with quote

rawbeefman,

The partitoin table was introduced when DOS was made to understand hard drives, It was either DOS 2.0 or DOS 3.0. That long ago. The Partition Table in the Master Boot Record can hold at most four entries. That was fine while hard drives were small, since DOS could use 32Mb at most per partition. This scheme allowed 128Mb drives to be described to DOS.

When larger drives cam out DOS was fixed to use Clusters, not Sectors for the allocation units and the concept of the Extended Partition was introduced, which is just a container for Logical Partitions. The entries in in original partition table were renamed to be Primary Partitions.

The partioning rules as they now stand:-
1 You may have at most, four primary partitions.
2. A maximum of one primary partition may be of type extended.
3. An extended partition is a 'container' for logical partions.

Further, Primary Partitons are always numbered 1-4. If they are not all used, thats OK.
Logical Partitions are numbered 5-64 (if you want more you need to build a special kernel)
Since an Extended Partition does not contain a filesystem you cannot mount it, you mount the logical partitions it contains.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
rawbeefman
Guru
Guru


Joined: 25 Mar 2005
Posts: 375

PostPosted: Fri Jun 03, 2005 10:04 pm    Post subject: Reply with quote

Oh, I think I got it. So how do I make a logical partition inside of my extended partition?

Thanks
- Eschmann
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54831
Location: 56N 3W

PostPosted: Fri Jun 03, 2005 11:23 pm    Post subject: Reply with quote

rawbeefman,

With fdisk - the same as you make other partitions.
If you have an extended partition it will give you a chice between primary and logical.
You will notice it will be numbered automatically from 5 up when you make a logical partition.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum