LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices



Reply
 
Search this Thread
Old 06-08-2004, 02:50 PM   #1
Kristian2
Member
 
Registered: May 2004
Location: Netherlands
Distribution: Slackware 13
Posts: 97

Rep: Reputation: 15
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
 
Old 06-08-2004, 03:00 PM   #2
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,775

Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481
How are you booting?
post a copy of your /etc/fstab
do:
mount
and post output of that.
 
Old 06-08-2004, 03:29 PM   #3
Kristian2
Member
 
Registered: May 2004
Location: Netherlands
Distribution: Slackware 13
Posts: 97

Original Poster
Rep: Reputation: 15
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)
 
Old 06-09-2004, 09:12 AM   #4
Kristian2
Member
 
Registered: May 2004
Location: Netherlands
Distribution: Slackware 13
Posts: 97

Original Poster
Rep: Reputation: 15
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
 
Old 06-09-2004, 10:29 AM   #5
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,775

Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481
Does it mount and can you read files there?
 
Old 06-09-2004, 01:07 PM   #6
Kristian2
Member
 
Registered: May 2004
Location: Netherlands
Distribution: Slackware 13
Posts: 97

Original Poster
Rep: Reputation: 15
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?

Last edited by Kristian2; 06-09-2004 at 01:09 PM.
 
Old 06-10-2004, 04:38 AM   #7
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,775

Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481
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.
 
Old 06-10-2004, 01:42 PM   #8
Kristian2
Member
 
Registered: May 2004
Location: Netherlands
Distribution: Slackware 13
Posts: 97

Original Poster
Rep: Reputation: 15
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.
 
  


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
mkdir -p ? shanenin Linux - Software 4 10-19-2011 12:41 PM
mkdir recompilation puishor Programming 4 06-25-2005 05:37 PM
mkdir script shelby Programming 3 11-29-2004 04:56 PM
mkdir help... Linux~Powered Linux - Software 2 06-13-2004 12:27 PM
mkdir help ITJedi Linux - Software 1 05-14-2004 06:19 PM


All times are GMT -5. The time now is 05:23 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration