LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-22-2009, 11:58 PM   #1
whho
Member
 
Registered: Feb 2009
Posts: 38

Rep: Reputation: 16
Writing to NTFS partition within DSL


Hello,

I want to write on my NTFS partition within my DSL. I have mounted the partition read-write, as follows,

Code:
/dev/root on / type ext2 (rw)
/dev/scd0 on /cdrom type iso9660 (ro)
/dev/cloop on /KNOPPIX type iso9660 (ro)
/ramdisk on /ramdisk type tmpfs (rw,size=201552k,size=196912k)
/proc/bus/usb on /proc/bus/usb type usbdevfs (rw,devmode=0666)
unionfs on /KNOPPIX/bin type unionfs (rw,dirs=/ramdisk/bin=rw:/bin=ro)
unionfs on /dev type unionfs (rw,dirs=/ramdisk/dev=rw:/dev=ro)
unionfs on /etc type unionfs (rw,dirs=/ramdisk/etc=rw:/etc=rw)
unionfs on /KNOPPIX/lib type unionfs (rw,dirs=/ramdisk/lib=rw:/lib=ro)
unionfs on /KNOPPIX/sbin type unionfs (rw,dirs=/ramdisk/sbin=rw:/sbin=ro)
unionfs on /KNOPPIX/usr type unionfs (rw,dirs=/ramdisk/usr=rw:/usr=ro)
unionfs on /ramdisk/var type unionfs (rw,dirs=/ramdisk/var=rw)
/dev/hda5 on /mnt/hda5 type ntfs (rw)
However, it gives error messages when I try to write on it:


Code:
[/mnt/hda5]# ls >a
bash: a: Read-only file system
dmesg gives:

Code:
<6>apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16)
<5>apm: overridden by ACPI.
<4>i8253 count too high! resetting..
<4>i8253 count too high! resetting..
<4>i8253 count too high! resetting..
<4>i8253 count too high! resetting..
<4>i8253 count too high! resetting..
<4>i8253 count too high! resetting..
<4>i8253 count too high! resetting..
<4>i8253 count too high! resetting..
<6>eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
<6>eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
<4>end_request: I/O error, dev 02:00 (floppy), sector 0
<6>cs: cb_free(bus 1)
<6>cs: cb_alloc(bus 1): vendor 0x104c, device 0x9066
<4>PCI: Enabling device 01:00.0 (0000 -> 0002)
<4>end_request: I/O error, dev 02:00 (floppy), sector 0
<4>end_request: I/O error, dev 02:00 (floppy), sector 0
<3>NTFS: Warning! NTFS volume version is Win2k+: Mounting read-only
I am able to write to some other FAT partitions but not NTFS. What's wrong? Do I have to download some extra package so as to able to write to NTFS.

Can somebody please help?

Thanks!

whho
 
Old 07-24-2009, 07:52 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
ntfs can only read NTFS disks. Writes will corrupt the NTFS filesystem. But the more recent ntfs-3g can read & write.
So you need something like this in /etc/fstab
Code:
/dev/hda5       /mnt/win        ntfs-3g    defaults
 
Old 07-26-2009, 04:11 AM   #3
whho
Member
 
Registered: Feb 2009
Posts: 38

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by tredegar View Post
ntfs can only read NTFS disks. Writes will corrupt the NTFS filesystem. But the more recent ntfs-3g can read & write.
So you need something like this in /etc/fstab
Code:
/dev/hda5       /mnt/win        ntfs-3g    defaults


Thanks for your help. I actually used Knoppix and I could mount the partition read-write. The type was "fuseblk" as it shows from the mount command

Thanks again!

whho
 
Old 07-26-2009, 04:20 AM   #4
karamarisan
Member
 
Registered: Jul 2009
Location: Illinois, US
Distribution: Fedora 11
Posts: 374

Rep: Reputation: 55
Quote:
Originally Posted by whho View Post
The type was "fuseblk" as it shows from the mount command
Just FYI, this is correct, and Knoppix is using the same ntfs-3g recommended above. fuseblk refers to FUSE, or Filesystems in User Space (SpacE?), a platform for writing filesystem code that runs outside the kernel. ntfs is one of the filesystems you are likely to come across supported in this way (through the ntfs-3g package); two others are sshfs (which provides mountable filesystem access over sftp) and zfs (an extremely good filesystem that, for unfortunate reasons of the licensing variety, cannot be included in the Linux kernel).
 
Old 07-26-2009, 11:40 PM   #5
whho
Member
 
Registered: Feb 2009
Posts: 38

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by karamarisan View Post
Just FYI, this is correct, and Knoppix is using the same ntfs-3g recommended above. fuseblk refers to FUSE, or Filesystems in User Space (SpacE?), a platform for writing filesystem code that runs outside the kernel. ntfs is one of the filesystems you are likely to come across supported in this way (through the ntfs-3g package); two others are sshfs (which provides mountable filesystem access over sftp) and zfs (an extremely good filesystem that, for unfortunate reasons of the licensing variety, cannot be included in the Linux kernel).
Thank you very much for your info. Let me try in DSL to see if I can mount NTFS using ntfs-3g directly....

Thanks again!

whho
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
writing to ntfs partition overpencil Linux - Software 1 01-10-2008 09:35 PM
writing on NTFS partition StefanP Linux - Newbie 1 05-03-2007 12:35 PM
Writing to NTFS partition Xios Linux - General 8 02-06-2005 10:25 PM
writing ntfs partition Niflheim Linux - Newbie 6 01-25-2005 01:01 PM
Writing to an NTFS partition Inexactitude Linux - Newbie 3 10-12-2003 10:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:53 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