LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 07-24-2004, 03:23 AM   #1
KiwiPingu
LQ Newbie
 
Registered: Jul 2004
Location: Auckland New Zealand
Distribution: Fedora Core 2
Posts: 29

Rep: Reputation: 15
Question How can I make my memory stick work


Ive read lots of threads and HowTo's on this topic but they are either not for my OS or Im just to new to this to understand (probably more the latter).

Ive plugged my USB memory stick (MSI 256 mega stick) into the port on the front panel. On its screen ready is displayed.

I have Fedora Core 2 kernel release 2.6.5-1.358smp and a Foxconn motherboard.

In XP the stick is automatically detected but not in FC2

What do I have to do to transfer files to and from it? I really want to be able to do this so I don't have to go back to W****** or partition my drive which might not be possible because I have a Seagate serial HHD and I had trouble trying to get W****** to install on it (No trouble with Linux though).

 
Old 07-24-2004, 04:12 AM   #2
Quis
Member
 
Registered: May 2001
Location: Germany, Süd-Baden
Distribution: Gentoo
Posts: 139

Rep: Reputation: 15
open a console, plug in the usb-stick and type:
- dmesg

you should see something like this:
usb 1-1.1: new full speed USB device using address 5
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: SOMEUSBDEVICE FROM SOMEVENDOR
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0
USB Mass Storage device found at 5
SCSI device sda: 256001 512-byte hdwr sectors (131 MB)
sda: assuming Write Enabled
sda: assuming drive cache: write through
sda: sda1
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0

try this first and report your log.
 
Old 07-24-2004, 04:41 AM   #3
KiwiPingu
LQ Newbie
 
Registered: Jul 2004
Location: Auckland New Zealand
Distribution: Fedora Core 2
Posts: 29

Original Poster
Rep: Reputation: 15
Lightbulb

That was so interesting all sorts of great info came up about my system im lucky ive been reading some stuff cause I only just learnt how to open a console in the Terminal or that there was even a difference. Here is the bottom part of my log. Also I tryed to type the - in the comand you told me to enter so I was lucky to get it to go at all now what do I do next


USB Mass Storage device found at 2
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usb 4-2: USB disconnect, address 2
usb 4-2: new full speed USB device using address 3
scsi3 : SCSI emulation for USB Mass Storage devices
Vendor: MSI Model: MS-551X Rev: 0100
Type: Direct-Access ANSI SCSI revision: 02
SCSI device sdb: 503552 512-byte hdwr sectors (258 MB)
sdb: assuming Write Enabled
sdb: assuming drive cache: write through
sdb: sdb1
Attached scsi removable disk sdb at scsi3, channel 0, id 0, lun 0
USB Mass Storage device found at 3
atkbd.c: Unknown key pressed (translated set 2, code 0x88 on isa0060/serio0).
atkbd.c: Use 'setkeycodes e008 <keycode>' to make it known.
atkbd.c: Unknown key released (translated set 2, code 0x88 on isa0060/serio0).
atkbd.c: Use 'setkeycodes e008 <keycode>' to make it known.
usb 4-2: USB disconnect, address 3
usb 4-2: new full speed USB device using address 4
scsi4 : SCSI emulation for USB Mass Storage devices
Vendor: MSI Model: MS-551X Rev: 0100
Type: Direct-Access ANSI SCSI revision: 02
SCSI device sdb: 503552 512-byte hdwr sectors (258 MB)
sdb: assuming Write Enabled
sdb: assuming drive cache: write through
sdb: sdb1
Attached scsi removable disk sdb at scsi4, channel 0, id 0, lun 0
USB Mass Storage device found at 4
 
Old 07-24-2004, 04:50 AM   #4
Quis
Member
 
Registered: May 2001
Location: Germany, Süd-Baden
Distribution: Gentoo
Posts: 139

Rep: Reputation: 15
Quote:
Originally posted by KiwiPingu
...
sdb: sdb1
...
this is the line of interest.

your usb-device is on /dev/sdb1.

open a console and become root with:
su -l
(enter the password)
goto /mnt with:
cd /mnt
make a directory:
mkdir usb
edit your /etc/fstab file:
kwrite /etc/fstab &
append the following line:
/dev/sdb1 /mnt/usb auto noauto,owner,sync 0 0
after saving the fstab file try to mount the usb-device-filesystem with:
mount /mnt/usb
list your contents:
ls -la /mnt/usb
 
Old 07-24-2004, 05:05 AM   #5
KiwiPingu
LQ Newbie
 
Registered: Jul 2004
Location: Auckland New Zealand
Distribution: Fedora Core 2
Posts: 29

Original Poster
Rep: Reputation: 15
Hang on slow down please

Ive made the directory. That worked cause I found the directory in the GUI.

Now can you explain the next part of your msg more clearly (sorry im very new to this).
 
Old 07-24-2004, 05:22 AM   #6
KiwiPingu
LQ Newbie
 
Registered: Jul 2004
Location: Auckland New Zealand
Distribution: Fedora Core 2
Posts: 29

Original Poster
Rep: Reputation: 15
Here is my log what does it mean Quis?

[leith@localhost leith]$ su
Password:
[root@localhost leith]# cd /mnt
[root@localhost mnt]# mkdir usb
[root@localhost mnt]# kwrite /etc/fstab &
[1] 3900
[root@localhost mnt]# QPixmap: Cannot create a QPixmap when no GUI is being used
QPixmap: Cannot create a QPixmap when no GUI is being used
QPixmap: Cannot create a QPixmap when no GUI is being used
QPixmap: Cannot create a QPixmap when no GUI is being used
kbuildsycoca running...

cd
[root@localhost root]#

 
Old 07-24-2004, 05:24 AM   #7
KiwiPingu
LQ Newbie
 
Registered: Jul 2004
Location: Auckland New Zealand
Distribution: Fedora Core 2
Posts: 29

Original Poster
Rep: Reputation: 15
A GUI window poped up to called fstab - KWrite that contained the following

LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
/dev/sda3 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
 
Old 07-24-2004, 05:28 AM   #8
Quis
Member
 
Registered: May 2001
Location: Germany, Süd-Baden
Distribution: Gentoo
Posts: 139

Rep: Reputation: 15
okay.
There is a file in your folder /etc (/etc is a little bit like the registry of windows) called "fstab" (or filesystem table).
in this file you can see or edit all (storage-)device that linux (possibly) mount on startup.
Appending an entry for you usb-device makes linux know about it and howto handle it as a storage device.
You can browse with your filemanager (as root) to your "/etc" directory and open the "fstab" with an text-editor. you must be "root" to edit or more exactly save the file after editing.

then append the line:
/dev/sdb1 /mnt/usb auto noauto,owner,sync 0 0
where:
- /dev/sdb1 is your usb-device
- /mnt/usb is the folder where linux mount the device in
- auto is for auto-detecting the devices filesystem. (You can set it to "vfat" if you have a windows fat filesystem on the stick)
- noauto,owner,sync -> noauto means that linux does not mount it on startup
-> owner means that the person who mounts it is the owner
-> sync means that linux directly writes data on the device (if you copy something on it)

with this entry you should be able to mount the device.

You can add on the KDE-desktop an icon with:
- right-click on the desktop
-> new -> device -> harddisk (don't know exactly the name in EN (localisation))
after this there comes up a new dialog. you can set a name for your new icon and specify which device you want to use.

you specify it on the "device"-tab. there should be an entry with: /dev/sdb1 (/mnt/usb).

hope it is a better explanation.

Last edited by Quis; 07-24-2004 at 05:31 AM.
 
Old 07-24-2004, 05:34 AM   #9
Quis
Member
 
Registered: May 2001
Location: Germany, Süd-Baden
Distribution: Gentoo
Posts: 139

Rep: Reputation: 15
Quote:
Originally posted by KiwiPingu
..
[root@localhost mnt]# kwrite /etc/fstab &
[1] 3900
[root@localhost mnt]# QPixmap: Cannot create a QPixmap when no GUI is being used
QPixmap: Cannot create a QPixmap when no GUI is being used
QPixmap: Cannot create a QPixmap when no GUI is being used
QPixmap: Cannot create a QPixmap when no GUI is being used
kbuildsycoca running...
..
this is it.
you can ignore the QPixmap messages.
know append the line to your fstab as shown in the other posts.
 
Old 07-24-2004, 05:47 AM   #10
KiwiPingu
LQ Newbie
 
Registered: Jul 2004
Location: Auckland New Zealand
Distribution: Fedora Core 2
Posts: 29

Original Poster
Rep: Reputation: 15
How do I browse a root? I can do everything but save.
 
Old 07-24-2004, 05:52 AM   #11
Quis
Member
 
Registered: May 2001
Location: Germany, Süd-Baden
Distribution: Gentoo
Posts: 139

Rep: Reputation: 15
you can open konqueror the same way you opened kwrite.
in your "root"-console type:
konqueror &

Last edited by Quis; 07-24-2004 at 05:53 AM.
 
Old 07-24-2004, 05:54 AM   #12
KiwiPingu
LQ Newbie
 
Registered: Jul 2004
Location: Auckland New Zealand
Distribution: Fedora Core 2
Posts: 29

Original Poster
Rep: Reputation: 15
I get this message.

The document could not be saved, as it was not possible to write to file:/etc/fstab.
Check that you have write access to this file or that enough disc space is available.

I have about 110Gb available so it must be that i don't have the write access. Is write access like root. How do I get it.
I am the root user and know the root password.
 
Old 07-24-2004, 06:03 AM   #13
KiwiPingu
LQ Newbie
 
Registered: Jul 2004
Location: Auckland New Zealand
Distribution: Fedora Core 2
Posts: 29

Original Poster
Rep: Reputation: 15
Ok great done everything.

Now I want to copy a file to the new icon but when I double click it I get this error in a GUI window.

Could not mount device.
The reported error was:
mount: only root can mount /dev/sdb1 on /mnt/usb

How do I get to this window so I can cut and paste.
 
Old 07-24-2004, 06:13 AM   #14
Quis
Member
 
Registered: May 2001
Location: Germany, Süd-Baden
Distribution: Gentoo
Posts: 139

Rep: Reputation: 15
your devicefile "/dev/sdb1" is owned by root.
i solved it by changing the ownerchip of "/dev/sdb1" to my user.
it is not the best way (it's a evil workaround), but for a home(-mostly one-user)-machine it doesn't matter.

go to your "root" console. (sorry i am only talking about the console but if you get used to it, many things are faster)
type:
chown -c YOURUSER /dev/sdb1
the "chown" command changes the ownerchip of files

YOURUSER is the user who wants to mount the device

with this command you set the new ownerchip. after this try mounting again.
 
Old 07-24-2004, 06:15 AM   #15
KiwiPingu
LQ Newbie
 
Registered: Jul 2004
Location: Auckland New Zealand
Distribution: Fedora Core 2
Posts: 29

Original Poster
Rep: Reputation: 15
Sorry im so stupid I did it like you already told me and it worked your a bloody legend Quis.

In fact you give all germans a good name

THANKS HEAPS if your ever in NZ give me a email I just changed my User CP so you can.



I know a gi who go's germany every year to see his girl freind and if her and you are anything to go by germans are great.
 
  


Reply



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
Missing memory in USB stick, flash memory, removable hd etc bamboo_spider Linux - Newbie 3 06-14-2006 05:39 PM
Memory stick pcmcia card does not work john_walsh54 Linux - Laptop and Netbook 3 06-04-2005 07:10 AM
Can't get USB memory stick to work on Dell Optiplex GX280 with MandrakeLinux 10.1 SpruceMoose Linux - Hardware 6 05-12-2005 02:25 PM
How to make a corrupted USB stick work? sundancebt Linux - Newbie 16 04-02-2004 12:18 AM
How do I get my USB memory stick to work in SuSE 8.2? Paul_Lee Linux - Hardware 13 02-13-2004 08:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:03 AM.

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