LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 01-21-2011, 10:36 PM   #1
rrsc16954
Member
 
Registered: Sep 2003
Location: Edinburgh, Scotland
Distribution: Kubuntu 12/4
Posts: 214

Rep: Reputation: 30
How to transfer files from windows drive to Mandriva ext4 drive?


I have recently lost a lot of data because of XP 'breaking' the file structure on 4 drives. Consequently I want to store my files on an exclusively Mandriva (not dual-boot) pc. I have formatted a drive as ext4 and want to transfer all the files from a ntfs drive.

[BTW the 'broken file structure' means that - I believe, according to software from the manufacturer - although the hard drive is perfectly able to function it is invisible to operating systems. I have been told I need to do a 'low-level format' to recover the drives but have not so far been able to find suitable free software that can 'see' the drives.]

When I formatted the ext4 drive I called it (mount point) datastor1 and this is showing only under root which I can live with although I would prefer it to show along with other drives on the left (in Dolphin). So presently I click on root and then double-click on datastor1 in Dolphin to get access.

I have access to the ntfs drive also but when I try to move files I get 'Access denied to /datastor1/The Streets of San Francisco'.

This appears to be an issue with root ownership of datastor1: can someone help me to fix that please? It may be an issue with the ntfs drive: will it help if I check the box 'Support "user." extended attributes' in 'Mandriva Linux Control Centre - Manage Disk Partitions - Options'? I am a bit worried about checking this box having googled and it looks a bit complicated/dangerous.

Once I empty that drive I want to do the same with others so they will all be ext4 and I won't be tempted to let windows near my files.
I almost lost another 2 drives of files (1.5tb each) this week.

Until now I have kept my data storage ntfs so both systems would have access.

Help please?
 
Old 01-21-2011, 10:47 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,665
Blog Entries: 28

Rep: Reputation: 6248Reputation: 6248Reputation: 6248Reputation: 6248Reputation: 6248Reputation: 6248Reputation: 6248Reputation: 6248Reputation: 6248Reputation: 6248Reputation: 6248
A couple of ideas:

If /media/datastor1 is in /etc/fstab, make sure the fstab settings are rw and not ro (for read only).

More about fstab here.

Also, assuming that the datastor1 drive is located at /media/datastore1

I would try

Code:
cd /media
ls -l
And check the permissions of datastor1. If they show rw for read-write, I would

Code:
cd datastor1
ls -l
And continue drilling down to see if I could locate the problem.

The Slackbook has a good section on permissions, including ways of changing them.
 
Old 01-21-2011, 11:08 PM   #3
rrsc16954
Member
 
Registered: Sep 2003
Location: Edinburgh, Scotland
Distribution: Kubuntu 12/4
Posts: 214

Original Poster
Rep: Reputation: 30
Frankbell: Thank you for your prompt response and I will follow up on your reading suggestions tomorrow because it is very late here now.

My fstab shows:

# Entry for /dev/sda6 :
UUID=6b93410d-f645-4f41-b568-4643bbd38d58 / ext4 acl,relatime 1 1
# Entry for /dev/sdb1 :
UUID=7d20826d-3292-4ee4-adb7-3a0bf794d0ad /datastor1 ext4 acl,relatime 1 2
# Entry for /dev/sda8 :
UUID=4511b06c-771d-4b86-8dca-65fd4f4885aa /home ext4 acl,relatime 1 2
/dev/cdrom /media/cdrom auto umask=0,users,iocharset=utf8,noauto,ro,exec 0 0
# Entry for /dev/sda1 :
UUID=22F0919EF09178AD /media/win_c ntfs-3g defaults,umask=000 0 0
# Entry for /dev/sda5 :
UUID=58105F3E105F2274 /media/win_d ntfs-3g defaults,umask=000 0 0
# Entry for /dev/sdc1 :
UUID=01CB4A204D71BEA0 /mnt/windows ntfs-3g user,umask=000 0 0
none /proc proc defaults 0 0
# Entry for /dev/sda7 :
UUID=91fd0ea1-c10b-4f91-ae4d-abf8752dd0f5 swap swap defaults 0 0

datastor1 does not appear to be 'ro' - ?!

ls -l shows:

total 52
drwxr-xr-x 2 root root 4096 2011-01-21 23:03 cdrom/
drwxrwxrwx 1 root root 4096 2011-01-21 10:41 win_c/
drwxrwxrwx 1 root root 45056 2011-01-21 23:32 win_d/

Thanks again for taking the time.
 
Old 01-21-2011, 11:29 PM   #4
rrsc16954
Member
 
Registered: Sep 2003
Location: Edinburgh, Scotland
Distribution: Kubuntu 12/4
Posts: 214

Original Poster
Rep: Reputation: 30
I did cd /dev

and

ls -l

and got:

brw-rw---- 1 root disk 8, 17 2011-01-22 00:20 sdb1

then I did:

cd datastor1
ls -l

and got

root@localhost dev]# cd datastor1
bash: cd: datastor1: No such file or directory

I have no idea.
 
Old 01-22-2011, 02:09 PM   #5
rrsc16954
Member
 
Registered: Sep 2003
Location: Edinburgh, Scotland
Distribution: Kubuntu 12/4
Posts: 214

Original Poster
Rep: Reputation: 30
Sorted!

I had remembered that to change ownership a few years (versions) ago I was able to open a console as root then open kate and/or kwrite in the console then click on open a file, navigate to the relevant file and right-click and choose properties then change the ownership/permissions.

Recently I could not get the system to allow me to do that using 'Tools - Konsole', and logged in as su. It would not let me open Kate or Kwrite.

This time I went into 'Mandriva Control Centre - System - Open Console as Administrator' then after failing to open Kate I successfully opened Kwrite then Open File and navigated to my Datastor1 drive and took possession!

I have not got the drive showing in the Dolphin menu yet but at least I have the use of it.
 
Old 01-22-2011, 03:24 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,348

Rep: Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147
Quote:
# Entry for /dev/sdb1 :
UUID=7d20826d-3292-4ee4-adb7-3a0bf794d0ad /datastor1 ext4 acl,relatime 1 2
The mount point for /dev/sdb1 is /datastor1. If you want to mount it under /media then create a directory /media/datastor1. Change your fstab and the directories permissions as desired. Once this is accomplished you can delete /datastor1 to keep from getting confused.
 
Old 01-22-2011, 05:21 PM   #7
rrsc16954
Member
 
Registered: Sep 2003
Location: Edinburgh, Scotland
Distribution: Kubuntu 12/4
Posts: 214

Original Poster
Rep: Reputation: 30
Hi Michaelk, thank you for your kind response!

I have now got my datastor1 drive owned by me and appearing as one of the folders in my Home-Richard directory after many attempts including 7 I think fresh installs.

It has been a valuable lesson regarding mounting of drives etc and I have learned some

I have taken a copy of your response and will probably try again in a day or two.

Thanks again!
 
Old 01-23-2011, 08:47 AM   #8
rrsc16954
Member
 
Registered: Sep 2003
Location: Edinburgh, Scotland
Distribution: Kubuntu 12/4
Posts: 214

Original Poster
Rep: Reputation: 30
Today I managed to instal my next hard drive as /Media/datastor2 and showing in the left-hand panel of Dolphin as I wanted. After changing the ownership and permissions successfully I have now done the same with datastor1. Great! Thanks again, michaelk.
 
  


Reply


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
Moving files from a Linux hard drive to a Windows Vista Premium hard drive WolfMan51 Linux - Hardware 5 07-12-2011 10:19 AM
Help needed with windows xp ntfs transfer to linux partition single hard drive Fb1985 Linux - Newbie 9 11-18-2007 04:54 PM
To transfer the complete hard drive to a brand new drive satimis Linux - Hardware 2 09-02-2004 10:56 PM
Slow drive to drive transfer ziekke Linux - Hardware 8 08-15-2004 05:35 PM
Floppy drive acting strange (I'm trying to transfer files from linux to windows) jolly_good2000 Linux - General 10 11-19-2002 10:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

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