[CentOS] mount exited with exit code 18(SOLVED)

Mon Mar 18 00:56:46 UTC 2013
Mark LaPierre <marklapier at aol.com>

On 03/17/2013 04:17 PM, Clint Dilks wrote:
> Hi
>
> Try looking here
>
> http://wiki.centos.org/TipsAndTricks/NTFS
>
>
> On Mon, Mar 18, 2013 at 9:13 AM, Mark LaPierre <marklapier at aol.com> wrote:
>
>> Hey Y'all,
>>
>> I'm trying to mount a USB drive with an NTFS file system on it.  I need
>> the drive in a win-7 virtual box instance.
>>
>> Error Dialog is:
>>
>> Error mounting: mount exited with exit code 18: Error opening
>> '/dev/sdc1': Read-only file system
>> Failed to mount '/dev/sdc1': Read only file system
>>
>> [root at mushroom /]# ls -l /dev/disk/by-id | grep usb
>> lrwxrwxrwx. 1 root root  9 Mar 17 14:49
>> usb-TOSHIBA_TOSHIBA_USB_DRV_07082714D41C2837-0:0 -> ../../sdc
>> lrwxrwxrwx. 1 root root 10 Mar 17 14:49
>> usb-TOSHIBA_TOSHIBA_USB_DRV_07082714D41C2837-0:0-part1 -> ../../sdc1
>>
>> [root at mushroom /]# ls -l /dev/disk/by-label/ | grep sdc
>> lrwxrwxrwx. 1 root root 10 Mar 17 14:49 FDSADV -> ../../sdc1
>>
>> [root at mushroom /]# ls -l /dev/disk/by-path/ | grep sdc
>> lrwxrwxrwx. 1 root root  9 Mar 17 14:49
>> pci-0000:00:10.4-usb-0:7:1.0-scsi-0:0:0:0 -> ../../sdc
>> lrwxrwxrwx. 1 root root 10 Mar 17 14:49
>> pci-0000:00:10.4-usb-0:7:1.0-scsi-0:0:0:0-part1 -> ../../sdc1
>>
>> [root at mushroom /]# ls -l /dev/disk/by-uuid/ | grep sdc
>> lrwxrwxrwx. 1 root root 10 Mar 17 14:49 6CA0387BA0384E38 -> ../../sdc1
>>
>> [root at mushroom /]# fdisk -l /dev/sdc
>>
>> Disk /dev/sdc: 32.0 GB, 32027705344 bytes
>> 64 heads, 32 sectors/track, 30544 cylinders
>> Units = cylinders of 2048 * 512 = 1048576 bytes
>> Sector size (logical/physical): 512 bytes / 512 bytes
>> I/O size (minimum/optimal): 512 bytes / 512 bytes
>> Disk identifier: 0x05b6fb64
>>
>>      Device Boot      Start         End      Blocks   Id  System
>> /dev/sdc1               1       30544    31277040    7  HPFS/NTFS
>>
>> Any suggestions?
>>
>>
>>

I installed ntfs-3g and ntfsprogs from the epel repo.

I made a mount point at /mnt/Win-7

I added:
/dev/sdc1               /mnt/Win7       ntfs-3g  ro,umask=0222,defaults 0 0

in /etc/fstab

I issued:
mount /dev/sdc1

In /home/mlapier/Shared

ln -s /mnt/Win7 USB1

I was able to access the contents of the drive through the sym link from 
the Win-7 Pro VM.

Live is good.

-- 
     _
    °v°
   /(_)\
    ^ ^  Mark LaPierre
Registered Linux user No #267004
https://linuxcounter.net/
****