LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-08-2005, 02:43 AM   #1
davholla
Member
 
Registered: Jun 2003
Location: London
Distribution: Linux Mint 13 Maya
Posts: 729

Rep: Reputation: 32
Mount windows drive


I have got my PC partitioned between Win XP and Knoppix 3.9. How can I see the windows drive whilst using Linux ?
 
Old 09-08-2005, 02:53 AM   #2
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
can you post the results of those two commands:
Code:
/sbin/fdisk -l
(thats a small L not a 1)
Code:
cat /etc/fstab
 
Old 09-08-2005, 03:33 AM   #3
SkyEye
Member
 
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441

Rep: Reputation: 40
You can list the partitions with the above. Then you might want to mount the Windows partition manually.

Knoppix usually mount Windows partitions read-only. But if this is not the case you can always mount them.

For the following I assume that your Windows FAT partition is /dev/hda6 (hd - Hard disk, a - 1st hard disk, 6 - sixth partition). If it's NTFS and if your Knoppix doesn't support NTFS things will get a little more complex.

First, create a directory to mount the Windows partition into (or you can use an existing unused one)
Ex:
Code:
mkdir ~/winp
This will create a directory called 'winp' in your home directory.

Then using the following you can mount the Windows partition (/dev/hda5)
Code:
mount /dev/hda6 ~/winp/
or (if it asks for file system type)
Code:
mount -t vfat /dev/hda6 ~/winp/
For options for mounting (eg: read-only, real-time writing) refer the man pages.

After that you can browse you Windows partition at 'winp' directory in your home directory.

Last edited by SkyEye; 09-08-2005 at 03:38 AM.
 
Old 09-08-2005, 03:57 AM   #4
davholla
Member
 
Registered: Jun 2003
Location: London
Distribution: Linux Mint 13 Maya
Posts: 729

Original Poster
Rep: Reputation: 32
Quote:
Originally posted by perfect_circle
can you post the results of those two commands:
Code:
/sbin/fdisk -l
(thats a small L not a 1)
Code:
cat /etc/fstab
Code:
/sbin/fdisk -l

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

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1        2433    19543041    7  HPFS/NTFS
/dev/hda2            2434        4440    16121227+  83  Linux
/dev/hda3            4441        4473      265072+   5  Extended
/dev/hda4   *        4474        4788     2530237+  1c  Hidden W95 FAT32 (LBA)
/dev/hda5            4441        4473      265041   82  Linux swap / Solaris
 
Old 09-08-2005, 03:59 AM   #5
davholla
Member
 
Registered: Jun 2003
Location: London
Distribution: Linux Mint 13 Maya
Posts: 729

Original Poster
Rep: Reputation: 32
Code:
cat /etc/fstab
# /etc/fstab: filesystem table.
#
# filesystem  mountpoint  type  options  dump  pass
/dev/hda2  /  reiserfs  defaults  0  1

proc  /proc  proc  defaults  0  0
/dev/fd0  /floppy  vfat  defaults,user,noauto,showexec,umask=022  0  0
usbfs  /proc/bus/usb  usbfs  devmode=0666  0  0
sysfs  /sys  sysfs  defaults  0  0
tmpfs  /dev/shm  tmpfs defaults  0  0
/dev/cdrom /cdrom  iso9660  defaults,ro,users,noexec,noauto  0  0
/dev/cdrom1 /cdrom1  iso9660  defaults,ro,users,noexec,noauto  0  0
/dev/dvd /dvd  iso9660  defaults,ro,users,noexec,noauto  0  0
/dev/cdrom1 /mnt/auto/cdrom1  auto   users,noauto,exec,ro 0 0
# Added by KNOPPIX
/dev/hda1 /mnt/hda1 ntfs noauto,users,exec,ro,umask=000 0 0
# Added by KNOPPIX
/dev/hda4 /mnt/hda4 vfat noauto,users,exec,umask=000 0 0
# Added by KNOPPIX
/dev/hda5 none swap defaults 0 0
 
Old 09-08-2005, 04:09 AM   #6
SkyEye
Member
 
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441

Rep: Reputation: 40
Your partitions should be already mounted according to your following posting

# Added by KNOPPIX
/dev/hda1 /mnt/hda1 ntfs noauto,users,exec,ro,umask=000 0 0
# Added by KNOPPIX
/dev/hda4 /mnt/hda4 vfat noauto,users,exec,umask=000 0 0


Check your /mnt/hda1 and /mnt/hda4 directories.

(NOTE)
Sorry, I was in a hurry that I didn't see the noauto option. Following by perfect_circle should work.

Last edited by SkyEye; 09-08-2005 at 05:07 AM.
 
Old 09-08-2005, 04:27 AM   #7
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
No, there is a noauto option in the entry, so the partition is not automatically mounted when booting.
try
Code:
mount /mnt/hda1
to mount it and then browse to /mnt/hda1.
to make it mount automatically when booting remove the noauto option
 
Old 09-08-2005, 04:30 AM   #8
davholla
Member
 
Registered: Jun 2003
Location: London
Distribution: Linux Mint 13 Maya
Posts: 729

Original Poster
Rep: Reputation: 32
I can not see anything in them, if I cd /mnt/hdx (x-1 or4) and do ls I get no results.
I can see any files there.
 
Old 09-09-2005, 02:39 AM   #9
davholla
Member
 
Registered: Jun 2003
Location: London
Distribution: Linux Mint 13 Maya
Posts: 729

Original Poster
Rep: Reputation: 32
Quote:
Originally posted by perfect_circle
No, there is a noauto option in the entry, so the partition is not automatically mounted when booting.
try
Code:
mount /mnt/hda1
to mount it and then browse to /mnt/hda1.
to make it mount automatically when booting remove the noauto option
that works thanks a lot !

I will try the removing noauto option later.
 
Old 02-28-2007, 10:53 AM   #10
gizza23
Member
 
Registered: Jun 2005
Location: Chicago, IL, USA
Distribution: Fedora Core, CentOS
Posts: 188

Rep: Reputation: 31
Talking

Great work guys. Found this thread and avoided starting my own.
 
Old 06-16-2008, 08:57 AM   #11
geoffrey
LQ Newbie
 
Registered: Jun 2008
Posts: 2

Rep: Reputation: 0
And how about mounting a disk from a remote windows server?
Do you guys know this too?
 
Old 06-16-2008, 12:46 PM   #12
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Use Samba.
 
Old 06-17-2008, 06:29 AM   #13
geoffrey
LQ Newbie
 
Registered: Jun 2008
Posts: 2

Rep: Reputation: 0
samba is for mounting a Linux Disk share for availability in windows. but i want it other way around. from linux to windows share.
Or is there also samba "for windows" package?
 
Old 06-17-2008, 07:01 AM   #14
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Do you want to mount a Windows share under Linux, or something else? If the former, then you can use smbmount, which is part of Samba.
 
Old 01-01-2010, 07:14 PM   #15
pdk_
LQ Newbie
 
Registered: Jan 2010
Posts: 1

Rep: Reputation: 0
Knoppix to recover windows vista files

Hello ,

Because of virus, my windows vista notebook is not booting. So i am using the Knoppix cd to boot, and i am very new to this.

Now i donot know , how to access the windows files.

I also donot know, where my windows files are located.

when i type
/sbin/fdisk -l

/dev/sda1 * 1 17960 144263668+ 7 HPFS/NTFS
/dev/sda2 17961 19457 12024652+ 7 HPFS/NTFS

How do i findout the partition for windows and access my files..?

Any help is very much appreciated..
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I mount a windows drive loganwva Linux - Networking 17 01-11-2010 12:47 PM
mount: unknown filesystem type 'ntfs' when trying to mount windows drive... DiZASTiX Linux - Hardware 12 09-28-2008 07:29 PM
samba-cant mount windows drive spideywebsling Linux - Networking 2 07-20-2004 03:14 PM
mount to a windows drive jmarsh Linux - Networking 3 10-28-2003 10:49 AM
How do you mount a Windows drive? GeneWeber Linux - Networking 3 10-05-2003 08:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:17 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
Open Source Consulting | Domain Registration