[SOLVED] Disc/partittion problem after upgrading from 13.0 to 13.1
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
root@Muspellsheim:~# ls /dev/sdb*
/dev/sdb /dev/sdb1
mounting /dev/sdb1 gives me an error
Code:
root@Muspellsheim:~# mount /dev/sdb1 /mnt/filmer/
mount: /dev/sdb1: can't read superblock
I haven't had any problems with the harddrive until upgrading to 13.1, so my guesses there's some driver problem with the new kernel. There are three partitions on the harddrive (sdb1), I can see all three on fdisk -l, but one partition only when trying to list the partitions with ls /dev/sdb*
Do you guys have any tips for helping me out with this problem?
"Can't read the superblock" is usually a sign of filesystem damage. You might want to see what xfs_check tells you about /dev/sdb1
Also read the xfs_check man-page as it gives you some detail on how to recover from damage.
One thing I do notice is that your /dev/sdb1 has the boot ('*') flag set. What concerns me about this is that if I remember rightly, xfs filesystems start from block 0, and if you install a bootloader to an xfs partition, it'll overwrite the first few blocks of the filesystem. I hope that's not what's happened here. You can check whether that's the case with:
Code:
dd if=/dev/sdb1 bs=512 count=1 | hexdump -C
If you see the string 'LILO' on the first line of the output, then that's probably what's happened.
root@Muspellsheim:~# xfs_check /dev/sdb1
XFS: totally zeroed log
can't seek in filesystem at bb 106134576
can't read btree block 8/467038
extent count for ino 172 data fork too low (0) for file format
bad nblocks 1063569 for inode 172, counted 0
bad nextents 66 for inode 172, counted 0
can't seek in filesystem at bb 66644728
can't read inode block 5/330726
can't seek in filesystem at bb 67362776
can't read inode block 5/420482
can't seek in filesystem at bb 76798704
can't read superblock for ag 6
can't seek in filesystem at bb 89598488
can't read superblock for ag 7
can't seek in filesystem at bb 102398272
can't read superblock for ag 8
can't seek in filesystem at bb 115198056
can't read superblock for ag 9
can't seek in filesystem at bb 127997840
can't read superblock for ag 10
can't seek in filesystem at bb 140797624
can't read superblock for ag 11
can't seek in filesystem at bb 153597408
can't read superblock for ag 12
can't seek in filesystem at bb 166397192
can't read superblock for ag 13
can't seek in filesystem at bb 179196976
can't read superblock for ag 14
can't seek in filesystem at bb 191996760
can't read superblock for ag 15
I'm happy there's no LILO on the first line, but the other lines doesn't look too promising either.
Just to decide wether it's a Slackware 13.1 problem or a filesystem failure, I booted the old Slackware 13.0 installation CD. I was able to mount all three partiotions, list the directories and files with no errors what so ever. This makes me pretty sure there's no filesystem failure, but rather a driver problem in Slackware 13.1.
When upgrading to 13.1 there were some new changes, where I had to rename my harddrives from hda and hdb to sda and sdb. I also had to delete /etc/udev/rules.d/70-persistent-cd.rules according to CHANGES_AND_HINTS.TXT, but this is related to cdrom-devices and not harddrives...
Well I'm glad it's not the lilo issue. And as you say going back to 13.0 the filesystem is still there so it's clearly still intact.
If you're sure that sdb is indeed the correct device name for the drive after the hd-->sd renaming then I don't have any other ideas. Does running "blkid" from your 13.1 system show anything that might suggest a naming mismatch?
Yes, that's most definitely 'weird'. I was curious to see whether the major/minor numbers were ok, but that all looks right. Even if udev was getting it wrong, I'd have expected your missing partitions to show up in /proc/partitions.
The only time I've seen anything like this was on a very large disk where the partitions were going past the 2TB partition size limit, but from the sizes on your fdisk, that doesn't look to be the case here either.
Anything unusual show up in your 'dmesg'? I'm pretty much out of ideas at this stage.
afterthought:
If you're still using the 'huge' kernel, it might be worth trying to swap to 'generic' + initrd and see if that helps.
Thanks for sharing your solution syvy. sdb is my secondary disc though (slackware installed on sda), but I'll surely check my bumpers. Strange this issue didn't affect the older versions of Slackware.
sd 0:0:1:0: [sdb] 66055248 512-byte logical blocks: (33.8 GB/31.4 GiB)
sdb: p1 size 204796557 exceeds device capacity, limited to end of disk
sdb: p2 ignored, start 204796620 is behind the end of the disk
sdb: p3 ignored, start 409593240 is behind the end of the disk
Well, there's the cause. For some reason the kernel on slackware 13.1 thinks your disk is only 32ish GiB so it disables the partitions it thinks go beyond that. I've never seen that before. I have no idea why it's happening.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.