LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-15-2010, 03:05 AM   #1
rtr_87
LQ Newbie
 
Registered: Oct 2009
Distribution: Slackware, Fedora
Posts: 11

Rep: Reputation: 0
Filesystems missing from hard drives.


This is driving me mad, so bear with me. I'm not sure this is a Slackware issue, in fact I'm sure it's not, but you all have helped me in the past so it seems like a good place to start. Also, I don't really know exactly how much of this information will be completely relevant to my problem, but I really can't pin it down.

My server is running 64 bit Slackware 13. It was running fine, mainly just serving files on the LAN, with some occasional SSH activity. I was slowly moving hard drives to it from my desktop system (all 1 or 2 terabyte drives). They were previously formatted with NTFS and were filled with files, so it took me a while to move data around, format a drive, and copy the data back. I decided to use ext4, for no particular reason other than it was the newest, so if I end up having to reformat these again, I'm open to using another filesystem. Right now, I've got two 2TB drives and three 1TB drives, but one of those is still NTFS, so it is of no concern at the moment.

At this point, I had just added the two 2TB drives to the system. These happened to be the new WD Advanced Format drives with 4k sectors. I found a way to manipulate fdisk so it would start the partition on the correct cylinder or whatever to take advantage of the new format. I also ended up using GPT instead of MBR because it had more usable space. So I had the following setup:

two 2TB drives, GPT, ext4, 4k sectors
two 1TB drives, GPT, ext4
one 1TB drive, MBR, NTFS (not important)

This setup was working fine for a few days until I had to take the server down to move some wires around. When I booted the server back up, I discovered the two 2TB drives were missing. They showed up in /dev but wouldn't mount. The boot script reported this for both drives:
Code:
mount: special device LABEL=/Caviar2G.0 does not exist
mount: special device LABEL=/Caviar2G.1 does not exist
I was using the disk label identifier to mount at boot, so I tried manually mounting using the actual device name and even created new directories to mount them in, but nothing worked. I always get the follong error:
Code:
# mount /dev/sdb1 /media/tmp
mount: No such file or directory
I tried booting to the latest Ubuntu live CD (10.04) and found a different problem. In Ubuntu (and Fedora 12), both 2TB drives show up and mount, but the two ext4 1TB drives don't. What's weird is, in Slackware, I would get something like this:
Code:
# ls /dev/sd*
sda sda1 sdb sdb1 sdc sdc1 sdd sdd1 sde sde1
But in Ubuntu I would get:
Code:
# ls /dev/sd*
sda sdb sdc sdc1 sdd sdd1 sde sde1
In other words, it didn't even recognise a partition on the missing drives. But it did show up in hdparm and fdisk. I thought it might be an issue with the newest kernel, but I don't think that is the issue either. So far I've tried the following:

Slackware 13, 2.6.29.6, both 2TB drives are missing
Ubuntu 10.04, 2.6.32, both 1TB drives are missing
Fedora 12, 2.6.31.12 & 2.6.32.9, both 1TB drives are missing
Knoppix 6.2.1, 2.6.32.6, both 2TB drives are missing

One of my first thoughts after the initial reboot was that maybe the 500W power supply was not strong enough to spin up seven hard drives (5 storage + 2 OS drives) at the same time (I had added each of the storage drives while the system was up). But this wasn't supported by two things. First, the same two hard drives were missing on each OS every time. And second, every drive shows up during POST and in the BIOS. Just to be sure, I gutted the system, powering only one drive at a time and the same drives always failed to show up. I moved the SATA power connectors and data cables around as well. So I've pretty much ruled out hardware.

The thing is, I can access all my data from at least one OS, just not at the same time. So reformatting is not going to be a problem if it comes to that. I just don't understand what is going on. This was all working at one point, so expect there is a way to fix it, but I'm at a loss.

I think I included all the relevant information, but let me know if anything needs clarifying. Thanks for reading.
 
Old 05-15-2010, 03:26 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,350

Rep: Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331
Get a program called 'testdisk', and set it loose on them. That usually finds partitions.
If you have the whole drive set up as one partition, it's actually OK to have no partitions. They you would run

mount /dev/sdb /media/somewhere

Try that. It may be the answer
 
Old 05-15-2010, 03:43 AM   #3
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,375

Rep: Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754
i won't answer for the other operating systems, but default Slackware 13.0 with the 2.6.29.6 kernel did not have support for GPT compiled in the kernel. GPT is enabled in later kernels on -current.
 
Old 05-15-2010, 04:39 AM   #4
rtr_87
LQ Newbie
 
Registered: Oct 2009
Distribution: Slackware, Fedora
Posts: 11

Original Poster
Rep: Reputation: 0
allend: That's interesting about the GPT support. All I did to create it was something like this (for the 2TB drives):
Code:
# parted /dev/sda
(parted) mklabel gpt
(parted) unit s
(parted) mkpart primary ext4 40 -1
And then I formatted it with mkfs.ext4. And it worked fine until I had to reboot. The thing is though, all four drives are using GPT, so it doesn't make sense that two work and two don't.

business_kid: What exactly should I be looking for when I run testdisk?

I ran blkid (supposed to print device id and such) and the 2TB drives didn't show up there either. Gonna try some more tomorrow, but thanks for the responses so far.
 
Old 05-16-2010, 03:18 AM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,350

Rep: Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331
@rtr_87: I read post #1, particularly
ls -l /dev/sd*

and advised mounting sdb
mount /dev/sdb /somewhere

or finding what had gone missing if you couldn't do that. If neither of those was your problem, forget my posts.
 
Old 05-16-2010, 05:19 AM   #6
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Probably a red-herring (data loss as opposed to partition loss) but maybe relevant to your interests this LQ thread discusses ext4 data loss when running kernels prior to 2.6.30, presumably including Slackware 13.0's 2.6.29.6 kernel.
 
Old 05-23-2010, 05:55 PM   #7
rtr_87
LQ Newbie
 
Registered: Oct 2009
Distribution: Slackware, Fedora
Posts: 11

Original Poster
Rep: Reputation: 0
I was out of town last week, so sorry for not responding sooner. I won't be in contact with my server for the next few weeks, so I think I'm gonna let this rest for a bit. I'll try a new distro in a couple weeks (maybe the new Slackware 13.1 if it's out, or Arch) to see if anything changes, but barring any sudden revelation, I think I'll end up moving data around and reformatting again. Thanks to all who responded.
 
  


Reply

Tags
ext4, gpt, harddrive, mount



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
Missing Disk & Filesystems inside System Settings - KDE 4 Gutsy scuzzman Ubuntu 0 03-05-2008 12:29 AM
2 hard drives, XP on my main sata drives, 10.2 on my IDE LILO doesnt show on boot up Dachy Slackware 14 01-03-2008 07:01 AM
Missing hard drives kihahu Linux - Server 3 12-18-2007 12:58 PM
hard drive filesystems.. archive Linux - General 3 09-24-2007 08:53 AM
Upgrading hard drives on Software raid 1 boot drives. linuxboy123 Linux - General 0 12-11-2003 03:28 PM

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

All times are GMT -5. The time now is 12:31 PM.

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