Damn Small Linux - Not!
The forum for DSL-N
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

using a stick

 
Post new topic   Reply to topic    Damn Small Linux - Not! Forum Index -> Other Help Topics
View previous topic :: View next topic  
Author Message
mkjtravel



Joined: 20 Sep 2006
Posts: 7

PostPosted: Wed Sep 20, 2006 2:23 pm    Post subject: using a stick Reply with quote

Hi

I am a newbie to DSL and have a minor problem. DSL is installed to hda2 on my harddisk. To transfer data I would like to use a stick. But if I put the stick on the USB-port nothing happens. I have tried `scsiinfo -l`that I know from SuSE, but that command is not known. How do I find out, what letter X is connected to my stick /dev/sdx1 etc

Thanks

Juergen
Back to top
View user's profile Send private message
bostonvaulter



Joined: 03 Sep 2006
Posts: 31

PostPosted: Wed Sep 20, 2006 4:11 pm    Post subject: Reply with quote

in dsl-n the mount tool does not seem to recognize anything new. It only sees things that were there at boot. So the easiest way to do it would be to boot with the usb stick in, then you could simply use the mount tool to mount and unmount it.

Or as SU, you could mkdir /mnt/sda1
and then mount /dev/sda1 /mnt/sda1

to mount it. This is assuming that this is the only usb drive you have in. If you put in more drives it becomes sdb1, then sdc1, etc.
Back to top
View user's profile Send private message
roberts



Joined: 17 Apr 2006
Posts: 320
Location: OC CA USA

PostPosted: Wed Sep 20, 2006 7:37 pm    Post subject: Reply with quote

I will pass this request to the maker of the mount tool.

But this may be helpful...

When you plug in your pendrive, the hotplug manager places corresponding info into dmesg.

So doing a [b]dmesg | tail -17[/b] should show the device assigned to the freshly inserted pendrive.
Back to top
View user's profile Send private message Visit poster's website
mkjtravel



Joined: 20 Sep 2006
Posts: 7

PostPosted: Thu Sep 21, 2006 7:16 am    Post subject: Reply with quote

[quote="roberts"]I will pass this request to the maker of the mount tool.

But this may be helpful...

When you plug in your pendrive, the hotplug manager places corresponding info into dmesg.

So doing a [b]dmesg | tail -17[/b] should show the device assigned to the freshly inserted pendrive.[/quote]
Well. dmesg tells me, there is a new device. But it doesn't tell me the letter to /dev/sdX1

I have created a dir called /mnt/stick and all mounts like

mount /dev/sda1 /mnt/stick
mount -t auto /dev/sda1 /mnt/stick

or /dev/sda instead of /dev/sda1 just cause a 'Not a valid block device'

Any hints?

Thanks

Juergen
Back to top
View user's profile Send private message
roberts



Joined: 17 Apr 2006
Posts: 320
Location: OC CA USA

PostPosted: Thu Sep 21, 2006 5:30 pm    Post subject: Reply with quote

Post the results of

$ sudo fdisk -l

Perhaps that will help us find the issue.
Back to top
View user's profile Send private message Visit poster's website
Juanito



Joined: 11 Sep 2006
Posts: 88
Location: Dubai, U.A.E.

PostPosted: Tue Oct 10, 2006 2:14 pm    Post subject: I thought I had the same problem Reply with quote

I came across this because (I thought) I had the same problem.

As DSL-N won't let me write to the first partition on a USB stick and Windows cannot read anything but the first partition on a USB stick, I've been doing some kind of USB stick shuffle. The second USB stick is my DSL one that will let me write to the first partition Laughing

Until I worked through the suggestions above, I had been inserting a USB stick (after boot) and waiting (a long time) for it to appear in EmelFM. Of course, the two lines in [b]bold[/b] right at the end were what I was missing...


root@dslbox:~# fdisk -l

Disk /dev/sda: 1039 MB, 1039663104 bytes
32 heads, 62 sectors/track, 1023 cylinders
Units = cylinders of 1984 * 512 = 1015808 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 256 253951+ c Win95 FAT32 (LBA)
/dev/sda2 257 1023 760864 c Win95 FAT32 (LBA)

[b]Insert USB stick[/b]
root@dslbox:~# dmesg | tail -17

usb 1-4: new high speed USB device using ehci_hcd and address 4
scsi1 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 4
usb-storage: waiting for device to settle before scanning
Vendor: Sony Model: Storage Media Rev: 0100
Type: Direct-Access ANSI SCSI revision: 00
SCSI device sdb: 506880 512-byte hdwr sectors (260 MB)
sdb: Write Protect is off
sdb: Mode Sense: 43 00 00 00
sdb: assuming drive cache: write through
sdb: sdb1
Attached scsi removable disk sdb at scsi1, channel 0, id 0, lun 0
usb-storage: device scan complete

root@dslbox:~# fdisk -l

Disk /dev/sda: 1039 MB, 1039663104 bytes
32 heads, 62 sectors/track, 1023 cylinders
Units = cylinders of 1984 * 512 = 1015808 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 256 253951+ c Win95 FAT32 (LBA)
/dev/sda2 257 1023 760864 c Win95 FAT32 (LBA)

Disk /dev/sdb: 259 MB, 259522560 bytes
8 heads, 62 sectors/track, 1021 cylinders
Units = cylinders of 496 * 512 = 253952 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 1021 253177 6 FAT16

[b]root@dslbox:~# mkdir /mnt/sdb1
root@dslbox:~# mount -t vfat /dev/sdb1 /mnt/sdb1[/b]
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Damn Small Linux - Not! Forum Index -> Other Help Topics All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group