LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Major filesystem problems on fresh slack 10 install (https://www.linuxquestions.org/questions/slackware-14/major-filesystem-problems-on-fresh-slack-10-install-273557/)

kersten78 01-04-2005 12:22 AM

Major filesystem problems on fresh slack 10 install
 
Hello everybody.

I just reinstalled slack 10 on an old laptop. It was working fine before, but in order to satisfy my need to break things, I decided to reinstall.

Breaking things? mission accomplished.
Successfully installing slack? failed miserably.

Here's the problem. I repartitioned my 12 gig drive as follows:
/dev/hda1 5000 mb bootable mounted as / tagged as type linux
/dev/hda2 500 mb swap tagged as type linux swap
/dev/hda3 whatever was left mounted as /home tagged as type linux

All partitions were set as primary and partition table was written to disk.

I proceeded into the slack installation, adding swap and formating successfully.
I then formatted /dev/hda1 and /dev/hda3 as reiserfs and set the mount points as above.

Once I logged into the system, I checked out my disk usage.
Here's the results of df and free:
Code:

root@shorty:/# df -H
Filesystem            Size  Used  Avail Use% Mounted on
/dev/hda1              4.0G  3.0G  1.1G  73% /
root@shorty:/#
root@shorty:/# free -m
            total      used      free    shared    buffers    cached
Mem:          123        120          2          0          7        64
-/+ buffers/cache:        49        74
Swap:            0          0          0
root@shorty:/#

Obviously, something is amiss. Upon checking syslog, I came across the following errors:
Code:

Jan  3 23:43:25 shorty kernel: register_serial(): autoconfig failed
Jan  3 23:43:25 shorty kernel: RAMDISK driver initialized: 16 RAM disks of 7777K size 1024 blocksize
Jan  3 23:43:25 shorty kernel: hda: IBM-DARA-212000, ATA DISK drive
Jan  3 23:43:25 shorty kernel: hdb: CD-224E, ATAPI CD/DVD-ROM drive
Jan  3 23:43:25 shorty kernel: blk: queue c03b3360, I/O limit 4095Mb (mask 0xffffffff)
Jan  3 23:43:25 shorty kernel: ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Jan  3 23:43:25 shorty kernel: hda: attached ide-disk driver.
Jan  3 23:43:25 shorty kernel: hda: host protected area => 1
Jan  3 23:43:25 shorty kernel: hdb: attached ide-cdrom driver.
Jan  3 23:43:25 shorty kernel: kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
Jan  3 23:43:25 shorty last message repeated 2 times
Jan  3 23:43:25 shorty kernel:    8regs    :  823.200 MB/sec
Jan  3 23:43:25 shorty kernel:    32regs    :  474.000 MB/sec
Jan  3 23:43:25 shorty kernel:    pIII_sse  :  1005.600 MB/sec
Jan  3 23:43:25 shorty kernel:    pII_mmx  :  1126.400 MB/sec
Jan  3 23:43:25 shorty kernel:    p5_mmx    :  1175.600 MB/sec
Jan  3 23:43:25 shorty kernel: raid5: using function: pIII_sse (1005.600 MB/sec)
Jan  3 23:43:25 shorty kernel: FAT: bogus logical sector size 0
Jan  3 23:43:25 shorty last message repeated 2 times
Jan  3 23:43:25 shorty kernel: reiserfs: found format "3.6" with standard journal
Jan  3 23:43:25 shorty kernel: reiserfs: checking transaction log (device ide0(3,1)) ...
Jan  3 23:43:25 shorty kernel: for (ide0(3,1))
Jan  3 23:43:25 shorty kernel: ide0(3,1):Using r5 hash to sort names
Jan  3 23:43:25 shorty kernel: VFS: Mounted root (reiserfs filesystem) readonly.
Jan  3 23:43:25 shorty kernel: Unable to find swap-space signature
Jan  3 23:43:25 shorty kernel: sh-2021: reiserfs_read_super: can not find reiserfs on ide0(3,3)

The above is just a portion of the syslog. It may contain more relevant info that I missed, so I uploaded it here if anyone wants to see it in it's entirety. I also looked through dmesg, but didn't see any errors regarding the filesystem.

The only thing I did out of the ordinary was repartition in the middle of setup. I decided I wanted more space allocated to / so I quit setup and ran cfdisk again. When I ran setup again, everything formatted fine. addswap gave me a warning about configuring the swap and suggested that some command needed to be run. I said OK to whatever command it suggested (can't remember what it was exactly), and formatting of swap continued as normal and indicated success. I then went through the formatting of the / and /home partitions as I normally do. Everything seemed to work fine.

If anyone has any idea what might have went wrong, I'd really appreciate the input.
I spent some time tweaking things before I noticed the problems, so if there might be a way to fix it without reinstalling, I'd be super happy.

Thanks in advance for any advice... and sorry for such a long initial post.

slakmagik 01-04-2005 02:08 AM

What's fdisk -l say?

I suspect the partitions are there and you just need to 'mkswap' and 'swapon' your swap and 'mkreiserfs' your hda3. If there's no data on there yet, it shouldn't be a problem.

Also fstab - maybe need to touch that up.

Also, while I've never done it, I believe you can resize a reiser partition - redo the partition with [c]fdisk and then 'resize_reiserfs' - which I don't think is a problem as long as it's a simple extension. The key thing is having a fixed initial boundary and not truncating the final, I think.

No guarantees on any of this, by any means, but those are my guesses. Probably just confused the installer.

I've deleted partitions out from under data before or resized around them and, as long as you reset the partition properly, the data remains - but this has usually been with DOS filesystems - still should apply.

kersten78 01-04-2005 02:58 AM

digiot, I can't thank you enough. Problem solved--completely!!!!:D
I guess the installer just got completely confused with the repartitioning. mkswap and swapon fixed the swap, mkreiserfs fixed /dev/hda3 (after I RTFM ;)). And resize_reiserfs fixed my root partition.
Code:

root@shorty:~# df -H
Filesystem            Size  Used  Avail Use% Mounted on
/dev/hda1              5.0G  3.0G  2.1G  59% /
/dev/hda3              6.6G    34M  6.6G  1% /home
root@shorty:~#
root@shorty:~# free -m
            total      used      free    shared    buffers    cached
Mem:          123        100        23          0        40        45
-/+ buffers/cache:        14        109
Swap:          476          0        476
root@shorty:~#

Perfect! Thanks again.

slakmagik 01-04-2005 04:30 AM

Yeah - that output looks much better. :D Glad to help and glad you got it working.


All times are GMT -5. The time now is 04:59 PM.