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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
08-01-2003, 12:29 AM
|
#1
|
Member
Registered: Jul 2003
Distribution: RedHat 8
Posts: 36
Rep:
|
Mounting Windows Partition. Frustrated!!!
I have written about this problem before, and I was finally
able to get my Windows partition mounted.
I noticed something though, when I booted into Windows
and went to the C: drive there was a folder there named
" .Trash-root ". Why did Linux create this? Is it safe to
delete and is there a way to stop Linux from creating this folder?
Also I used shell commands to create a dir named Windows
so that I could see my Windows drive, and also experimented
with editing my fstab file, but one of my other problems is
that I can not unmount the dir, I get an error saying folder
is busy. I have used various options of the umount command
and still cant get this damned thing unmounted!
Can anyone tell me the "proper" way to mount my windows
partition safely?
If possible I would like an icon to it on my desktop.
Thanks.
|
|
|
08-01-2003, 12:52 AM
|
#2
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Quote:
but one of my other problems is
that I can not unmount the dir, I get an error saying folder
is busy. I have used various options of the umount command
and still cant get this damned thing unmounted!
|
Show us the fstab? :)
Most likely you're in the directory
somewhere (in some other window,
maybe in a console, maybe holding
a file open, ...)
Cheers,
Tink
|
|
|
08-01-2003, 02:34 AM
|
#3
|
Member
Registered: Jul 2003
Distribution: Debian Testing
Posts: 180
Rep:
|
It would be useful to know what distribution of Linux you're using, and what version of Windows you're using. And yeah, if you're unable to mount a drive, you're probably still using it.
|
|
|
08-02-2003, 07:11 PM
|
#4
|
Member
Registered: Jul 2003
Distribution: RedHat 8
Posts: 36
Original Poster
Rep:
|
Sorry I havent posted back, I have been busy at work and
family issues.
I have Redhat 8. 40 gig dirve partitioned into 2 20 gig drives.
Windows 2000 on one and Linux on the other.
I cant access the web because I have a winmodem, and I
havent been able to scrape together the $$$ for a new one.
I created the mount point a few times, but I still have trouble,
such as not being able to unmount it.
I would also like to have an icon on the desktop for my
"C" drive.
I also need to know about the folder Linux adds to the drive
that is named .Trash-root
Thanks guys.
|
|
|
08-02-2003, 07:19 PM
|
#5
|
Member
Registered: Aug 2003
Location: Mesa, AZ
Distribution: Redhat 9
Posts: 45
Rep:
|
http://linux-ntfs.sourceforge.net/info/ntfs.html#4.5
That is the link I used to get it to work. I just fallowed everything on their site, and I got it to work. You have to install the NTFS drivers because RH does not support it I believe.
Anyways, hope you get it to work with that, I am a newbie also, but found that this page told me everything I needed to know on how to mount it.
|
|
|
08-02-2003, 07:28 PM
|
#6
|
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104
Rep:
|
Hi Jsin
To Mount a FAT32 Filesystem on boot-up were All users have Read, Write, Execute access you'll have to create a line in your /etc/fstab file (just substitue in your Partition and Mount point)
/dev/hda1 /mnt/windows vfat defaults,umask=000 0 0
To manually mount a FAT32 filesystem to test initially
mount –t vfat –o rw /dev/hda1 /mnt/windows
To Mount a NTFS Filesystem on boot-up were All users have Read access create a line in /etc/fstab
(just substitue in your Partition and Mount point)
/dev/hda1 /mnt/windows ntfs auto,ro,umask=002 0 0
To manually mount an NTFS filesystem
mount –t ntfs –o ro /dev/hda1 /mnt/windows
( Red Hat currently doesn’t include a NTFS driver because of uncertainties surrounding the legal status of the driver)
So - to READ a NTFS partition, you can either:
Download and install an RPM – or
Compile your kernel
Your best just getting the relevant RPM -
Last edited by Skyline; 08-02-2003 at 07:39 PM.
|
|
|
08-02-2003, 09:48 PM
|
#7
|
Member
Registered: Jul 2003
Distribution: RedHat 8
Posts: 36
Original Poster
Rep:
|
Thanks for the help skyline, I forgot to mention the disk is
fat32.
I still cant figure out why when I use the umount command
it tells me the dir is busy. No matter where I cd to I get this
error.
|
|
|
08-02-2003, 10:40 PM
|
#8
|
Member
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987
Rep:
|
does the drive get mounted at startup? (if it does, get rid of that)
if not, and u just manually mount it, try mounting the drive and then unmounting it (don't actually access the drive) and see if u still have a problem
about the .trash-root, don't worry about it, it just means that you've gone inside your windows fat32 drive and deleted something, that folder is basically a trash bin, so yes u can safely delete it
|
|
|
08-03-2003, 09:28 AM
|
#9
|
Member
Registered: Jul 2003
Distribution: RedHat 8
Posts: 36
Original Poster
Rep:
|
One of the times I experimented with it I did have it set to
auto, then I tried playing around with the fstab and
set it to noauto.
I noticed when I use my user account with the KDE desktop
my floppy and cdrom have icons even when unmounted.
I use Gnome as root, and I was wondering if maybe there
was something keeping Gnome from making an icon on the
desktop when I mounted the folder.
I still cant figure out why I cant unmount it no matter what
dir I am in.
I cant access the internet because of my modem, so I have
to boot back and forth. I'll mount my Windows dir and copy
the fstab and post it, maybe I'll take some screen shots
if that will help.
Oh, and I'll try Skylines advice. Hope it works.
Last edited by jsin; 08-03-2003 at 09:31 AM.
|
|
|
08-03-2003, 10:44 AM
|
#10
|
Member
Registered: Jul 2003
Distribution: RedHat 8
Posts: 36
Original Poster
Rep:
|
This is my fstab after I mounted the "Windows" dir manually.
I have made no changes.
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda5 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
Here is my mtab after I mounted "Windows". Again I have made no changes.
/dev/hda3 / ext3 rw 0 0
none /proc proc rw 0 0
usbdevfs /proc/bus/usb usbdevfs rw 0 0
/dev/hda2 /boot ext3 rw 0 0
none /dev/pts devpts rw,gid=5,mode=620 0 0
none /dev/shm tmpfs rw 0 0
/dev/hda1 /mnt/Windows vfat rw 0 0
/dev/fd0 /mnt/floppy vfat rw,nosuid,nodev 0
Copied and pasted from command.........
[root@localhost root]# umount /dev/hda1 /mnt/Windows
umount: /mnt/Windows: device is busy
umount: /mnt/Windows: device is busy
[root@localhost root]# umount /mnt/Windows
umount: /mnt/Windows: device is busy
[root@localhost root]# umount -a
umount: /mnt/floppy: device is busy
umount: /mnt/Windows: device is busy
umount: /dev/pts: device is busy
umount: /: device is busy
[root@localhost root]#
No matter what I try it is always busy, even though I am not in
that dir.
Strange, I just noticed something. I used the locate command to
try to find a file. When I did, it showed me only items from my
"Windows" dir even though I am in the root dir.
I didnt want to use Skyline's tip because of what my mtab said.
I dont want to add anything into my fstab so I wont screw anything
up more than it is.
When I right click in Gnome I can choose which disk I can mount,
either cdrom or floppy. Is there also a way to have "Windows" in
that list?
|
|
|
08-14-2003, 07:49 AM
|
#11
|
LQ Newbie
Registered: Aug 2003
Location: Bellary,Karnataka,India
Distribution: can't say cause i do my browsing at different shops
Posts: 1
Rep:
|
dear jsin,
I don't know what position i hold in this linux world but i recently loged on to the site.Coming to ur problem.I had the same when i tried to mount a win harddisk. but i figured it out and it worked fine.
This is what i did. i first went to the system section of the startupmenu(KDE) and opened the hardware browser. this is to find out on what position of the /dev/hd??, was my harddisk i was trying to mount was located under where the first ? stands for a character assigned by the os to my harddisk and the second ? stands for the partition number of the hardisk i did similar to that in windows (but only in numbers from 1 2 3....). Now go to any directory and creat a new folder (I preffered the /usr/win123.. ) for each number of harddisk partition u want to mount. Then there are two options either go to the terminal or the run window in startup menu and type the command which is similar in both cases.
mount -t vfat /dev/hdd1 /usr/win 1 (if hardisk is under /dev/hdd and the partition i want to mount is the hdd1)
the above is to mount a vfat file system on the hardisk of given partion number to a given created directory. I have not mounted ntfs but after reading skyline's letter i am sure u can (thanks.......... a lot pal) mount even ntfs . he is given a good explanation of things only u didn't mention that u didnt know where to find the hardisks. for the rest refer his letter for more know how. and to unmount just type umount instead of mount and there u have it walla.good luck hunting win
|
|
|
All times are GMT -5. The time now is 11:40 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|