LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - Installation (https://www.linuxquestions.org/questions/slackware-installation-40/)
-   -   mkdir doesn't work (https://www.linuxquestions.org/questions/slackware-installation-40/mkdir-doesnt-work-191176/)

Kristian2 06-08-2004 01:50 PM

mkdir doesn't work
 
I seem not to be able to use the 'mkdir' command, directory permissions are not the problem, even in '~' it doesn't work.
$ mkdir tt
mkdir: cannot create directory `tt': Input/output error

Is this somehow related to the error I get "Can't load module char-major-5" (which is /dev/zero). Don't know what the reason is for this error either.


Any ideas?

Regards,

Kristian

gnashley 06-08-2004 02:00 PM

How are you booting?
post a copy of your /etc/fstab
do:
mount
and post output of that.

Kristian2 06-08-2004 02:29 PM

if it helps

/dev/hda9 swap swap defaults 0 0
/dev/hda3 / ext3 defaults 1 1
/dev/hda6 /home ext3 defaults 1 2
/dev/hda2 /boot ext3 defaults 1 2
/dev/hda7 /tmp ext3 defaults 1 2
/dev/hda8 /var ext3 defaults 1 2
/dev/hda4 /__WIN98 vfat defaults 1 0
/dev/hda5 /__DATA vfat defaults,umask=002 1 0
/dev/cdrw /mnt/cdrw iso9660 noauto,owner,user 0 0
/dev/dvdrom /mnt/dvd iso9660 noauto,owner,user 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,user 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0

-------------
$ mount
/dev/hda3 on / type ext3 (rw)
/dev/hda6 on /home type ext3 (rw)
/dev/hda2 on /boot type ext3 (rw)
/dev/hda7 on /tmp type ext3 (rw)
/dev/hda8 on /var type ext3 (rw)
/dev/hda4 on /__WIN98 type vfat (rw)
/dev/hda5 on /__DATA type vfat (rw,umask=002)
proc on /proc type proc (rw)

Kristian2 06-09-2004 08:12 AM

I will be more specific
The mkdir command doesn't work under /home, this is because the filesystem for that partition is corrupt
Running e2fsck for /dev/hda6 (/home)
results in:
The filesystem size (according to the superblock) is 2281198 blocks. the physical size of the device is 1959898 blocks. Either the superblock or the partition table is likely to be corrupt.
9.3% non-contigious inodes according to e2fsck.
(The partitions were initially made with Partitionmagic under Windows)

How can I repair this mess otherwise this partition is more or less uselss.
Any help welcome,

Kristian

gnashley 06-09-2004 09:29 AM

Does it mount and can you read files there?

Kristian2 06-09-2004 12:07 PM

I don't know what you mean, reading (and creating) files is not the problem for this partition or do you mean mounting /home under /mnt/hdd/home or something like that?

gnashley 06-10-2004 03:38 AM

What I'm getting at is this: If you can mount and read what's there you can copy it somewhere and reformat that partition to correct the filesystem problem.

Kristian2 06-10-2004 12:42 PM

that was not the problem, but thanks for your help.
The solution is simple
mke2fs -c <partition> -b <actual blocksize>
why didn't I think of this sooner.


All times are GMT -5. The time now is 10:22 AM.