LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-29-2007, 01:32 PM   #1
JAlexBrown
LQ Newbie
 
Registered: Sep 2007
Posts: 7

Rep: Reputation: 0
Mounting/Unmounting Issues


I just installed Kubuntu on a dedicated hard drive, and I went to mount my Windows partition via modifying fstab and using mount from the konsole. I did this, and it mounted my Windows partition, but now it won't let me unmount my Windows partition. I heard that shutting down Linux without unmounting the Windows partition could mess up the Windows partition. If this is true, how can I unmount my Windows partiton? Also, when I go to browse the hard drive, it says I do not have permission. How can I browse the mounted hard drive?

Any help is appreciated...
 
Old 09-29-2007, 02:24 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,750

Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by JAlexBrown View Post
I just installed Kubuntu on a dedicated hard drive, and I went to mount my Windows partition via modifying fstab and using mount from the konsole. I did this, and it mounted my Windows partition, but now it won't let me unmount my Windows partition. I heard that shutting down Linux without unmounting the Windows partition could mess up the Windows partition. If this is true, how can I unmount my Windows partiton? Also, when I go to browse the hard drive, it says I do not have permission. How can I browse the mounted hard drive?

Any help is appreciated...
Whether you can unmount something mounted in fstab is an option in your fstab entry. Could you post your /etc/fstab?

During normal shutdown all partitions are unmounted. You only have to worry about corrupt partitions when you crash without a normal shutdown.


"Also, when I go to browse the hard drive, it says I do not have permission. How can I browse the mounted hard drive?"

Change the permissions in /etc/fstab or change the permissions on the mount point of the partition in question.

----------------
Steve Stites
 
Old 09-29-2007, 02:50 PM   #3
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 62
It can depend if you have an open gui window or terminal where the mounted partition is it may not unmount. It may say busy or so. You can use this command to see who is still using the mount point. lsof is the command. I forget the exact options to use. Haven't the time to search or the internet for the command. Someone may know it off the top of their head or searched it out.

Brian
 
Old 09-29-2007, 11:21 PM   #4
JAlexBrown
LQ Newbie
 
Registered: Sep 2007
Posts: 7

Original Poster
Rep: Reputation: 0
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/hdb1
UUID=5e037a87-ffd0-4930-a673-8879d2a4ff22 / ext3 defaults,errors=remount-ro 0 1
# /dev/hdb5
UUID=fab924d2-fbc7-4a69-a738-69985637f44e none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0

/dev/hda1 /mnt/hda1 ntfs sw 0 0

This is my fstab. Where is the permission? The last line (/dev/hda1) is my Windows partition.

Also, thank you. I'm glad to hear my Windows won't corrupt if I shutdown.
 
Old 09-30-2007, 04:40 AM   #5
Samotnik
Member
 
Registered: Jun 2006
Location: Belarus
Distribution: Debian GNU/Linux testing/unstable
Posts: 471

Rep: Reputation: 40
Read man mount. Pay attention on user/users options.
 
Old 09-30-2007, 10:05 AM   #6
zamuro
LQ Newbie
 
Registered: Sep 2007
Posts: 9

Rep: Reputation: 0
ntfs? That explains it all... Well, I guess you can use ntfs-3g to manage the NTFS partition. And I suscribe to prior comment about reading man mount, specially the user section.
 
Old 09-30-2007, 10:54 AM   #7
JAlexBrown
LQ Newbie
 
Registered: Sep 2007
Posts: 7

Original Poster
Rep: Reputation: 0
I've got it to let me browse my NTFS Windows partition by changing the last line to
/dev/hda1 /mnt/hda1 ntfs nls=utf8,umask=0222 0 0
. Now I can browse my windows partition without being in root. I can also unmount my Windows partition using sudo umount /mnt/hda1, so I suppose all my questions have now been answered.

On a different note (mainly since I'm too lazy to create a new thread)...

I'm totally new to Linux, and it's overwhelming. All these packages and libraries and stuff...I don't understand. Every time I go to install any program I get a long list of dependencies it says I don't have. Where can I get these dependencies so I can install my programs. Surely I don't have to download every single dependency manually. Can someone help me with this, because I feel overwhelmed, and I'm afraid I'm installing something either that I don't need and it's wasting hard drive space or I'm installing something the wrong way.
 
Old 09-30-2007, 11:34 AM   #8
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
When you apt-get install <software> it looks after all the dependencies for you. Why worry about them?
 
Old 09-30-2007, 01:15 PM   #9
JAlexBrown
LQ Newbie
 
Registered: Sep 2007
Posts: 7

Original Poster
Rep: Reputation: 0
When I try apt-get install <program> I get an error saying "E: Couldn't find package". What does this mean? Also, does the apt-get install <program> automatically install any libraries needed to install the program?
 
Old 09-30-2007, 01:24 PM   #10
JAlexBrown
LQ Newbie
 
Registered: Sep 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Let me give an example. I'm trying to install gimp_3.2.17-1_i386.deb. I type into the konsole "apt-get install gimp_3.2.17-1_i386.deb". I get a the package not found error. I tried just typing "apt-get install gimp" and it completed without error, but I still cannot install the gimp_3.2.17-1_i386.deb file. Maybe I'm not installing things right. Do you right-click on the .deb file and click install package? If this is wrong, someone let me know. I'm very confused.

PS: Sorry for being such a noob, but this is my first time with Linux.
 
Old 09-30-2007, 02:17 PM   #11
AAnarchYY
Member
 
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Debian 8
Posts: 419

Rep: Reputation: 30
if you did a apt-get install gimp and it completed succesfully then the deb file is installed and should be in /var/cache/apt/archives/

Last edited by AAnarchYY; 09-30-2007 at 02:19 PM.
 
Old 10-02-2007, 10:52 PM   #12
JAlexBrown
LQ Newbie
 
Registered: Sep 2007
Posts: 7

Original Poster
Rep: Reputation: 0
I found the file gimp_2.2.19-1ubuntu4.3_i386.deb file in the /var/cache/apt/archives folder, and I clicked Install Package. It then goes through and the Konsole says "Setting up gimp" and then "Press <enter> to exit". Is it installed, and if so, where, because I can't seem to find it anywhere.
 
Old 10-02-2007, 11:04 PM   #13
AAnarchYY
Member
 
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Debian 8
Posts: 419

Rep: Reputation: 30
try typing "whereis gimp" in a terminal
 
Old 10-03-2007, 08:47 AM   #14
JAlexBrown
LQ Newbie
 
Registered: Sep 2007
Posts: 7

Original Poster
Rep: Reputation: 0
I've got everything figured out now, thank you. Well, one more question. I've finally figured out it's easier to use the Add/Remove Programs link (Adept). When you remove programs, does it remove ALL files associated with that program, or just the actually installation files? In other words, if I go into Adept and remove, say, OpenArena, is there any files that I need to go in and manually delete?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Mounting and Unmounting issues kronuskaos Linux - Hardware 14 11-24-2005 04:32 AM
mounting & unmounting? 777JR Slackware 3 02-08-2004 04:26 AM
Mounting and unmounting in Linux... Tommi Linux - Newbie 3 07-05-2003 09:02 PM
Mounting and unmounting in redhat. Tommi Linux - General 3 04-22-2003 08:08 AM
Mounting and unmounting Hidden Dragon Linux - General 20 09-01-2002 08:52 PM


All times are GMT -5. The time now is 09:02 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration