Jump to content

simple problem in Debian? [solved]


Recommended Posts

Hello all,

I have most of my newly installed debian working however, I cannot find out how to mount my windows drive to get some information off of it from Debian. Below is a copy of my FSTAB

 

# /etc/fstab: static file system information.

#

# <file system> <mount point> <type> <options> <dump> <pass>

proc /proc proc defaults 0 0

/dev/hda6 / ext3 defaults,errors=remount-ro 0 1

/dev/hda5 none swap sw 0 0

/dev/hdb /media/cdrom0 udf,iso9660 user,noauto 0 0

/dev/hdc /media/cdrom1 udf,iso9660 user,noauto 0 0

/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0

~

 

How would I even go about doing this? Is it even possible?

 

Grazie Mille

 

Neocytrix

Link to comment
Share on other sites

First you need to know where the windows partition is and what type of partition it is. A "fdisk -l" command will show you all partitions. Once the partitions are shown, it depends a bit. If you try to access a FAT32 partition, you would type e.g.

 

mount -t vfat /dev/hdX /mnt/

 

for making permanent changes you will have to change the fstab, but for this, we need to know the results of fdisk -l.

Link to comment
Share on other sites

I did the fdisk -l and it returned this:

 

Disk /dev/hda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot	  Start		 End	  Blocks   Id  System
/dev/hda1   *		   1	   11473	92156841	7  HPFS/NTFS
/dev/hda3		   12750	   14592	14803897+   5  Extended
/dev/hda5		   12750	   12879	 1044193+  82  Linux swap / Solaris
/dev/hda6		   12880	   14592	13759641   83  Linux

Link to comment
Share on other sites

Here is a copy of my fstab now:

 

# /etc/fstab: static file system information.

#

# <file system> <mount point> <type> <options> <dump> <pass>

proc /proc proc defaults 0 0

/dev/hda6 / ext3 defaults,errors=remount-ro 0 1

/dev/hda5 none swap sw 0 0

/dev/hdb /media/cdrom0 udf,iso9660 user,noauto 0 0

/dev/hdc /media/cdrom1 udf,iso9660 user,noauto 0 0

/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0

/dev/hda1 /mnt/windows ntfs defaults,ro 0 1

 

When I type:

mount -t ntfs /mnt/windows /dev/hda1

it gives me the following:

mount: special device /mnt/windows does not exist

 

Am I doing something completely wrong?

Link to comment
Share on other sites

You need to swap it around, and if you have the fstab entry, then all you need is:

 

mount /mnt/windows

 

but check that the directory /mnt/windows exists. Else, you use:

 

mount -t ntfs /dev/hda1 /mnt/windows

 

is the correct way if no fstab entry.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...