Linux forum

General discussion

Ubuntu

by ernsttco / October 20, 2006 11:54 AM PDT

Does anyone know how I can share files between win xp and Ubuntu without creating a seperate home partition. xp is installed on my master hd and ubuntu on my slave.

Discussion is locked
You are posting a reply to: Ubuntu
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: Ubuntu
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
You are probably already doing it.
by Owyn / October 20, 2006 12:09 PM PDT
In reply to: Ubuntu

Start a terminal and execute the following commands.

# Report partitions on hard disk
sudo fdisk -l

# Report mounted disk partitions
mount | grep hd

The lines with # are comments and not needed.
The other lines be copied and pasted into the terminal.

Please copy and paste the results of running the commands into a reply to this message. I can tell you exactly what you have when I see the results.

Collapse -
Ubuntu
by ernsttco / October 20, 2006 12:32 PM PDT

ernsttco@Ebuntu:~$ sudo fdisk -l

Disk /dev/hda: 100.2 GB, 100256292864 bytes
255 heads, 63 sectors/track, 12188 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 12187 97892046 7 HPFS/NTFS

Disk /dev/hdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 4910 39439543+ 7 HPFS/NTFS
/dev/hdb2 4911 9529 37102117+ 83 Linux
/dev/hdb3 9530 9729 1606500 5 Extended
/dev/hdb5 9530 9729 1606468+ 82 Linux swap / Solaris


ernsttco@Ebuntu:~$ mount | grep hd
/dev/hdb2 on / type ext3 (rw,errors=remount-ro)
/dev/hdc on /media/cdrom0 type iso9660 (ro,noexec,nosuid,nodev,user=ernsttco)

Collapse -
Ok.
by Owyn / October 20, 2006 12:57 PM PDT
In reply to: Ubuntu

hda1 is ntfs. This is your Windows C: drive.

hdb1 is ntfs. Probably your E: drive.

hdb2 is ext3 and is mounted as your / file system.

hdb5 is swap and is mounted as your Linux swap.

Ubuntu 6.06 (Dapper Drake) normally creates /media with /media/drive folders. You should have

/media/hda1
/media/hdb1

The mount command is used to mount a device to your file system.

http://www.die.net/doc/linux/man/man8/mount.8.html

So, the command

sudo mount -t ntfs /dev/hda1 /media/hda1

should make your C: drive available to Linux. You can confirm the results by repeating the previous mount report command.

mount | grep hd

Let me know how it works out.

Collapse -
One more thing
by Owyn / October 20, 2006 1:01 PM PDT
In reply to: Ubuntu

Could you report the results of:

cat /etc/fstab

Collapse -
Ubuntu
by ernsttco / October 20, 2006 1:14 PM PDT
In reply to: One more thing

ernsttco@Ebuntu:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hdb2 / ext3 defaults,errors=remount-ro 0 1
/dev/hdb5 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0

Collapse -
Some references
by Owyn / October 20, 2006 2:15 PM PDT
In reply to: Ubuntu

The following links will give you more background about using Windows drives (partitions) in Ubuntu.

https://help.ubuntu.com/community/MountingWindowsPartitions?action=show&redirect=NTFSReadWrite

http://ubuntuguide.org/wiki/Dapper#Windows

Note that ntfs partitions are by default read only to Linux. There is a read-write ntfs driver available as an optional component (covered in above links). It is normally reliable but it still classed as experimental, i.e. not without risk. A FAT partition is safe to use read-write between Windows and Linux.

/etc/fstab needs to be updated to mount your Windows drives on boot. You can do this manually or you can use the System -> Administration -> Disks tool to do the changes for you. When the tool starts:

- Select the hard disk, then select the Partitions tab.
- Select the partition to be mounted from the Partition List
- Click Change and browse to the mount point (eg. /media/hda1 for hda1)
- Click OK to apply the changes.

Popular Forums

icon
Computer Newbies 10,686 discussions
icon
Computer Help 54,365 discussions
icon
Laptops 21,181 discussions
icon
Networking & Wireless 16,313 discussions
icon
Phones 17,137 discussions
icon
Security 31,287 discussions
icon
TVs & Home Theaters 22,101 discussions
icon
Windows 7 8,164 discussions
icon
Windows 10 2,657 discussions

FALL TV PREMIERES

Your favorite shows are back!

Don’t miss your dramas, sitcoms and reality shows. Find out when and where they’re airing!