LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 01: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, 02:00 PM   #2
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
How are you booting?
post a copy of your /etc/fstab
do:
mount
and post output of that.
 
Old 06-08-2004, 02: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, 08: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, 09:29 AM   #5
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Does it mount and can you read files there?
 
Old 06-09-2004, 12: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 12:09 PM.
 
Old 06-10-2004, 03:38 AM   #7
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
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, 12: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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation

All times are GMT -5. The time now is 04:05 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
Open Source Consulting | Domain Registration