Log in

Bekijk de volledige versie : Mounting an ext3 partition failes



Styno
14-01-2005, 23:02
I'm trying to mount an 62 Mb ext3 partition which I created using Partition Magic 8.0 using firmware 1.9.2.7 CR3b.

I can see the partition, its number 5:

$ cat /proc/partitions
major minor #blocks name

8 0 156290904 scsi/host0/bus0/target0/lun0/disc
8 1 156191931 scsi/host0/bus0/target0/lun0/part1
8 2 1 scsi/host0/bus0/target0/lun0/part2
8 5 64228 scsi/host0/bus0/target0/lun0/part5
8 6 32098 scsi/host0/bus0/target0/lun0/part6

Then I try to mount it with:

$ mount -o auto /dev/scsi/host0/bus0/target0/lun0/part5 /tmp/extra

First time I tried it said something about an invalid directory so I created the '/mnt/extra' directory, after that it says:

mount: Mounting /dev/scsi/host0/bus0/target0/lun0/part5 on /tmp/extra failed: Invalid argument
No matter what combination of options I try this is what it returns. I've read the man pages on mount, and now I'm out of options....

I'm sure I'm doing something wrong here, but I've got no clue what it is, so please give me a hint :)

Styno
15-01-2005, 00:08
Ok, with the help from Antiloop, the ext3 partition is up and running:
I had forgotten (I did not know I needed it actually) to create the filesystem using:

mke2fs -j /dev/discs/disc0/part5
Which gives the following output:

$ mke2fs -j /dev/discs/disc0/part5
mke2fs 1.35 (28-Feb-2004)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
16064 inodes, 64228 blocks
3211 blocks (5.00%) reserved for the super user
First data block=1
8 block groups
8192 blocks per group, 8192 fragments per group
2008 inodes per group
Superblock backups stored on blocks:
8193, 24577, 40961, 57345

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

This filesystem will be automatically checked every 38 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
After that the partition can be mounted using:

mount -o rw,noatime /dev/discs/disc0/part5 /tmp/slet/
Done! Thanks Antiloop!! :)