Find the answer to your Linux question:
Results 1 to 8 of 8
I've got OpenSuse 10.2 set up on a dual boot system with XP. I thought I'd be clever and make an NTFS partition where I could keep files that I ...
  1. #1
    Just Joined!
    Join Date
    Oct 2006
    Posts
    55

    How to write to an NTFS Partition?

    I've got OpenSuse 10.2 set up on a dual boot system with XP. I thought I'd be clever and make an NTFS partition where I could keep files that I used with both OSs like MP3 files and things like that. The problem is that I can't write to the NTFS partition in Linux. I tried going into XP and setting the drive rights to open share but still no luck. As root in Linux I only have read rights and it won't let me change that. Any ideas?

    -Scott

  2. #2
    Linux Engineer oldcpu's Avatar
    Join Date
    Aug 2005
    Location
    Europe
    Posts
    1,142

    Ntfs-3g

    Quote Originally Posted by scewing
    The problem is that I can't write to the NTFS partition in Linux.
    Do a search for NTFS-3G and install it and Fuse, or reformat your share partition to VFAT-32.

  3. #3
    Just Joined!
    Join Date
    Oct 2006
    Posts
    55
    NTFS-3G worked great. Thanks very much for that suggestion. I was able to mount hda1 (my XP partition) with it just fine but when I went to unmount the partition with the MP3s and photos, etc.....(hdb1), something went wrong and it looks as though I deleted hdb1 because its no longer in the /dev directory. Is there any way I can get it back so I can mount it with NTFS-3G?

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    i dont think you have deleted Partition. deletion is not a simple process and one must have 'root' privilege to do that.
    post the output of fdisk -l command.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Linux Guru Juan Pablo's Avatar
    Join Date
    Mar 2006
    Location
    /home/south_america/ecuador/quito
    Posts
    2,064
    Try to look for the partitions again,
    Issue this as root
    Code:
    partprobe
    Put your hand in an oven for a minute and it will be like an hour, sit beside a beautiful woman for an hour and it will be like a minute, that is relativity. --Albert Einstein
    Linux User #425940

    Don't PM me with questions, instead post in the forums

  6. #6
    Just Joined!
    Join Date
    Oct 2006
    Posts
    55
    Well I believe I was logged in as root when I was doing the mounting, one has to be to mount usually. heres the output of fdisk -l:
    Disk /dev/hda: 122.9 GB, 122942324736 bytes
    255 heads, 63 sectors/track, 14946 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/hda1 * 1 5099 40957686 7 HPFS/NTFS
    /dev/hda2 5100 14946 79096027+ f W95 Ext'd (LBA)
    /dev/hda5 5100 5361 2104483+ 82 Linux swap / Solaris
    /dev/hda6 5362 14891 76549693+ 83 Linux

    Disk /dev/hdb: 41.1 GB, 41110142976 bytes
    16 heads, 63 sectors/track, 79656 cylinders
    Units = cylinders of 1008 * 512 = 516096 bytes

    I checked the /dev directory...theres no hdb1 in it.
    Heres the output of partprobe:
    Warning: Unable to open /dev/hdc read-write (Read-only file system). /dev/hdc has been opened read-only.

    By the way, I logged back into XP and the drive doesn't show up there anymore either.

    I'm not concerned about the data on it. I'm ok to reformat it using NTFS. I'm just not sure how to go about it since neither Linux nor XP can find it.

  7. #7
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    its possible to recover that partition but if you are OK with Reformat, open YAST Partition Manager and create/format new partition in /dev/hdb.
    OR boot up XP and type 'diskmgmt.msc' in Dos Command prompt. Disk Management Tool Window will pop up. Create and Format partitions with that.
    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
    Oct 2006
    Posts
    55
    OK Got it...

    I used fdisk in Linux to create another primary partition (hdb1) then formatted it with Fat32 so XP could find it. Booted into XP and formatted it NTFS then went back into Linux and mounted it with NTFS-3G. Whew!

    A long way to go about it maybe (I'm not the most knowledgeable at Linux...still kinda new), but I managed.

    Thanks for the help and suggestions!

    -Scott

    (didnt know about the disk mgt tool in XP...thanks!)

Posting Permissions

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