LinuxQuestions.org
Review your favorite Linux distribution.
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 02-27-2007, 05:57 AM   #1
nardz
Member
 
Registered: Feb 2007
Distribution: Kubuntu
Posts: 60

Rep: Reputation: 15
Dual Boot drive share with kubuntu/win2000


Hi everyone,

I tried posting this on the ubuntu board with litle success, then i discovered this newbies board so i think it'll be more suitable here.

i'm new to the whole kubuntu/linux thing, so you're all going to have to be a little patient with me. i have a few issues/questions, but i'm going try and tackle them one by one, with your help hopefully.

my first issue is as follows. I recently put a new hard drive in my computer that currently had win2000 installed. i left the existing hard drive as is and installed kubunutu on the new hard drive, with the intention on having them both run on a dual boot. This works fine.

The only problem i'm having is that i'm unable to access the win2000 hard drive from kubuntu. the media folder only has my 2 cd/dvd drives and floppy. after reading around abit on these forums i figured out how to unhide hidden files and get into the dev folder. I don't have enough permission to read the hda, hda1, hdb, hdb2, hdb5 subfolders (i was sorta hoping my win2000 drive was hiding somewhere in there...

any help would be appreciated
 
Old 02-27-2007, 08:08 AM   #2
uncle-c
Member
 
Registered: Oct 2006
Location: The Ether
Distribution: Lubuntu 14.04 LTS, Kali
Posts: 297

Rep: Reputation: 30
Read up on the "fdisk" and "mount" commands.
fdisk -l will show you where your win2k partition is and you use this info with the mount command . You will have to be logged in as root or use the "sudo" command to use fdisk/ mount commands.
 
Old 02-27-2007, 09:07 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Hard drives typically get mounted in /mnt and things like CDs, thumb drives, etc. in /media. These are conventions, not rules.

You don't access devices thru /dev, unless using low-level commands.

Building on what was already posted, /etc/fstab gives you all the mounts that are pre-configured (whether mounted automatically or manually). /etc/mtab gives you what is actually mounted.

Example:
You want to mount /dev/hda1 to /mnt/windows
If there is an fstab entry:
mount /mnt/windows
If not:
mount /dev/hda1 /mnt/windows
 
Old 02-27-2007, 09:54 AM   #4
nardz
Member
 
Registered: Feb 2007
Distribution: Kubuntu
Posts: 60

Original Poster
Rep: Reputation: 15
thanks guys. got me going on the right track. eventually figured out how to mount it.

the only problem now is that its not letting me access the /mnt/windows. i thought id try to change the permissions with chmod 755 windows, but i get the following error message: chmod: changing permissions of 'windows/': read-only file system

also once i figure out how to mount it properly, will it automatically remount when i reboot my computer?

Last edited by nardz; 02-27-2007 at 10:18 AM.
 
Old 02-27-2007, 11:00 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
First, I would activate the root account on Ubuntu so you don't have to use sudo all the time:
sudo passwd root
enter user password
enter new root password

Now you can do "su" to become root.

The windows drive might be mounted read-only--if so, you will not be able tuse chmod to change it.

It will mount automatically at re-boot if the fstab entry is set correctly. "man fstab" for details
 
Old 02-27-2007, 11:01 AM   #6
hansalfredche
Member
 
Registered: Jun 2005
Posts: 445

Rep: Reputation: 31
OK, I'm moving here too. So you can access your Windows partition, right? But you probably want to write to it. However, as Windows 2000 is using NTFS as filesystem and until very recently there were no stable NTFS driver for Linux, it only had read support. I never installed it, so you will have trust this manual(it's named NTFS-3G).

To mount it permanently you will need correct entries in /etc/fstab (probably already the case) and then edit /etc/mtab.
 
Old 02-27-2007, 11:01 AM   #7
hansalfredche
Member
 
Registered: Jun 2005
Posts: 445

Rep: Reputation: 31
OK, I'm moving here too. So you can access your Windows partition, right? But you probably want to write to it. However, as Windows 2000 is using NTFS as filesystem and until very recently there were no stable NTFS driver for Linux, it only had read support. I never installed it, so you will have trust this manual(it's named NTFS-3G).

To mount it permanently you will need correct entries in /etc/fstab (probably already the case) and then edit /etc/mtab.
 
Old 02-27-2007, 11:04 AM   #8
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
For shared files, I now use ext2fsd (a Windows driver). Files are all on an EXT3 partition and are easily accessed from both Windows and Linux.
 
Old 02-27-2007, 11:16 AM   #9
hansalfredche
Member
 
Registered: Jun 2005
Posts: 445

Rep: Reputation: 31
@pixellany

Thats just the other way around. It works fine by the way.
 
Old 02-27-2007, 11:18 AM   #10
nardz
Member
 
Registered: Feb 2007
Distribution: Kubuntu
Posts: 60

Original Poster
Rep: Reputation: 15
ive been reading around for the past couple of hours,so i understand i may not be able to write to the windows drive.

that doesnt bother me too much for the time being, i want to at least be able to open it. as it stands i cant open it unless im logged in as root


ive been trying mount -t ntfs -o uid=775, doesnt seem to make a difference though

Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# /dev/hdb1
UUID=d357f776-1683-4581-9b97-b474be2cec91 /               ext3    defaults,errors=remount-ro 0       1
# /dev/hdb5
UUID=23d095e8-ac34-4575-974f-aaab06e45213 none            swap    sw              0       0
/dev/hdd        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/hdc        /media/cdrom1   udf,iso9660 user,noauto     0       0
/dev/           /media/floppy0  auto    rw,user,noauto  0       0
Code:
/dev/hdb1 / ext3 rw,errors=remount-ro 0 0
proc /proc proc rw,noexec,nosuid,nodev 0 0
/sys /sys sysfs rw,noexec,nosuid,nodev 0 0
varrun /var/run tmpfs rw,noexec,nosuid,nodev,mode=0755 0 0
varlock /var/lock tmpfs rw,noexec,nosuid,nodev,mode=1777 0 0
procbususb /proc/bus/usb usbfs rw 0 0
udev /dev tmpfs rw,mode=0755 0 0
devshm /dev/shm tmpfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
lrm /lib/modules/2.6.17-10-generic/volatile tmpfs rw 0 0
/dev/hda1 /mnt/windows ntfs rw,umask=775,uid=775,gid=775 0 0
u can probably see from my mtab that ive tried to mess around with mount options to solve my problem.. but to no avail...

and i really gotta download firefox.. this konqueror is starting to get on my nerves..

Last edited by nardz; 02-27-2007 at 11:30 AM.
 
Old 02-27-2007, 09:18 PM   #11
nardz
Member
 
Registered: Feb 2007
Distribution: Kubuntu
Posts: 60

Original Poster
Rep: Reputation: 15
Ok we can consider this problem solved everyone , finally figured out how to set the right permissions.

If anyone comes across this while trying to figure it out themselves I came across a very helpful resource at http://www.linux-faqs.com/faq/misc/ntfs.php

Now onto my next problem, sharing over the network

http://www.linuxquestions.org/questi...d.php?t=532962
 
  


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
Drive Sharing on a dual boot (kubuntu/win2000) nardz Ubuntu 2 02-27-2007 10:50 AM
Dual Boot SUSE, How do I share each drive? ZingSter SUSE / openSUSE 1 07-25-2005 03:24 PM
system alarm on boot in slackware 10.0 but not win2000(dual boot) Arch Stanton Slackware 3 01-24-2005 11:33 AM
Dual boot share drive WinXP / RH 9.0 johns123 Linux - Newbie 5 03-03-2004 01:22 PM
Grub Dual Boot Mandrake 9.2 and Win2000 Invalid Boot Disk larsenmtl Linux - Newbie 1 02-01-2004 04:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:37 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration