[SOLVED] Arch won't mount my hard drives correctly, problems at boot.

Sometimes (only sometimes) Arch Linux will have an error during bootup because my Linux drive gets mounted as sdb instead of sda. My NTFS Sata storage drives gets mounted in its place as sda.
When this happens, Arch Linux will stop booting at the "checking filesystems" step:
:: Checking Filesystems [BUSY]
/dev/sda3:
The superblock could not be read or does not describe a corect ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
[FAIL]
**************** FILESYSTEM CHECK FAILED ****************
* Please repair manually and reboot. Note that the root *
* file system is currently mounted read-only. To remount *
* it read-write type: mount -n -o remount,rw / *
* When you exit the maintenance shell the system will *
* reboot automatically. *
Give root password for maintenance
(or type Control-D to continue):
And from there i have to remount my drives manually or restart the computer. Everytime I start the computer, I simply have to hope that my Linux drive will mount as sda. It's totally hit and miss.
Now, I know that my superblock is not corrupt. fsck is failing because it is looking for my linux filesystem on sda. It is encountering my NTFS Sata drive on sda instead of the expected Linux ext filesystem.
So how do I know that this is happening?
Well, after giving the root password, it shows the root prompt
[root@(none) ~]#
and i proceed to use the lshw command to see what's up with the drives:
[root@(none) ~]# lshw -short | grep /dev/
/0/6/0.0.0 /dev/sdb disk 120GB WDC WD1200JB-00E
/0/6/0.0.0/1 /dev/sdb1 volume 101MiB Linux filesystem partition
/0/6/0.0.0/2 /dev/sdb2 volume 258MiB Linux swap volume
/0/6/0.0.0/3 /dev/sdb3 volume 7506MiB EXT4 volume
/0/6/0.0.0/4 /dev/sdb4 volume 104GiB EXT4 volume
/0/6/0.1.0 /dev/sdc disk 81GB Maxtor 6Y080P0
/0/6/0.1.0/1 /dev/sdc1 volume 76GiB Windows NTFS volume
/0/8/0.0.0 /dev/sda disk 640GB Hitachi HDT72106
/0/8/0.0.0/1 /dev/sda1 volume 596GiB Windows NTFS volume
So, clearly, this shows that my Linux drive has gotten mounted as sdb and my NTFS Sata drive has gottem mounted as sda. It's totally random: sometimes they mount vice versa and the system boots just fine.
When Arch does happen to mount itself properly as sda and the system starts successfully, then the lshw command shows this:
[root@(none) ~]# lshw -short | grep /dev/
/0/6/0.0.0 /dev/sda disk 120GB WDC WD1200JB-00E
/0/6/0.0.0/1 /dev/sda1 volume 101MiB Linux filesystem partition
/0/6/0.0.0/2 /dev/sda2 volume 258MiB Linux swap volume
/0/6/0.0.0/3 /dev/sda3 volume 7506MiB EXT4 volume
/0/6/0.0.0/4 /dev/sda4 volume 104GiB EXT4 volume
/0/6/0.1.0 /dev/sdb disk 81GB Maxtor 6Y080P0
/0/6/0.1.0/1 /dev/sdb1 volume 76GiB Windows NTFS volume
/0/8/0.0.0 /dev/sdc disk 640GB Hitachi HDT72106
/0/8/0.0.0/1 /dev/sdc1 volume 596GiB Windows NTFS volume
The above correctly mounted format shows the drives in the same order as my Hard Disk boot priority in BIOS as well as in the same order as during the initial drive detection directly following the memory test (don't know if it has anything to do with it though).
So my question is this. How do I ensure that Arch Linux mounts itself as sda ALL of the time, and not randomly?
Or should I remove my sda entries in etc/fstab and let Arch determine where my Linux filesystems are? If so, how?
It's interesting to note that GRUB is set to boot Arch Linux from hd0, which should be sda.
It's also intriguing to note that if I take out my Sata drive, I never encounter this problem.
Last edited by trusktr (2010-06-15 07:49:31)

Thanks kgas, here's what i found out so far:
Alright so after rebooting, this is what i determined:
When Linux mounts the drives incorrectly (take note of the parts in bold, the short numbers are NTFS filesystems, long numbers the Linux filesystems):
[trusktr@rocketship ~]$ ls -l /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Jun 14 21:08 01CA836D8BE82040 -> ../../[b]sdc1[/b]
lrwxrwxrwx 1 root root 10 Jun 14 21:08 0ddf0e41-e7e6-4af5-b0e9-bc79a91b12eb -> ../../[b]sdb1[/b]
lrwxrwxrwx 1 root root 10 Jun 14 21:08 92b88528-dd0f-4c1b-bcce-54084ef2aceb -> ../../[b]sdb4[/b]
lrwxrwxrwx 1 root root 10 Jun 14 21:08 C838CF5838CF4462 -> ../../[b]sda1[/b]
lrwxrwxrwx 1 root root 10 Jun 14 21:08 cdb33de5-0100-4c5f-a9b1-5c1a444e6eac -> ../../[b]sdb3[/b]
lrwxrwxrwx 1 root root 10 Jun 14 21:08 d0a5d49d-169d-43ce-af0f-216dc4a9f604 -> ../../[b]sdb2[/b]
So an NTFS filesystem is mounted in sda instead of the Linux filesystem
When Linux mounts everything properly:
[trusktr@rocketship ~]$ ls -l /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Jun 14 21:08 01CA836D8BE82040 -> ../../[b]sdb1[/b]
lrwxrwxrwx 1 root root 10 Jun 14 21:08 0ddf0e41-e7e6-4af5-b0e9-bc79a91b12eb -> ../../[b]sda1[/b]
lrwxrwxrwx 1 root root 10 Jun 14 21:08 92b88528-dd0f-4c1b-bcce-54084ef2aceb -> ../../[b]sda4[/b]
lrwxrwxrwx 1 root root 10 Jun 14 21:08 C838CF5838CF4462 -> ../../[b]sdc1[/b]
lrwxrwxrwx 1 root root 10 Jun 14 21:08 cdb33de5-0100-4c5f-a9b1-5c1a444e6eac -> ../../[b]sda3[/b]
lrwxrwxrwx 1 root root 10 Jun 14 21:08 d0a5d49d-169d-43ce-af0f-216dc4a9f604 -> ../../[b]sda2[/b]
This doesn't tell us much except that I indeed do have uuid's for all the drives.
So, i guess as kgas said, i probably need to use the uuid in fstab so that Linux always knows which hard drive is the linux drive! In that case, only the uuid for the Linux drive will be necessary. For the other drives it wouldn't matter so much i guess since they don't contain the operating system.
Alright, i'll be back to determine if this fixes it!
Last edited by trusktr (2010-06-15 06:41:25)

Similar Messages

  • Why won't my external hard drive mount in Disk Utility even when it shows up on the list?

    Hey all,
    For the last few years I've used a Samsung S2 1TB external harddrive to back up all my files, this includes photos, music and a vast amount of resources required for Uni. However I plugged it in for the first time in about two months and discovered that neither my Macbook Pro (late 2011) or my Mac Mini (early 2013) are able to mount the hard drive.
    It shows up in Disk Utilty however the harddrive is greyed out and when I manually try to mount it I get an error message saying that it can't be mounted and to use the first aid 'Repair disk permissions' feature which would be all good and well were that not also greyed out.
    I've read a fair amount on this forum that suggest that Mavericks has caused quite an issue with harddrives and although I don't know for sure, the harddrive did stop working at a very similar time to when I updated. I've sinced used the basic version of 'Disk Drill' on the harddrive and all the files show up perfectly which leads me to believe that perhaps the issue isn't with the harddrive itself but perhaps a compatibility issue.
    I was just wondering whether anyone had any advice or had suffered a similiar issue, preferably in relation to the Samsung S2 harddrive. The partition type is a Windows_FAT_32 and it's a USB hard drive.
    Thanks in advance!

    Because there's a problem with the disk's directory structure; these are often the result of improperly unplugging drives or forcing a computer to shut down. Proceed as instructed, or try using a more powerful utility such as DiskWarrior to repair it.
    (111975)

  • Why won't my external hard drive show up anywhere? Something wrong abt NTFS.

    Why won't my external hard drive show up anywhere? Something wrong abt NTFS. After my OS turn to OS X Lion, this problem occur. I couldn't solve it, anybody?

    It doesn't make sense.
    Anyway, I found the solutions. Download software for solving this problem.
    Here is the link:
    http://www.macupdate.com/app/mac/24481/ntfs-3g

  • Mount external hard drive on boot

    I have a Mac mini run on SL, I want to set it up as a samba server with a external hard drive which formatted in NFS format.
    I tried to write a plist in LaunchDaemons to call a script to mount the hard drive, but it does not work.
    Here is my plist
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>Label</key>
    <string>com.kg.mount</string>
    <key>RunAtLoad</key>
    <true/>
    <key>ProgramArguments</key>
    <array>
    <string>/System/Library/script/com.kg.mount</string>
    </array>
    </dict>
    </plist>
    It get loaded at the start, if I user command 'launchctl list', I can see the service is loaded, but the disk is not mounted. If I run the plist manually after boot, the disk will be mounted.
    Does somebody know how to mount a disk at boot time?
    Thanks

    The OS automatically mounts storage devices when they come online. If that doesn't happen, you need to fix the problem.
    First back up the disk, if you haven't already done that.
    Get rid of the script and the launchd item. Unload it first -- I assume you know how to do that.
    Launch Disk Utility and select the "EX" volume, then run "Repair Disk." If any errors are reported, repeat until there are no more.
    If the disk is now mounted, unmount it. Check the /Volumes directory for any empty subdirectories named "EX", "EX-1", or some such. If present, delete them.
    Unplug the drive, then plug it in again. If it still doesn't mount, plug it into a different port (if it's USB.) If it still doesn't mount, try it on a different Mac.

  • Powerbook G4 10.4.11  won't start from hard drive .  Tried repair, " The underlying task reported failure on exit (-9972).Invalid sibling link,invalid B tree header, invalid map node,invalid record type,the volume needs to be repaired.

    Powerbook G4 10.4.11  won't start from hard drive .  Tried repair, " Invalid sibling link,invalid B tree header, invalid map node,invalid record type,the volume needs to be repaired.Powerbook G4 10.4.11  won't start from hard drive .  Tried repair, " The underlying task reported failure on exit (-9972).Invalid sibling link,invalid B tree header, invalid map node,invalid record type,the volume needs to be repaired.
    The underlying task reported failure on exit (-9972).

    kauribill wrote:
    " The underlying task reported failure on exit (-9972).Invalid sibling link,invalid B tree header, invalid map node,invalid record type,the volume needs to be repaired.
    The underlying task reported failure on exit (-9972).
    This is a directory issue that Disk Utility cannot fix. Although it manifests itself as a software issue sometimes it may be hardware based. See DiskUtility reports "Underlying task reported failure" when repairing avolume http://support.apple.com/kb/TS1901?viewlocale=en_US". You can try using a utility like TechTool Pro, Drive Genius or Disk Warrior to repair and replace the directory. Another option would be to use the Archive and Install feature to reinstall. If the problem returns after correction you may have a failing or failed HDD.
    cornelius

  • My computer it won't mount my external drive

    I restored my computer and after it completed my computer won't mount my external drive, i went to disk utility the disk shows up there but no mounted.
    my computer is OS x Mavericks 10.9.5

    See mount section in 1st linked article.
    Disk Unmount Using Terminal
    Disk Utility – Force Mount Disk

  • I am having some issues getting OS X to mount the hard drive from my old laptop (Windows 7). Is there anything I can do to mount this?

    I am having some issues getting OS X to mount the hard drive from my old laptop (Windows 7). Is there anything I can do to mount this?
    It is not showing on the Desktop or the left colomn of Finder (Set to do both in Finder Prefernces) and is not showing up under the Disk application under Utilities (Sorry can't remember the name off the top of my head!)

    cjz0r wrote:
     ...I'm starting to think it is most likely NTFS, am I looking at needing an Application to read the NTFS partitions on the drive?
    You should be able to read NTFS formatted drives, just not write to them. For that matter, USB Flash drives generally come formatted NTFS for use with PC's and they have to be able to mount on a Mac in order to reformat them for Mac use. The Windows utilities supplied on those Flash drives will be deleted when the drive is reformatted for Mac use so I routinely copy them to the Mac desktop first before reformatting.
    You might look into something like this http://eshop.macsales.com/item/NewerTech/U3NVSPATA/ if the enclosure is an issue. It looks weird but it works.

  • How to Mount a hard drive to MAC BOOK PRO?

    How to Mount a hard drive to MAC BOOK PRO?

    What kind of hard drive?  If it's an external USB hard drive, just plug it in to a USB port.  It will mount automatically.

  • Hi, since i put some mp4 video or DVD files on my external hard drives final cut prox won't recognize my hard drives, i move all the video files and the problem still exist. somebody have the solution

    Hi, since i put some mp4 video or DVD files on my external hard drives final cut prox won't recognize my hard drives, i move all the video files and the problem still exist. somebody have the solution

    Did the back and forth between PC and Mac file systems screw up my files somehow?
    Yes. Unfortunately the move has almost certainly caused the loss of the resource data that would have been (invisibly) attached to those files.
    By adding a specific .mov extension after the fact you will have helped the Mac correctly identify the file type / asscoiations but also significantly you will have physically changed the filename eg from "clip" to "clip.mov". This means that when you come to reconnect the media in FCP , then FCP will be looking for files that no longer exist at the given path eg when specifically looking for our example clip called "clip" of course it won't find it.
    Try this as a test... first remove the ".mov" extension from one or more of the clips, select those clips and press Cmd-Opt-I to open an Info window for the selection. You'll see an "Open with:" popup and in that popup you should choose QuickTime Player (if its a Unix Executable then it will initially list Terminal as the appropriate app, you have to choose Other... then in the open dialog choose Enable > All Applications and then navigate to and select the Quicktime Player app as the appropriate app). After you've done that restart FCP and see if you can now reconnect to those clips.

  • XP Mounting USB Hard Drive

    Hello - I am trying to connect my USB hard drive to Airport Extreme under Windows XP Pro (SP3), but am unable to successfully mount the hard drive. I have gone through all of the instructions via Apple's support documentation without success (I get an error msg stating the disk needs repair). Are there better instructions out there? Do I need to setup other system configs in XP in order to use the disk wirelessly? Thanks!

    Yes, I did install the CD that came with the AEBSn, and have since updated the firmware, etc. I can access the utility, but the only thing that happens is it tells me the disk needs repair.
    The drive is NTFS formatted.
    Thank you for your reply!

  • Computer Suddenly Slow & Won't Recoginze External Hard Drive

    Hey All,
    My computer has been running really slow for the last few weeks. I can't even open Firefox 2.0 without it crashing. It also won't recognize my external 500GB GTech hard drive at all anymore so I can't listen to music or access a lot of my pics. It's connected via Firewire 800.
    I have a 1.54 GHz Power PC G4 and I upgraded the memory to 1.5 GB. The internal hard drive is an 80 gigger with 17G left.
    I ran disk utility on the internal and the below is what I got:
    Checking volume information.
    Volume Header needs minor repair
    The volume Homebase needs to be repaired.
    Error: The underlying task reported failure on exit
    1 HFS volume checked
    Volume needs repair
    * The Repair option is not selectable. What do I do as I don't want to lose anything on my hard drive.
    I'd really like to know how to speed my Powerbook back up and what I can do to have it recognize the external hard drive again? And if I should even be messing around with the disc utility?
    Any and all help is appreciated.
    Thanks!
    Powerbook G4   Mac OS X (10.4.8)  

    In order to repair your internal hard drive, you need to boot from another drive. If you have your OS X DVD's, insert the first one, and reboot holding the C key. From the utilities menu, choose your internal hard drive and the option to repair the disk will be available to you.
    Regarding the slow running, you might want to run the Apple hardware test. Insert the OS X DVD, and reboot holding the option key down. Choose the Apple hardware test, and choose the extended test. Does that identify any issues?
    If you have OnyX, you might want to run the cleaning and maintenance tabs. In additon, under the utilities tab, run the check on the system preferences. OnyX is available from http://www.titanium.free.fr/pgs2/english/onyx.html

  • IPod hard drive crashing problems

    Sorry this is going to be long, as I want to give some background, because I would love to hear opinions about this:
    I had a 6th generation 160g iPod for just over 3 years. I was on vacation using it over a long weekend a week ago. I was listening to music and decided I was going to watch a Simpsons episode that I bought from the iTunes store and was in my "tv shows" section of my iPod.
    As I went to switch to the episode, the iPod froze black. I had been having issues with it randomly resetting itself or pausing during songs, so I thought it might be on its way out. - Sure enough when I did the reset it never booted back up. I tried several times. So when I got back home 2 days later and plugged it into my computer, I was not surprised that it still would not reboot.
    I was bummed. 3 years is not a long time when you spend that much money. I am broke right now and since I am a music fanatic, with a huge music library I was wondering how I was going to carry on. I cannot afford to buy a new iPod.
    My dear father came to my rescue and showed up at my house with a brand new 7th generation 160g iPod on Saturday evening, just as a nice jesture. - I let it sync up, went to bed. Sunday afternoon, I was taking my daughter to the park and I brought my iPod into the car. I noticed that much of the artwork was not popping up as I looked through both coverflow and sampled some songs in playlists. And when I went to try a video again... BAM, the iPod locked up and wouldn't reset, just like the old one.
    I thought... maybe this is a fluke, but how strange that a brand new iPod would crash again on legally purchased iTunes video. So after trying to get it to reset, I plugged it in and again, it would not reset and my computer would not recognize it. The hard-drive just wouldn't boot up.
    Then I thought... even though it wasn't plugged into my computer either time and I had used the old one for a while without syncing, maybe it was something on my computer... so I plugged it into my wife's laptop and it said "found new hardware" and then there was a new message saying something along the lines of "there is a problem with your new hardware and it cannot be installed".
    My dad had gotten the 2 year warranty, but since it wasn't even 24 hours, I went to Best Buy and brought them back the iPod. They checked it out and said "wow, it's rare that out of the box it would crash, but it's crashed" and they gave me a new one. - I asked them about the possibility of something corrupting it, but they said it was unlikely and they since it's a hard-drive, hard-drives crash.
    So on Sunday evening, I did the same routine, I synced my iPod. This time, I tried a little bit of music and a little bit of video without syncing my library and it worked... Then that night I let the whole thing sync.
    This morning (Monday) I took it to work and played some music while I dropped my daughter off, and all of a sudden all the artwork is gone again... I figured I deal with that later, because although it bothered me, at least it was playing song after song with no issue.
    I'm at work now and I was letting a playlist play on shuffle. It was working just find and was so happy to have an iPod back.
    Then I hit the menu button and it takes me back to "coverflow" (the last place I was browsing) and all of a sudden the sound starts buzzing and the whole thing locks up. It's stuck, so I go to reset it...
    And low & behold, it won't reset, like the hard-drive crashed AGAIN. This is the 3rd iPod in a row. I plugged it into my work computer, just to see if it would recognize it. (I downloaded the latest iTunes on there) It won't. Again it just won't reboot.
    Now the first one, I was having hard-drive troubles, and hadn't been synced in a while, so unfortunately I think the product just doesn't last very long.
    But now with 2 new ones, it's making me think that there could be a problem with something in my computer. But I can't imagine what. Everything is either ripped directly into iTunes from a CD, bought from the iTunes store or were WAV files I put into iTunes and converted to aac files. I am a musicians and don't believe in illegally downloading music and don't use torrents. I can't imagine what could corrupt anything I'm syncing.
    I have about 110g of music that I am trying to sync. And then some tv shows, which I don't always sync all of them. Most of them were purchased from iTunes, but I have a few that I took from DVD and converted and put into my iTunes.
    I have called the apple help line, but they want me to call them back when I'm at my computer at home and we can trouble shoot, even though I know they won't be able to help me, because my iPod won't be able to be read.
    I would love to get some opinions and help.
    Thank you,
    Paul.

    Okay, by looking at my previous posting in this forum, it has apparently only been 2 1/2 years since I got my last iPod.

  • Failed to detect hard drive at the first boot

    My new system always failed to detect the hard drive at the first boot, but it's ok if restart it. Not use Raid (disabled). Any help will be greatly appreciated.  ?(
    Yingsheng
    KT3-Ultra-ARU
    AMD XP1900
    GF2MX400
    512 PC2100 Mushkin
    300W Antec PSU  
    Western 40G7200PM
    Buslink DVD-ROM
    Sony CD-RW

    Quote
    Originally posted by Yingsheng
    My new system always failed to detect the hard drive at the first boot, but it's ok if restart it. Not use Raid (disabled). Any help will be greatly appreciated
    That is another classic symptom of a WD hard drive being jumpered as either a master or a slave when there is no other drive on the cable with it.  If the drive is the only drive on the cable, then remove the jumper from the drive.

  • Installed a cloned a 500g solid state hard drive but unable to boot. Can only hear drive spinning quietly, no chime to launch OS. Total darkness. Can anyone help? thanks in advance!

    Installed a cloned 500g solid state hard drive but unable to boot in macbook pro. Can only hear drive spinning quietly, no chime to launch OS. Total darkness. Can anyone help? thanks in advance!

    Hi Retired Engineer,
    Yes, you're right. It is the Seagate Momentus XT and it does not spin. That was just a layman's term for computer illiterate like myself. After hours of inspection & a prayer, I discovered by pulling the 4 GB memory chips out I put in, replacing the 1.5 GB back in for the memory which I upgraded 3 years ago. Chime! It works! So it is the 4 GB memory causing the problem. But why? Does that mean my Macbook Pro does not support with more memory? The fan noise is now gone which I suspect it was caused the other overheating Seagate hard drive & eventually causing the crash. However, the top bar temp indicator shows 174˙F @ 000rpm. Does that also mean the fan on the left is not working? (the right fan on the board works). Do they work simutaneously? Or left fan is just a back up?
    Thanks for your reply & kind gesture.

  • Why won't my external hard drive mount?

    Hi
    I am having problems getting my new iMac to recognise an external hard drive.  It is a 40gb Western Digital hard drive that I copied over photos and music from my old computer (not an Apple) on.  When I plug it in to the USD port it recognises the hard drive but then drops it after about 2 minutes and then it won't recognise it again until I restart the computer at which point it recognises it again for 2 minutes.
    The hard drive work's fine on my Thinkpad and my Dell desktop.
    Can anyone help?
    Thanks.

    It doesn't make sense.
    Anyway, I found the solutions. Download software for solving this problem.
    Here is the link:
    http://www.macupdate.com/app/mac/24481/ntfs-3g

Maybe you are looking for

  • Problem with Excise Duty tax calcualtion in Invoice

    Hi experts, Need your rexpert advise on the below issue. We have MM invoice where by the tax is not calucalted correctly. The Material is subject to excise duty, on the GR the excise invoice is getting generated with Cenvat clering account with corre

  • Registration Unsuccessful error won't go away

    Registration Unsuccessful error message appears every time I open Adobe Acrobat 8 Standard. I recently loaded it onto new computer running Windows 8.1 and successfully registered it. I spoke to tech support and they confirm that it is registered on m

  • Reading infotype 0041 in PCR

    I need to read the date of joining in PCRs. i am maintaining date specification infotype 41. how to get this date from IT 41 in PCR. What operation i need to use.. Or is there any operation which can directly give hiring date of person without mainta

  • Pse 8 editor no longer loads

    Was working fine for 2+ years. Same quad core machine, win7 64bit, 8gb ram. No recent hardware, software, or driver changes. Tried all suggestions I could find in forums, re-set preferences. move Twain, ect... Still no joy. Adobe claims they no longe

  • Tuning concat index but still fail

    I have query : select count(*) as y0_ from t_transaction this_ where this_.USER_ID=:1 and this_.OPTYPE in (:2, :3, :4, :5, :6, :7, :8, :9, :10, :11, :12, :13, :14, :15, :16, :17, :18, :19, :20, :21, :22, :23, :24, :25, :26, :27, :28, :29, :30, :31, :