New problem with SuSE

Discussion in 'Linux, BSD and Other OS's' started by megamaced, Feb 18, 2006.

  1. megamaced

    megamaced Geek Geek Geek!

    Likes Received:
    0
    Trophy Points:
    36
    Okay somehow i've managed to restore my TV in Kaffeine :)

    I am now using Linux has my prime OS. I don't even have Windows installed at the moment! I am very impressed with the multimedia functions in SuSE, so I now have no reason to continue using Windows....

    .... but there's a new problem!:mad: I installed a second hard disk so I could transfer my files back on to the SuSE system hard drive. At first it would not mount, and I could'nt access it at all. I decided to use the YaST partitioner tool to set a mount point of this new drive to /tmp (don't ask :confused: )
    I can now see my drive in 'my computer' and in /temp/home.
    Now that I have transfered all of my files, I want to remove this second hard disk. My problem is I can't unmount it! If I right click the drive in 'my computer' and click 'unmout', it comes up with an error. If I go into YasT partitioner and try and unmount it, it won't work either.

    If I unplugged the second hard disk, SuSE won't boot into KDE. It goes into a terminal instead!

    How should I go about unmounting this drive? Please bare in mind that I don't think I mounted it right in the first place!

    [ot] I've just bought a special edition Linux Format magazine that covers Mandriva 2006! The whole magazine is devoted to Mandriva, and includes useful tips and guides. It also includes 3 CDs to install it! I'm going to install Mandriva on my second computer, so I can see how it compares to SuSE :) [/ot]
     
  2. Addis

    Addis The King

    Likes Received:
    91
    Trophy Points:
    48
    No experience with suse, but in mandriva I'd guess you'd just mount the drive with the commands: mkdir /mnt/samsung60gb(orwhatever) and then mount /dev/hda(number) /mnt/samsung60gb.

    Thats if Mandriva doesn't mount it automatically.
     
  3. rt

    rt Geek Trainee

    Likes Received:
    0
    Trophy Points:
    1
    Try the umount command as root. I think you have to be root for umount to work, so that may be your problem.
     
  4. Anti-Trend

    Anti-Trend Nonconformist Geek

    Likes Received:
    118
    Trophy Points:
    63
    You have to be whoever has ownership over the mounted device, not necessarily root, but usually whomever mounted it in the first place. Automatically mounted devices are owned by root. If it's a device which will be user mounted and unmounted often, you should set it to be user mountable, create a common group like "removable", change the ownership to that group, and add any users which will be removing the device(s) on a regular basis to the 'removable' group. Hope that was clear enough :p
     
  5. megamaced

    megamaced Geek Geek Geek!

    Likes Received:
    0
    Trophy Points:
    36
    So far I've had no luck unmounting this hard drive! :x:

    I've logged in as root, entered the konsole and typed: umount /tmp. The reply is 'this device is busy'!

    I've typed umount /hdb, umount /hdb1, umount /hdb2, but none of those commands seem to work either.

    I've also tried to right click the drive in my computer as root, and my normal username, and clicked 'unmount', but i get another criptic error message!

    HELP! What should I try next?

    [ot] My Linux+ book arrived in the post today :) It comes with a Knoppix live CD to practice with! I shall be a Linux expert in no time :D ....... [/ot]
     
  6. Addis

    Addis The King

    Likes Received:
    91
    Trophy Points:
    48
    I've found that experience and a bit of your own research tends to help more than a book in some areas, not always but I've found that e.g using SQL its almost impossible to learn all the behind the scenes tips and tricks with the book unless you do it yourself your way and experiment aswell.
     
  7. Anti-Trend

    Anti-Trend Nonconformist Geek

    Likes Received:
    118
    Trophy Points:
    63
    The /tmp directory is used almost constantly by Linux -- why are you trying to unmount it? If you want to get rid of it the drive it's on, you will need to remount the temp directory someplace else, likely in your root directory on the HDD you have Linux installed on in the first place. In Mandriva Linux the mcc tool can handle this automatically, but I know of no such convention in Suse. That being the case you will need to change the drive to which the /tmp folder is mapped in your /etc/fstab file. For instance, if your entry for /tmp looked like this:
    Code:
    LABEL=/tmp /dev/hdc1 /tmp ext3 defaults,noexec 1 2
    ...where /dev/hdc1 would equal your secondary HDD, you would want to change it to appear as such:
    Code:
    LABEL=/tmp /dev/hda1 /tmp ext3 defaults,noexec 1 2
    ...assuming /dev/hda1 was your primary HDD where the / partition is mounted. If in doubt as to which HDD to use for the new mapping, look at the entry in fstab for your / partition and see what HDD the rest of the system is mounted to. Once you've accomplished that, you could either umount it with the -l flag (lazy umount, in case of a drive being used it will umount it ASAP) or simply change the fstab (as root of course) and reboot if you're impatient. Remember that the system will likely have problems if it doesn't have a /tmp filesystem, so make sure you don't typo your fstab!
    I doubt Suse mounts drives directly to the root filesystem, so you're probably trying to unmount devices that don't exist in that path. It would most probably be:
    Code:
    umount [b]/dev[/b]/hda1
    ...to unmount HDD hda1. Or, you could target its mount point instead for the same results. For instance, if /dev/hdc2 is mounted to /usr/local, either of the following would unmount it (assuming it wasn't in use):
    Code:
    umount /usr/local/
    [i]-------or-------[/i]
    umount /dev/hdc2
    If you'd like a bit of reading material on the subject, I refer you here.
     
  8. megamaced

    megamaced Geek Geek Geek!

    Likes Received:
    0
    Trophy Points:
    36
    Problem solved! cheers AT :)
     

Share This Page