[wellylug] Copying from USB stick in Redhat server

John Durham john.modec at xtra.co.nz
Sat Mar 24 11:21:37 NZST 2007


Phillip Hutchings wrote:
> On 3/24/07, John Durham <john.modec at xtra.co.nz> wrote:
>> Phillip Hutchings wrote:
>> > On 3/24/07, John Durham <john.modec at xtra.co.nz> wrote:
>> >> I'm still getting used to text mode on the server Jethro was kind 
>> enough
>> >> to set up. One of the tasks still to be tackled successfully is 
>> getting
>> >> updates to the website transferred there.
>> >>
>> >> Today, I copied updates to a USB stick and plugged it into the server.
>> >> It was recognised as scsi0. I navigated to the website file area on 
>> the
>> >> server and dried to access the stick to copy from using
>> >> cd scsi0
>> >> then
>> >> cd /scsi0
>> >> In both cases I got:
>> >> -bash: cd: /scsi0: No such file or directory
>> >> or similar.
>> >>
>> >> Knowing the device is there, I must be missing something basic. Anyone
>> >> care to fill in the gap so I can carry out the transfer please?
>> >
>> > You missed mounting it, most non-GUI Linux systems don't automate
>> > this. Since it's SCSI0 you'll probably want to (as root):
>> >
>> > # mkdir /mnt/usbstick
>> > # mount /dev/sda1 /mnt/usbstick
>> > # cd /mnt/usbstick
>> >
>> > However, depending on the distro the device path for mount could be
>> > different.
>> Thanks, that seems to have worked. Now to unmount correctly.
> 
> umount /mnt/usbstick
> 
> Sometimes with SCSI devices you need to use eject as well
> 
> eject /dev/sda
> 
> but normally umount does the trick.
You are probably right. After umounting it, I removed the stick. That 
produced a series of messages saying things like "unable to read partition".

There seems to be always one more twist, doesn't there?
Thanks anyway for the reminder.

-- 
Regards, John Durham <http://modecideas.com/contact.html?sig>
Fax/Phone 64 4 5286786
Award winning web site at http://modecideas.com?sig
Server hosted on Ubuntu 4.10
PC-HELPERS list subscribe/unsub at http://modecideas.com/discuss.htm?sig
Good advice is like good paint- it only works if applied.




More information about the wellylug mailing list