LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-08-2006, 04:57 PM   #1
ijin
LQ Newbie
 
Registered: Sep 2006
Posts: 5

Rep: Reputation: 0
HD problems...


can someone help me with this little problem?

i have a maxtor 200GB external hard drive connected to my pc

with my root user i can read the files that are there
but if i try to change them or delete them
a error message pops up that says im not the owner of the disk.
i dont understand what the problem could be.
it worked great in windows.
but now that im using mandriva linux 2006 powerpack+
i don`t have any control over the HD..

ps. with my other users i can`t do anything. not even view the files.
and i don`t whant to lose the files that i allready have there..
 
Old 09-08-2006, 05:01 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
What type of partition is on the external disk? If it is NTFS then Linux will usually mount it read-only by default. Note that there is a good reason for that. If you force Linux to mount an NTFS partition as read-write and if you then do a lot of file creates or file deletes on an NTFS partition from Linux you can trash the NTFS file system.

Code:
mount -t ntfs -o rw ...

Last edited by stress_junkie; 09-08-2006 at 05:03 PM.
 
Old 09-08-2006, 05:05 PM   #3
ijin
LQ Newbie
 
Registered: Sep 2006
Posts: 5

Original Poster
Rep: Reputation: 0
yes it is a NTFS partition on the disk...
do you know how i could fix this without loosing any of the files???
because i don`t have enough disk space on internal disk to store all my files...
 
Old 09-08-2006, 05:09 PM   #4
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
You can only reliably use an NTFS partition in read-only mode in Linux. The NTFS file system driver is being actively developed but the web page says that it still needs more work.

If the external disk is empty then you can reformat the partition and create a file system that Linux can use, such as ext2, Reiserfs, XFS, or something like that. Some Linux distributions such as Novell SuSE come with GUI tools that make this easy. On the other hand it is also easy to do by hand, especially if you aleady know how to do it in MS-DOS or in a Windows command line window. Here are the basic steps.

1) Make sure that the partition(s) on the disk is/are not mounted anywhere.
Code:
cat /proc/mounts
2) Use fdisk to see how Linux has mapped the disk to a node in the /dev directory.
Code:
/sbin/fdisk -l
3) Use cfdisk, yes cfdisk, to recreate the partition table on the disk. Use the information from the fdisk -l to select the disk when you run cfdisk. For example if fdisk -l showed you that your external disk is mapped to /dev/sda then you would invoke cfdisk as follows.
Code:
/sbin/cfdisk /dev/sda
4) Delete the existing partition. Create a new partition. Make it type 83. Write the partition table to disk. Exit cfdisk.

5) Now back at the command prompt run fdisk -l again. It should show your external disk with a partition of type 83.
Quote:
/sbin/fdisk -l

Disk /dev/hda: 81.9 GB, 81964302336 bytes
16 heads, 63 sectors/track, 158816 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 18725 9437368+ 83 Linux
/dev/hda2 18726 20806 1048824 82 Linux swap / Solaris
/dev/hda3 20807 158816 69557040 83 Linux
6) Now you can create a file system in this disk partition. Let's say that your disk partition is at /dev/sda1 and that you want to create a Reiserfs file system.
Code:
/sbin/mkfs -t reiserfs /dev/sda1
7) Now you can mount your partition. Let's say that you want to mount it to the already existing directory at /mnt/tmp.
Code:
/bin/mount -o sync,nosuid /dev/sda1 /mnt/tmp
8) If you have automounting enabled then you will want to edit your /etc/fstab file to allow this disk partition to be automatically mounted whenever you plug it into the computer. Add the following line in your /etc/fstab file.
Code:
/dev/sda1        /mnt/tmp        reiserfs        auto,nosuid,sync        0  0
That should do it. Now you have a disk that Linux can use.

Last edited by stress_junkie; 09-08-2006 at 05:35 PM.
 
Old 09-08-2006, 05:13 PM   #5
ijin
LQ Newbie
 
Registered: Sep 2006
Posts: 5

Original Poster
Rep: Reputation: 0
so the only way i can write on the HD is to reformat it ?
and insert another filesystem?

Last edited by ijin; 09-08-2006 at 05:16 PM.
 
Old 09-08-2006, 05:20 PM   #6
ijin
LQ Newbie
 
Registered: Sep 2006
Posts: 5

Original Poster
Rep: Reputation: 0
well well... thanks for the help

btw, do you know of ant torrent programs i can use on mandriva linux powerpack+2006
 
Old 09-08-2006, 06:02 PM   #7
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
I've never used any torrent programs. All I know is that KDE has ktorrent.
 
  


Reply

Tags
ntfs


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Marvell Yukon Network driver problems, Lilo Windows boot Problems mellowdog Slackware - Installation 7 01-25-2006 02:18 AM
Problems with OSS while trying to avoid problems in ALSA (scratchy sound) GT_Onizuka Linux - General 1 02-05-2004 11:55 PM
Problems, problems, problems. Lets start with the soundcard Kre8ive Linux - Newbie 5 08-07-2003 01:20 AM
Problems, problems, problems. Lets start with the ES 1868 AudioDrive Kre8ive Linux - Newbie 1 08-06-2003 07:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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