LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mounting NTFS file system (https://www.linuxquestions.org/questions/linux-newbie-8/mounting-ntfs-file-system-877064/)

ventsyv 04-25-2011 09:30 PM

Mounting NTFS file system
 
I have Debian Squeeze installed. I have 3 different HDDs, one of them is SATA, the other 2 are IDE, on one of which I have the distro installed.

How do I mount the other 2 partitions? I see them in "Places" but when I click on them I get an error message "Unable to Mount <The name of the volume> Can not get volume.fstype.alternative".

I can see both volumes in /dev/ntfs. I tried doing
Code:

su
mount /dev/ntfs/<VolumeName> /mnt/Win-Data (I created the directory previously)
mount -t ntfs
mount -a

the -t and -a do not produce any output. The full "featured" mount complains of an invalid option.

TobiSGD 04-25-2011 09:35 PM

Please post the output of the following command, launched as root:
Code:

fdisk -l
I doubt that your partitions are really under /dev/ntfs/, they should be named /dev/sda1, /dev/sdb1, and so on. The command will show us your partitions.

gentisle 04-25-2011 09:36 PM

Have you tried the ntfs-3g command?

Have you looked at the partitions to make sure there's nothing funny in there?

g

ventsyv 04-25-2011 09:55 PM

fdisk -l does not return anything. I don't have any sda items in my /dev folder. I have an ata one but I was unable to mount it.
Code:

mount /dev/ata /mnt/Win-Data

Also tried

mount /dev/ad0 /mnt/Win-Data - the message is that the operation is not permited.

I haven't tried the ntfs-3g commands. What is that?

I actually did try : mount -t ntfs-3g - no output
mount -t ntfs-3g /dev/ntfs/Data /mnt/Win-Data - no such device.

TobiSGD 04-25-2011 10:00 PM

Debian Squeeze names the drives per default sdX, where X is the drive letter, so with three disks you should have sda, sdb and sdc.
The fdisk command has to be launched as root, or you will get no output.

ventsyv 04-25-2011 10:04 PM

Quote:

Originally Posted by TobiSGD (Post 4336287)
Debian Squeeze names the drives per default sdX, where X is the drive letter, so with three disks you should have sda, sdb and sdc.
The fdisk command has to be launched as root, or you will get no output.

Code:

root@V-Desk:/dev# fdisk -l
root@V-Desk:/dev# ls
acd0        atkbd0      da0      kbdmux0        ptmx            ttyv0  ttyvc    uhid0
acpi        audit            dcons    klog        pts            ttyv1  ttyvd    ums0
ad0        bpf            devctl    kmem        ptyp0            ttyv2  ttyve    urandom
ad0s1        bpf0            devstat  mdctl        random            ttyv3  ttyvf    usb
ad0s2        cd0            dgdb      mem        stderr            ttyv4  ufsid    usbctl
ad0s5        cdrom            fd        msdosfs        stdin            ttyv5  ugen0.1  xconsole
ad1        console    fido      nfslock        stdout            ttyv6  ugen1.1  xpt0
ad1s1        consolectl  full      ntfs        sysmouse    ttyv7  ugen2.1  zero
ad4        ctty            geom.ctl  null        ttyp0            ttyv8  ugen2.2
ad4s1        cuau0            io        pass0        ttyu0            ttyv9  ugen3.1
agpgart  cuau0.init  kbd0      pass1        ttyu0.init  ttyva  ugen4.1
ata        cuau0.lock  kbd1      pci        ttyu0.lock  ttyvb  ugen4.2
root@V-Desk:/dev# cd ntfs
root@V-Desk:/dev/ntfs# ls
Data  DRV6_VOL1

root@V-Desk:/dev/ntfs# fdisk -l DRV6_VOL1
last_lba(): I don't know how to handle files with mode 20640

Disk DRV6_VOL1: 320.1 GB, 320070288384 bytes
255 heads, 63 sectors/track, 38912 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x69205244


TobiSGD 04-25-2011 10:10 PM

I would assume that you have a serious problem with your OS. The fdisk command should at least show the disk with your Debian system.
Sorry, but under these circumstances I don't know how I can help you.

ventsyv 04-25-2011 10:15 PM

This is default install of Debian Squeeze I did 2 days ago. I've barely used it. I downloaded the distro 2 days ago. It's been a big pain in the ass I must say...

Anyways, thanks for the all the help.

gentisle 04-25-2011 10:16 PM

mount /dev/ad0 is something that would be used in FreeBSD (if I'm not mistaken).

You can use
Code:

fdisk -l
(that's a lower case L) which means list -- to find out the names of the partitions.

at the command line type:

Code:

man ntfs-3g

ventsyv 04-25-2011 10:44 PM

I ran the installer again this time supplemented by a mirror. The 3 HDDs are being recognized - one I use for the installation, the other 2 are listed as NFTS, but are selected not to be used. I did not want to risk getting the data wiped out by setting the usage to FAT32 - which doesn't sound right anyways.

TobiSGD 04-25-2011 10:50 PM

The Debian installer shouldn't have any problems with setting drives to NTFS if they are already formatted. May I ask where you did get that installer?

ventsyv 04-25-2011 11:42 PM

Quote:

Originally Posted by TobiSGD (Post 4336313)
The Debian installer shouldn't have any problems with setting drives to NTFS if they are already formatted. May I ask where you did get that installer?

http://cdimage.debian.org/debian-cd/...d-i386/bt-dvd/

TobiSGD 04-26-2011 05:37 AM

You have downloaded the version with the kfreebsd-kernel. This is not a real Linux version, it is more like a version of FreeBSD. It is not an appropriate version for newbies, but rather for experienced Linux and FreeBSD users. Download and install the standard version (i386, not kfreebsd-i386) and you will have much less problems.

savona 04-26-2011 05:53 AM

I never used freebsd and have very little experience with debian, but on fedora/red hat I mount NTFS partitions like so:

Make directory to mount to:

mkdir /media/newdrive

mount -t ntfs-3g /dev/sdd1 /media/newdrive

Of course you need to have the ntfs-3g installed. In fedora its installed by:

yum install ntfs-3g

Hope this helps, if not maybe it will help someone else, or not. :) Good luck!

TobiSGD 04-26-2011 06:15 AM

Quote:

Originally Posted by savona (Post 4336608)
I never used freebsd and have very little experience with debian, but on fedora/red hat I mount NTFS partitions like so:

Make directory to mount to:

mkdir /media/newdrive

mount -t ntfs-3g /dev/sdd1 /media/newdrive

Of course you need to have the ntfs-3g installed. In fedora its installed by:

yum install ntfs-3g

Hope this helps, if not maybe it will help someone else, or not. :) Good luck!

You are right, but as we can see (I have no experience with the BSDs either, something more to learn) this doesn't work.


All times are GMT -5. The time now is 01:07 AM.