LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Dual Boot drive share with kubuntu/win2000 (https://www.linuxquestions.org/questions/linux-newbie-8/dual-boot-drive-share-with-kubuntu-win2000-532847/)

nardz 02-27-2007 04:57 AM

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 :)

uncle-c 02-27-2007 07:08 AM

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.

pixellany 02-27-2007 08:07 AM

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

nardz 02-27-2007 08:54 AM

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?

pixellany 02-27-2007 10:00 AM

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

hansalfredche 02-27-2007 10:01 AM

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.

hansalfredche 02-27-2007 10:01 AM

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.

pixellany 02-27-2007 10:04 AM

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.

hansalfredche 02-27-2007 10:16 AM

@pixellany

Thats just the other way around. It works fine by the way.

nardz 02-27-2007 10:18 AM

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..

nardz 02-27-2007 08:18 PM

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


All times are GMT -5. The time now is 09:16 PM.