LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   cant see xp files (https://www.linuxquestions.org/questions/linux-newbie-8/cant-see-xp-files-401200/)

rsuave 01-09-2006 09:57 AM

cant see xp files
 
I have a dual boot system.XP Pro on one drive and Debian on a seperate drive.I have used a couple of linux os's before (mandrake,Suse,Ubuntu) and in each linux os i could see the drive my xp pro was on.I have looked for ages trying to find my other drive in Debian so i can use some of the windows files that are used by both and they are nowhere to be seen.In devices which i thought it would be theres a couple of files: hda, hdb but they have a lock on them.

cuiq 01-09-2006 10:04 AM

Can you post your fstab file?

rsuave 01-09-2006 10:45 AM

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hdb1 / ext3 defaults,errors=remount-ro 0 1
/dev/hdc /media/cdrom0 iso9660 ro,user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0





using fdisk my devices are as follows:

Disk /dev/hda: 40.0 GB, 40060001280 bytes
255 heads, 63 sectors/track, 4870 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 4869 39110211 7 HPFS/NTFS

Disk /dev/hdb: 10.2 GB, 10245537792 bytes
255 heads, 63 sectors/track, 1245 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 1 1245 10000431 83 Linux

pljvaldez 01-09-2006 11:44 AM

Looks like you need to add:

/dev/hda1 /mnt/WinXP ntfs ro,user,defaults 0 0

This will allow you to mount the partition (be sure to mkdir /mount/WinXP) read only. Write support for NTFS is still experimental and not recommended (you can lose data and make your XP partition unbootable).

pixellany 01-09-2006 02:35 PM

Best way is to create a data partition (ideally on a separate drive). Format FAT32 and it is easily accessible from Windows or Linux

rsuave 01-09-2006 05:03 PM

Quote:

Originally Posted by pljvaldez
Looks like you need to add:

/dev/hda1 /mnt/WinXP ntfs ro,user,defaults 0 0

This will allow you to mount the partition (be sure to mkdir /mount/WinXP) read only. Write support for NTFS is still experimental and not recommended (you can lose data and make your XP partition unbootable).


tried that it makes a Xp folder but its empty.

ericfx 01-09-2006 05:24 PM

Using FAT32 will solve some issues. Backup your data and delete Windows. Reinstall Linux and make a new partition as your backup, install a second HDD or RAID array, or just use good ol /home.

cuiq 01-09-2006 05:56 PM

This is my fstab file, the windows drive represents winxp

Code:

# /etc/fstab: static file system information.
#
# <file system> <mount point>  <type>  <options>      <dump>  <pass>
proc            /proc          proc    defaults        0      0
/dev/sda1      /              ext3    defaults,errors=remount-ro 0      1
/dev/sda2        /home                ext3        defaults        0        2
/dev/sda3      none            swap    sw              0      0
/dev/hdc        /media/cdrom0  udf,iso9660        noauto,users,dev,rw  0      0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0      0
#/dev/hdb6        /mnt/debian                ext3        defaults,user        0        0
/dev/hda1        /mnt/windows                ntfs        auto,ro,users,gid=users,uid=1000,umask=0002,nls=utf8        0        0

Now even though I have "auto" I still had to activate the hard drive, which now mounts and loads every time I boot debian. Here is how to activate it.

(In gnome) click - Desktop--->Administration--->Disk
enter your root password then select the hard drive or partition that has windows (this list will be on the left side of the box) on it then click "activate". However make sure the "access path" has (in your case) /mnt/WinXP (mine has /mnt/windows). One more thing, if your file still comes up empty delete it and recreate it.

pljvaldez 01-09-2006 06:22 PM

rsuave, sorry, I should have said that once you have it in your fstab, you still have to mount it. Type mount /mnt/WinXP (you might have to do that as root).

Oh, and it looks like I made a typo. It should have been mkdir /mnt/WinXP in post #6...

rsuave 01-09-2006 06:49 PM

Quote:

Originally Posted by cuiq
This is my fstab file, the windows drive represents winxp

Code:

# /etc/fstab: static file system information.
#
# <file system> <mount point>  <type>  <options>      <dump>  <pass>
proc            /proc          proc    defaults        0      0
/dev/sda1      /              ext3    defaults,errors=remount-ro 0      1
/dev/sda2        /home                ext3        defaults        0        2
/dev/sda3      none            swap    sw              0      0
/dev/hdc        /media/cdrom0  udf,iso9660        noauto,users,dev,rw  0      0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0      0
#/dev/hdb6        /mnt/debian                ext3        defaults,user        0        0
/dev/hda1        /mnt/windows                ntfs        auto,ro,users,gid=users,uid=1000,umask=0002,nls=utf8        0        0

Now even though I have "auto" I still had to activate the hard drive, which now mounts and loads every time I boot debian. Here is how to activate it.

(In gnome) click - Desktop--->Administration--->Disk
enter your root password then select the hard drive or partition that has windows (this list will be on the left side of the box) on it then click "activate". However make sure the "access path" has (in your case) /mnt/WinXP (mine has /mnt/windows). One more thing, if your file still comes up empty delete it and recreate it.


Thanking you very much .I can see my XP files.It worked.now the last bit.cant find administration under desktop.

cuiq 01-09-2006 06:59 PM

Quote:

Thanking you very much .I can see my XP files.It worked.now the last bit.cant find administration under desktop.
If you are using gnome at the top on your panel you should have these three

Applications Places Destop

click Desktop. If you don't see this you may need to add it by right clicking on the panel and clicking "Add to Panel".

Oh...you're welcome.

rsuave 01-09-2006 07:32 PM

Quote:

Originally Posted by cuiq
If you are using gnome at the top on your panel you should have these three

Applications Places Destop

click Desktop. If you don't see this you may need to add it by right clicking on the panel and clicking "Add to Panel".

Oh...you're welcome.


I just have Applications and Actions at the top.then icons for filesystem and terminal.Went to add panel no Desktop just show desktop .

cuiq 01-09-2006 07:38 PM

Before we get into adding this to the panel lets see if we can bring it up.

Open a terminal and log in as root at the prompt type

disks-admin

then press enter. If you have this application it should come up, if not then you'll have to download it through apt-get or synaptic.

rsuave 01-09-2006 07:43 PM

Quote:

Originally Posted by cuiq
Before we get into adding this to the panel lets see if we can bring it up.

Open a terminal and log in as root at the prompt type

disks-admin

then press enter. If you have this application it should come up, if not then you'll have to download it through apt-get or synaptic.

whats the package called?

cuiq 01-09-2006 07:58 PM

I believe it's gnome-applets or gnome-system-tools.


All times are GMT -5. The time now is 03:40 PM.