View previous topic :: View next topic |
Author |
Message |
rawbeefman Guru
Joined: 25 Mar 2005 Posts: 375
|
Posted: Fri Jun 03, 2005 7:07 pm Post subject: Cannot mount partition |
|
|
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 |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Fri Jun 03, 2005 7:09 pm Post subject: |
|
|
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 |
|
|
rawbeefman Guru
Joined: 25 Mar 2005 Posts: 375
|
Posted: Fri Jun 03, 2005 7:14 pm Post subject: |
|
|
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 |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Fri Jun 03, 2005 7:18 pm Post subject: |
|
|
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 |
|
|
rawbeefman Guru
Joined: 25 Mar 2005 Posts: 375
|
Posted: Fri Jun 03, 2005 7:32 pm Post subject: |
|
|
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 |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Fri Jun 03, 2005 8:10 pm Post subject: |
|
|
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 |
|
|
rawbeefman Guru
Joined: 25 Mar 2005 Posts: 375
|
Posted: Fri Jun 03, 2005 8:25 pm Post subject: |
|
|
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 |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Fri Jun 03, 2005 8:30 pm Post subject: |
|
|
Well color me stupid!
It is right - it is an extended partition you're trying to mount.
Needless to say, this is not possible.
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 |
|
|
rawbeefman Guru
Joined: 25 Mar 2005 Posts: 375
|
Posted: Fri Jun 03, 2005 8:56 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54831 Location: 56N 3W
|
Posted: Fri Jun 03, 2005 9:08 pm Post subject: |
|
|
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 |
|
|
rawbeefman Guru
Joined: 25 Mar 2005 Posts: 375
|
Posted: Fri Jun 03, 2005 10:04 pm Post subject: |
|
|
Oh, I think I got it. So how do I make a logical partition inside of my extended partition?
Thanks
- Eschmann |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54831 Location: 56N 3W
|
Posted: Fri Jun 03, 2005 11:23 pm Post subject: |
|
|
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 |
|
|
|