LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can't copy files from CD to hd. Says i don't have permission? (https://www.linuxquestions.org/questions/linux-newbie-8/cant-copy-files-from-cd-to-hd-says-i-dont-have-permission-321865/)

dizzug7068 05-10-2005 01:15 AM

Can't copy files from CD to hd. Says i don't have permission?
 
Ok, I'm completely new to Linux, but I'm liking it so far. I used UNIX for a couple of semesters in college, but I've forgotten pretty much everything. I finally figured out why i can't connect to the internet. I guess it has something to do with the fact that I've got a winmodem (Conexant HSF 56k). I downloaded the driver for Debian(hope it's right for Ubuntu?) from Linuxant and copied it to CD, so I can put into Ubuntu. But I can't copy the files from CD to hd because of permissions. And I can't change permissions because of ownership. I have opened a root terminal and read a tutuorial on changing permissions and ownership, but I still can't copy the driver to the hd. I guess I'm not changing the right folders, but I don'know which one to change. I did ls -la and and I see quite a few directiries. I changed permission to .nautilus and Desktop, buti I didn't really want to mess with anything else. The ".." directory is the only one that says "root" and "staff", instead of my username. But all the permissions for it are drwxrwxr-x. Thank you for any help you can give me, I'm really looking forward to getting this thing setup.

fancypiper 05-10-2005 01:25 AM

Any cheap external serial port modem will perform much better and save you a ton of headaches in your trying to install closed source winmodules. I tossed my winmodem in the trash before I even started to try to install Linux, myself.

1. Did you mount the CD?
2. If so, did you mount it as root or user?
3. What command did you use to copy from CD to HD and where did you try to copy it to? Or, are you trying to do everything with a GUI (hides error messages)?
4. Can you post your /etc/fstab file?

Hopefully, something here will help.

Basic system administration
To change to the full root account (system administrator), if you are running X, open an x terminal and use these commands from your user account. Note the change in the prompt. You can do the same from a virtual terminal as well, but you can't open an x terminal to do so.
Code:

[fancy@tinwhistle fancy]$ su -
Password: <give root password and press enter>
[root@tinwhistle root]#

Remember, now whatever you command in root (it's the "god" mode. You can bless or destroy at your whim) usually gets done if enough system is left to carry out the command. :D Sit on your hands and read the commands you type at least 3 times before pressing the enter key when in root.

Some guides to common tasks asked about here.
# Compiling/installing kernel modules
You will need to have installed:
1. The developmental packages (compiler)
2. The kernel-source code that matches your running kernel
3. The module source or install code

Check out your system and look under the hood and see if you installed the stuff you need to do the job. Open an x terminal and type in this sequence of commands to see what kernel we are running and see if you have the kernel source installed:
Code:

[fancy@tinwhistle fancy]$ su -
Password:
[root@tinwhistle root]# uname -r
2.4.20-28.7

I am running kernel version 2.4.20-28.7. Do I have the proper source code?
Code:

[root@tinwhistle root]# cd /usr/src
[root@tinwhistle src]# ls -alc
total 3
drwxr-xr-x    4 root    root          136 Jun 12 14:53 .
drwxr-xr-x  16 root    root          424 Jun  4 12:04 ..
lrwxrwxrwx    1 root    root          14 Jun  4 12:11 linux-2.4 -> linux-2.4.20-28.7
drwxr-xr-x  16 root    root          584 Jun  4 12:11 linux-2.4.20-28.7
drwxr-xr-x    7 root    root          168 Jun  4 12:08 redhat
[root@tinwhistle src]#

I do have the same kernel version source code installed in the directory /usr/src/linux-2.4.20-28.7 and there is a symbolic link named linux-2.4 pointing to it.

If you don't see something similiar to this (but in color), you will need to install the kernel source.

NOTE: I noticed that Red Hat didn't make the symbolic link /usr/src/linux that all of the INSTALL files that I have read mentioned that I need. I may as well make one now to save editing the files in the source code every time I need to compile anything concerning the kernel. So, I'll make that link just now:
Code:

[root@tinwhistle src]# ln -s linux-2.4.20-28.7 linux       
[root@tinwhistle src]# ls -alc
total 3
drwxr-xr-x    4 root    root          160 Jun 12 15:46 .
drwxr-xr-x  16 root    root          424 Jun  4 12:04 ..
lrwxrwxrwx    1 root    root          14 Jun 12 15:46 linux -> linux-2.4.20-28.7
lrwxrwxrwx    1 root    root          14 Jun  4 12:11 linux-2.4 -> linux-2.4.20-28.7
drwxr-xr-x  16 root    root          584 Jun  4 12:11 linux-2.4.20-28.7
drwxr-xr-x    7 root    root          168 Jun  4 12:08 redhat
[root@tinwhistle src]#

Ah, there it is, so that's done.

Next, did I install the compiler?
Code:

[root@tinwhistle src]# gcc -v         
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113)
[root@tinwhistle src]#

Yes, I have a compiler installed.

If you don't have those two things installed, you have to install them first off your install CD.

If they are installed, download the source and happy compiling. :tisk: Make sure you carefully read the README and INSTALL files after extracting and before compiling/installing. :study:

# Modem and connection troubleshooting
WinModems and Linux
Modem HOWTO
Modem NHFs
Linmodems.org
Conexant/Rockwell modem HOWTO
The Unofficial PCTel Linux Driver page
I finaly got my PcTel hsp56 mr modem to work
PcTel PCT789 Compilation in Fedora Core 1
Linux driver for Winmodems with Lucent Apollo (ISA) and Mars (PCI) chipsets
Lucent AMR modem listed as an Intel AC'97 - Smart Link Modems
The kppp Handbook
Dial-up Networking Configuration Using KDE's Kppp
Troubleshooting ISP Connection Problems

dizzug7068 05-10-2005 02:01 AM

Thank you for replying so quickly. I made a mistake earlier the permissions for ".." were "drwxrwsr-x". I don't know what the "s" is? I didn't see that in the tutorial. I am trying to do it all in the GUI, i'm not too good with commands yet. my fstab says:

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hda1 / ext3 defaults, errors=remount - ro 0 1
/dev/hdc /media/cdrom0 udf, iso9660 ro,user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0



I've got XP on another partition, but i haven't had any problems with it. I had to download the drivers in XP and save it to a cd. An error message came up that said it couldn't mount the drive, but then the files showed up in another window. I tried to move thim with the floppy A: first, but that had the same error message, and no files showed up. It said that it didn't know the format and none was specified, something like that, i should have written it down. i'm not sure how to mount a drive, or really what it means. Thank you for replying so quickly.

fancypiper 05-10-2005 02:29 AM

You wasted a CD-R.

If you have NTFS support, you can mount your Windows XP partition and copy them from there.
My /etc/fstab file for a sample:
Code:

# Duron 950 Fedora Core 1 uilleann /etc/fstab file
/dev/hdb8      /              ext3            defaults                1 1
/dev/hdb1      /boot          ext3            defaults                1 2
none            /dev/pts        devpts          gid=5,mode=620          0 0
/dev/hdb11      /home          ext3            defaults                1 2
none            /proc          proc            defaults                0 0
none            /dev/shm        tmpfs          defaults                0 0
/dev/hdb12      /pub            ext3            defaults                1 2
/dev/hdb2      swap            swap            defaults                0 0
/dev/cdrom      /mnt/cdrom      udf,iso9660    noauto,owner,kudzu,ro  0 0
/dev/fd0        /mnt/floppy    auto            noauto,owner,kudzu      0 0
#/dev/hdb9      /mnt/debian    ext3            defaults                1 2
#/dev/hdb10    /mnt/fc3        ext3            defaults                1 2
#/dev/hdc1      /mnt/backup    ext3            defaults                1 2
#/dev/hdc1      /mnt/wav        ext3            defaults                1 2
#/dev/hdc1      /mnt/fat32      vfat            defaults,umask0,0,0    0 0
/dev/hda1      /mnt/WindowsXP  ntfs            defaults                0 0
/dev/hda5      /mnt/NTFSStorage        ntfs    defaults                0 0

Here are some good guides to managing your drives.

I can't seem to make my drives work like I want
# Managing drives
LNAG - Accessing my drives
Rute - Device Mounting - Automatic Mounts: fstab

Some commands that may be handy:

What's this bash command stuff?
# Bash shell commands
Command Reference NHF
O'Reilly Directory of Linux Commands
# Handy bash commands I might use or ask a newbie to use:
# Find CPU specifications
cat /proc/cpuinfo
# Find running kernel version
uname -r
# What modules are loaded
cat /proc/modules
/sbin/lsmod
# What compiler version do I have installed
gcc -v
gcc --version
# What is the running kernel and compiler installed
cat /proc/version
# Find X server version
X -showconfig
# What pci cards are installed and what irq/port is used
cat /proc/pci
# What kernel modules are loaded
lsmod
# Memory and swap information
cat /proc/meminfo
free
An article: Tips for Optimizing Linux Memory
# How are the hard drives partitioned
fdisk -l
# How much free/used drive space
df -h
# What drives are mounted
mount
# How much used drive space in a directory
du -sh /path/to/directory
# Show disk usage by current directory and all subdirectories
du | less
# What is the distribution
cat /etc/.product
cat /etc/.issue
cat /etc/issue
cat /etc/issue.net
sysinfo
# For finding or locating files
find
locate (updatedb needs to be run first)
which
whereis
# Use dmesg to view the kernel ring buffer (error messages)
dmesg | less
# Watch error messages as they happen (sysklog needed)
as root, tail -f /var/log/messages (shows last 10 lines, use a number in front of f for more lines)
# What processes are running
ps -A
# Find a process by name
ps -ef | grep -i <plain text>
For example, XCDroast
ps -ef xcdroast
# See current environment list, or pipe to file
env | more
env > environmentvariablelist.txt
# Show current userid and assigned groups
id
# See all command aliases for the current user
alias
# See rpms installed on current system
rpmquery --all | less
rpmquery --all > <filename>
rpmquery --all | grep -i <plaintext>
Autospec for tarballs
RPM tools
# What directory am I using
pwd
# Get ls colors in less
ls --color=always | less -R
Look at man <command> or info <command> for the flags I used and for other options you can use for bash commands.

dizzug7068 05-12-2005 10:27 PM

Thank you very much, I've been doing a ton of reading. These links are just what i needed. I found a hsf driver and installed it, so I'm on the net with linux now. And I've learned how to do this in the future, so it won't take nearly as long. I also mounted the XP partition and I can now copy directly from it if I need to, which is helpful because I don't think it is going to be getting booted very often now. I do have one question though, I am connecting to the net using wvdial. Do you have any recommendations as to a better way to do this? It's not all that important I guess as long as it works, but it would be handy if maybe i had a gui version on the desktop. Again thank you very much for your help, I'm having much more fun now.

fancypiper 05-12-2005 10:46 PM

I haven't tried Ubuntu, so I don't have a clue as to what window manager/desktop environment you are using. Is it KDE?

In most or all distros DE, you should find a gui front end in the networking area in your menu. Try out their clicky-things to set up the modem up/down gui and it may work as advertised now.

First, I suggest copying /etc/wvdial.conf and /etc/resolv.conf to something like /etc/works.wvdial.conf and /etc/works.resolv.conf just in case the gui scripts won't work and you can't figure it out. Then you can re-name them and use the root x terminal again until you can figure it out.

With the proper links (symbolic link /dev/modem points to the actual modem device) and things you have done, I would think kppp (KDE) would be able to detect the proper settings.

I still think wvdial is easiest to set up and Gnome uses that. Gnome has an internet connection wizard that configures wvdial.

fancypiper 05-12-2005 10:54 PM

Back to the main question of the thread:

BTW, you may have a usermount utility to mount CDs and other drives (if /etc/fstab is set up correctly) as a user. Try clicking on the menu icon, select run and type usermount.

If the mounting tool comes up, it is installed and you can put a launcher for it on your panel.

I forgot the answer to the very first question I had answered on a Linux help bbs! :rolleyes:


All times are GMT -5. The time now is 04:58 AM.