Find the answer to your Linux question:
Results 1 to 8 of 8
I have dual-boot XP/Karmic I have an external HDD for backup. One partition is NTFS for the XP stuff. The second partition is ext4. I was practicing with the SystemRestoreCD, ...
  1. #1
    Just Joined!
    Join Date
    Dec 2009
    Location
    Highlands
    Posts
    37

    [SOLVED] I thought root could do anything :)

    I have dual-boot XP/Karmic

    I have an external HDD for backup. One partition is NTFS for the XP stuff. The second partition is ext4.

    I was practicing with the SystemRestoreCD, which provides a Linux root console.

    I can create and delete directories on the ext4 partition, but not on the NTFS partition. The error message says "read-only file system".

    The permissions on the NTFS partion are:

    rwx --- --- myName myName

    I tried to use chmod and chown to change permissions and owner.

    I assumed that as root, I could do anything.

    How can I access the NTFS partition, and do anything that I need to do?

    BTW: All my current XP stuff on the HDD was backed up from within XP, using standard software (Cobian Backup), and normal user privileges. But I want to practice for when my XP OS is damaged.
    .

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    you have to mount ntfs partition with option umask=0 in order to be able to write to it

  3. #3
    Just Joined!
    Join Date
    Dec 2009
    Location
    Highlands
    Posts
    37
    Thanks for the response

    Quote Originally Posted by coopstah13 View Post
    you have to mount ntfs partition with option umask=0 in order to be able to write to it
    I tried:

    Code:
    mount -t ntfs -rw /dev/sdb1   /mnt/freecom
    Notice that in all cases, if I type "mount", I always get the message:

    Code:
    ... type ntfs (rw)
    .

  4. #4
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    2,941
    You should use the ntfs-3g driver for ntfs read/write. Unmount the partition and try using ntfs-3g instead.

  5. #5
    Just Joined!
    Join Date
    Dec 2009
    Location
    Highlands
    Posts
    37
    Quote Originally Posted by Jonathan183 View Post
    Unmount the partition and try using ntfs-3g instead.
    Thanks for the suggestion

    How do I use it?
    .

  6. #6
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    1,946
    Use Synaptic to check to see if ntfs-3g is installed. If it is, you just need to use the mount command:

    mount -t ntfs-3g /dev/sdb1 /mnt/freecom

    To make it permanent, put an entry in /etc/fstab

  7. #7
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Don't forget to add umask=0 to enable read/write access for all users.
    Code:
    mount -t ntfs-3g /dev/partition  /mount_point  -o defaults,umask=0
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  8. #8
    Just Joined!
    Join Date
    Dec 2009
    Location
    Highlands
    Posts
    37
    Thanks for all the suggestions. Everything worked great

    After gaining write access to the HDD, I used fsarchiver to back up the XP Windows partition.

    I then tested the backup by deleting every file on the partition. (I've always wanted to try that )

    The restore worked perfectly. (No GRUB problems.)

    Thanks again.
    .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...