LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-18-2004, 09:49 PM   #16
aje
Member
 
Registered: Oct 2004
Location: Internet
Distribution: Slackware 10.1
Posts: 177

Original Poster
Rep: Reputation: 30

Ah, thank you.

I used Kwrite. The file has been edited. But the folder still seems locked.
 
Old 10-18-2004, 09:54 PM   #17
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 46
As root did you type in the command
Code:
mount -a
 
Old 10-18-2004, 10:01 PM   #18
Tap-Out
Member
 
Registered: Oct 2002
Location: Halifax, NS
Distribution: Ubuntu, Mepis, Debian
Posts: 130

Rep: Reputation: 15
Darthtux is giving excellent advice, and I'm sure if you have a little patience you'll be there in no time at all.

Also let me add that for someone who has only been using Linux for a matter of hours you are comming along VERY well. I was totally lost my first time(s). Keep plugging away at it and I'm sure you will work out the problem.

Cheers

Tap
 
Old 10-18-2004, 10:04 PM   #19
aje
Member
 
Registered: Oct 2004
Location: Internet
Distribution: Slackware 10.1
Posts: 177

Original Poster
Rep: Reputation: 30
Alright, I ran that command after editing the file in kwrite.

No luck ...
 
Old 10-18-2004, 10:07 PM   #20
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 46
Tap-Out,

Well said. It takes time to learn new things and it does take time.

aje,

Your learning What is the output or error of running the command.
ls /mnt/win_c2
 
Old 10-18-2004, 10:23 PM   #21
aje
Member
 
Registered: Oct 2004
Location: Internet
Distribution: Slackware 10.1
Posts: 177

Original Poster
Rep: Reputation: 30
I went into root, and typed that command.

It showed the contents of the drive
In konquerer the folder is still "locked". Should I just ditch the world of GUI file browsing?

And yes ... I am learning loads just by following your advice. Even though I still do feel like I've never been on a computer in my life ...

And I thought I knew how to use a computer well when I was using windows *rolleyes*

EDIT: on a sidenote, The names of folders are showing up blue in the list. What does this mean?

Last edited by aje; 10-18-2004 at 10:24 PM.
 
Old 10-18-2004, 10:39 PM   #22
mary
Member
 
Registered: Sep 2003
Distribution: Gentoo
Posts: 135

Rep: Reputation: 15
Yeah, you are doing great with Linux! I didn't figure out how mount a drive/use fstab for several months. And I know that feeling - thinking you are really quite good at computers, and then being thrown into a whole new world, feels like you don't know anything at all.

Well, I'm having the same problem, I am not sure how to allow a user to access the directory.

But, you can use this command:

Code:
kdesu konqueror
to open a konqueror window as root. Just be careful not to hurt something by mistake.

Then you can copy files over to your personal directory. However, the files will probably have messed up permissions. I wrote a little script to help me with changing permissions quickly, maybe it would be of use to you as well.

Copy it into kwrite and save it.

Code:
#!/bin/bash

# A helpful permission changer script

echo "What directory or file would you like to change permissions of?"
read dir

echo "What permissions do you want to use?"
read chmod

echo "What user do you want the files to be owned by?"
read chown

echo "What group do you want the files to use?"
read chgrp

chmod -R $chmod $dir
chown -R $chown $dir
chgrp -R $chgrp $dir
Then do:
chmod a+x (whatever-you-called-it.sh)
Then, as root, run it from a terminal
./(whateveryoucalledit.sh)

Read this on permissions so you know how to change them:
http://www.perlfect.com/articles/chmod.shtml

I'm not promising that the script will work alright, but it's very simple and I don't see how anything could go wrong with it. I've used it a lot.

Oh, and the blue is just colour-coding for folders. Folders are ofter one colour, normal files another, maybe executable files different, etc.

Last edited by mary; 10-18-2004 at 10:48 PM.
 
Old 10-18-2004, 10:46 PM   #23
aje
Member
 
Registered: Oct 2004
Location: Internet
Distribution: Slackware 10.1
Posts: 177

Original Poster
Rep: Reputation: 30
So do I have to move my files onto the same directory that my OS is installed on for them to become completely accessible? I may be reading wrong but thats what it sounds like when you say that I can then copy my files over to my personal directory.
 
Old 10-18-2004, 10:49 PM   #24
mary
Member
 
Registered: Sep 2003
Distribution: Gentoo
Posts: 135

Rep: Reputation: 15
Sorry I wasn't clearer. I probably could have worded that better, and I shouldn't have gone on about permissions either.

You can read them, open them, whatnot, but if they are on ntfs you can't write to them.
You don't have to copy them over if you don't need to change the files. It's probably faster to have them on linux native filesystem, but I don't know...

Last edited by mary; 10-18-2004 at 10:53 PM.
 
Old 10-18-2004, 10:55 PM   #25
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 46
With ntfs you can view the files but not write to them. To write you will need to move them to a linux partition. But you should still be able to view them.

Run the command
Code:
ls -l /mnt
and see what the permissions for that mount point are - win_c2.

I don't know too much about the lock iin the gui because I am so used to the command line. So I don't know what is up with Konqueror.
 
Old 10-18-2004, 10:56 PM   #26
aje
Member
 
Registered: Oct 2004
Location: Internet
Distribution: Slackware 10.1
Posts: 177

Original Poster
Rep: Reputation: 30
I think I'll be forced to leave them until I get a bigger HD. The HD that my OS is on is a 40gig, and the second one is an 80, with only 6 GB free. This houses my music and other important media files.

And i'm assuming I cannot format this drive to a linux filesystem without losing my data. Am I correct?
 
Old 10-18-2004, 10:59 PM   #27
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 46
Yes, you would lose your data.


Can you access the files and view them as a user now? You should still be able to play the music files, etc.
 
Old 10-18-2004, 11:04 PM   #28
aje
Member
 
Registered: Oct 2004
Location: Internet
Distribution: Slackware 10.1
Posts: 177

Original Poster
Rep: Reputation: 30
I'll have to use the "kdesu konqueror" Command each time I guess.

Well at least I can access my data. Next step ... Installing XMMS ... I've already failed miserably twice but I think This thread is done.


Thanks very much to all who have helped
 
Old 10-22-2004, 01:32 AM   #29
aje
Member
 
Registered: Oct 2004
Location: Internet
Distribution: Slackware 10.1
Posts: 177

Original Poster
Rep: Reputation: 30
I guess I lied about this thread being done.

I uninstalled mandrake10.0, and used a few live CD's for a couple days.

I just installed fedora core 2, I like it a lot! Only thing is I can't get to my second HD, and I've used the methods used in this thread and they aren't seeming to work.

I'm using the command "mount -t ntfs /dev/hdb /home" and It is telling me "mount: fs type ntfs not supported by kernel"

I also tried the command in the first reply of this thread and I got here:

Code:
[root@localhost /]# fdisk /dev/hdb
 
The number of cylinders for this disk is set to 9964.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
 
Command (m for help):
And when I press m for help, I get this:
Code:
Command action
   a   toggle a bootable flag
   b   edit bsd disklabel
   c   toggle the dos compatibility flag
   d   delete a partition
   l   list known partition types
   m   print this menu
   n   add a new partition
   o   create a new empty DOS partition table
   p   print the partition table
   q   quit without saving changes
   s   create a new empty Sun disklabel
   t   change a partition's system id
   u   change display/entry units
   v   verify the partition table
   w   write table to disk and exit
   x   extra functionality (experts only)

So ... yes I am again confused on how to access my second HD.

On a side note, it was not present while I installed the OS ... I have a feeling this has something to do with my problem.

EDIT/update: I went here and installed that ntfs rpm. Then when I went to mount the HD using "mount -t ntfs /dev/hdb /home" I got this"

Code:
mount: wrong fs type, bad option, bad superblock on /dev/hdb,
       or too many mounted file systems
I tried the fdisk /dev/hdb and got the same results as before.

Last edited by aje; 10-22-2004 at 01:45 AM.
 
Old 10-22-2004, 02:37 AM   #30
Tap-Out
Member
 
Registered: Oct 2002
Location: Halifax, NS
Distribution: Ubuntu, Mepis, Debian
Posts: 130

Rep: Reputation: 15
Welcome to the wonderful world of Fedora/Red Hat.

You did quite well to go and find the NTFS rpm package. Believe it or not another simple command will solve your problems (well it should anyway)

Code:
su
root password
/sbin/modprobe ntfs
now from there use the mount command with the ntfs file system and you should be all good to go again.

Hope this helps

Cheers

Tap
 
  


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
Accessing LAN from outside OliXNet Linux - Networking 11 02-08-2005 06:46 AM
Accessing I'm a newbee Linux - Software 0 03-20-2004 11:01 PM
Accessing the /ect Daredevil Linux - Newbie 1 03-05-2004 10:34 AM
accessing partitions. nits Linux - General 2 10-03-2003 10:48 AM
accessing a partition dlwheeler Linux - General 2 01-28-2002 11:50 AM


All times are GMT -5. The time now is 02:13 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration