Welcome! Log In Create A New Profile

Advanced

usb not mounting on /dev/sda1

Posted by dockstarish 
dockstarish
usb not mounting on /dev/sda1
September 19, 2010 11:36PM
Hi

i'm fairly new to linux and i'm not able to figure out how to mount my usb drive on /dev/sda1 on the dockstar. when i plug in the usb drive, it looks like it gets mounted as /tmp/.cemnt/sda1 and not /dev/sda1. I tried to run jeff's script at http://jeff.doozan.com/debian/ but it complained since it wasn't able to find anything at /dev/sda1. how do i get the usb to show up as /dev/sda1? is it something wrong with the usb drive that i am using? thx for your help

Here's my /proc/mounts file:

rootfs / rootfs rw 0 0
/dev/root / jffs2 ro,noatime 0 0
none /proc proc rw 0 0
none /sys sysfs rw 0 0
none /dev/pts devpts rw 0 0
none /tmp tmpfs rw 0 0
/tmp/.cemnt/sda1 /tmp/.cemnt/mnt_sda1 ext2 rw,nosuid,nodev,noexec,noatime 0 0


complaining line from jeff's script:

# uBoot installation has completed successfully.
# checking for /usr/sbin/blparam...
mke2fs 1.41.12 (17-May-2010)
/dev/sda1 is mounted; will not make a filesystem here!
mkswap: can't open '/dev/sda2': No such device or address
mount: mounting /dev/sda1 on /tmp/debian failed: No such device or address
Could not mount /dev/sda1 on /tmp/debian
drica
Re: usb not mounting on /dev/sda1
September 30, 2010 03:42PM
I do not know if this is the same problem, but I noticed that to get the USB flash available on /dev/sda, I need to plug it on the back socket completely on the left (when looking at the back plugs).

And also, because it was not mapped on the correct plug, the script failed a first time, then it failed again (with the flash on the correct plug) until I rebooted the pogoplug. Now it's ok.

(I am really new to Linux so that may be obvious for some others...)
Dju
Re: usb not mounting on /dev/sda1
October 01, 2010 08:17PM
Hi

i'm installing Squeeze on my brand new dockstar and had the same problem.
i can see my usb key in /dev/sda, mount it mannually.
but mke2fs wont format it.
thanks to you drica, i unplugged it, plugged it on the back, and now it works

thanks :)
Re: usb not mounting on /dev/sda1
November 22, 2010 11:52PM
Guys i've tried connecting 4 usb flash drives (one by one) to all ports - I formatted all of them with FAT32 filesystem. Have rebooted the dockstar as well but the usb still comes up as /tmp/.cemnt/mnt_sda1. What should I do ?


-bash-3.2# df -h
Filesystem Size Used Available Use% Mounted on
/dev/mtdblock2 32.0M 19.5M 12.5M 61% /
none 61.6M 28.0k 61.5M 0% /tmp
/tmp/.cemnt/sda1 1.9G 32.0k 1.9G 0% /tmp/.cemnt/mnt_sda1
-bash-3.2#



-bash-3.2# cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / jffs2 ro 0 0
none /proc proc rw 0 0
none /sys sysfs rw 0 0
none /dev/pts devpts rw 0 0
none /tmp tmpfs rw 0 0
none /proc/bus/usb usbfs rw 0 0
/tmp/.cemnt/sda1 /tmp/.cemnt/mnt_sda1 vfat rw,nosuid,nodev,noexec,noatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,utf8 0 0
-bash-3.2#
Dan
Re: usb not mounting on /dev/sda1
November 23, 2010 03:54PM
After connecting a usb key wait few seconds and run fdisk /dev/sda ( do not try to mount it)
All fat32 partitions needs to be deleted and 2 linux partitions needs to be created, the 2nd one for swap with 256MB.
Commands for fdisk:
? ; gives a list of commands
p ; list of partittions
d ; delete a partition
n ; create a new partition - for the main partition the type is 83 for swap 82 - it will create by default type 83 partitions
; chose for both partitions p - primary
t ; toggle - for the 2nd partition need to be changed to 82
a ; to declare the 1st partition bootable
w ; to write the new partition table and exit (last command)

After that Jeff's script should run ok, it will format the main partition and make swap on the 2nd one.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: