First of all thank for taking time to answer my question. It is greatly appreciated.
Quote:
Originally posted by netstv
I'm not sure why you are trying /dev/sda instead of /dev/sdb. It seems to me that the dmesg told it as /dev/sdb.
|
Sorry, I tried to manipulate the output from dmesg, so I could rationalize the problem. The usb stick is really at /dev/sdb1.
Maybe it wasn't a good idea to alter the output. I have corrected the output according to what it really is. So the stick is on /dev/sdb(1)
Quote:
Originally posted by netstv
What I would do is try sfdisk instead of fdisk. So what happens if you type:
/sbin/sfdisk -l /dev/sdb
/sbin/sfdisk -l /dev/sda
|
I have reformated the unit, so I really don't have any partitions on it anymore. So, if we start from scratch and troubleshoot my steps, I hope we can find a solution.
When I reformat the unit you can see the result of this command.
I make a partition at /dev/sdb
Code:
# fdisk /dev/sdb
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1008, default 1): 1
Last cylinder or +size or +sizeM or +sizeK (1-1008, default 1008): 1008
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
Listing the partitions
Code:
# sfdisk -l /dev/sdb
Disk /dev/sdb: 1008 cylinders, 8 heads, 62 sectors/track
Units = cylinders of 253952 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/sdb1 0+ 1007 1008- 249953 83 Linux
/dev/sdb2 0 - 0 0 0 Empty
/dev/sdb3 0 - 0 0 0 Empty
/dev/sdb4 0 - 0 0 0 Empty
Trying to make a vfat file system doesn't work.
Code:
# mkfs -t vfat /dev/sdb1
mkfs.vfat 2.8 (28 Feb 2001)
/dev/sdb1: No such file or directory
Trying to mount the usb stick regardless of file system:
Code:
# mount /dev/sdb1 /mnt/flash
mount: special device /dev/sdb1 does not exist
This however works:
Code:
# mount /dev/sdb /mnt/flash
I get a listing of the usb sticks contents. However I am not able to copy files to the stick (it doesn't appear there). But I am able to write a file to disk
using ex. vim in the current /mnt/flash directory.
Code:
# cd /mnt/flash
# dir
lost+found
Trying to format usb-stick to vfat doesn't work either
Code:
# umount /mnt/flash
# mkfs.vfat /dev/sdb
mkfs.vfat 2.8 (28 Feb 2001)
mkfs.vfat: Will not try to make file system on '/dev/sdb'
Code:
# mkfs.vfat /dev/sdb1
mkfs.vfat 2.8 (28 Feb 2001)
/dev/sdb1: No such file or directory
Code:
# mount /dev/sdb /mnt/flash
# mkfs -t vfat /mnt/flash
mkfs.vfat 2.8 (28 Feb 2001)
mkfs.vfat: unable to open /mnt/flash
Strange. Again, thanks a lot for taking time to troubleshoot my issue.