LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   USB-stick 1TB (https://www.linuxquestions.org/questions/linux-hardware-18/usb-stick-1tb-447748/)

kalleanka 05-23-2006 11:28 AM

USB-stick 1TB
 
These usb-sticks allway gets F**ked up after using them on windows. Now i had a 1 Gb stick and after using it with XP I could not delete the files being root. So I wanted to reformat the stick and that did not work. And then I tried to use the dd command and writing zeros on the stick to reformat it. So now I got a stick that shows that it got 1 Terabyte and I am not able to format it.


I will never again help anyone with windows. Always truble.

Any one got this problem?


And another thing: Why cant I write to a harddisk being root and haveing set all permission?

kalleanka 05-23-2006 12:48 PM

I see that this hapend to some people. Well I got the stick reconized by fdisk by rebooting. I tried to limit the stick to 1 Gb but no luck. How does the computer reconize the size of the stick when its not formated?

kalleanka 05-24-2006 06:13 AM

Ok I realised my mistak I should have set the usrid usrgrupid bits to be able to read/write files. ANd now i erased every thing on the stick. I hope I will figure out how to fix it.

imagineers7 05-24-2006 06:56 AM

Hey,

Can you help me out in using usbstick?
When I connect it, it starts blinking but no further use.
What should I do?

imagineers7 05-24-2006 07:01 AM

Kaleanka,

I am posting outputs of lsusb and lsmod still I am unable to figure out how to use it!

[root@shakti ~]# lsusb
[root@shakti ~]# lsmod
Module Size Used by
vfat 11136 0
fat 38624 1 vfat
usb_storage 58432 0
sunrpc 129028 1
vznetdev 12480 1
vzmon 41664 1 vznetdev
vzdev 1792 2 vznetdev,vzmon
af_packet 16360 0
thermal 10096 0
processor 10244 1 thermal
fan 2668 0
button 4408 0
battery 7052 0
asus_acpi 8920 0
ac 3084 0
uhci_hcd 28656 0
ehci_hcd 25604 0
usbcore 100356 5 usb_storage,uhci_hcd,ehci_hcd
8139too 20160 0
mii 3808 1 8139too
floppy 54192 0
ide_cd 36800 0
cdrom 37212 1 ide_cd


Its showing usbcore and usbstorage but I dont know how can I use it.

Please help me out


Thanks in advance

imagineers7 05-24-2006 07:24 AM

Had forgot to post output of lspci:-

[root@shakti usb]# lspci
00:00.0 Host bridge: Intel Corporation 82845G/GL[Brookdale-G]/GE/PE DRAM Controller/Host-Hub Interface (rev 03)
00:02.0 VGA compatible controller: Intel Corporation 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 82)
00:1f.0 ISA bridge: Intel Corporation 82801DB/DBL (ICH4/ICH4-L) LPC Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801DB (ICH4) IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 02)
00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 02)
01:07.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)

imagineers7 05-24-2006 07:42 AM

Hello everyone,

Got this after booting with another kernel:-

[root@shakti usb]# uname -r
2.6.15-1.1831_FC4
[root@shakti usb]# lsusb
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 002: ID 058f:6387 Alcor Micro Corp.
Bus 001 Device 001: ID 0000:0000


now /proc/bus/usb has two new dirs and a devices file

But what can I do with them?
as /dev/ does not contain sda*

Thanks in advance

J.W. 05-24-2006 11:15 AM

Are you mounting the USB drive? Plug in the USB, then run
Code:

fdisk -l
Note that's a lowercase "L". The USB device should show as something like /dev/sda or /dev/sdb, etc. Whatever it is, you'd then need to
Code:

mount /dev/sdx1 <mountpoint>
where "x" is the device letter and <mountpoint> is your mount point, eg, /mnt/usb or whatever.

kalleanka 05-25-2006 05:45 AM

J.W.

got good edvice. Try it and if it does not work post again.

kalleanka 05-25-2006 05:49 AM

OK I get this on the command fdisk -l

Disk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 1655 13293756 83 Linux
/dev/hda2 1656 4865 25784293+ 5 Extended
/dev/hda5 1725 2240 4144738+ 83 Linux
/dev/hda6 2880 3759 7068568+ 83 Linux
/dev/hda7 2241 2879 5132736 83 Linux
/dev/hda8 3760 4014 2048256 83 Linux
/dev/hda9 1656 1724 554211 82 Linux swap / Solaris
/dev/hda10 4015 4865 6835626 83 Linux

Partition table entries are not in disk order

Disk /dev/sda: 1099.5 GB, 1099511889920 bytes <---- this is strange and my problem
16 heads, 32 sectors/track, 4194305 cylinders
Units = cylinders of 512 * 512 = 262144 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 4194305 1073742079+ 6 FAT16


How do I chang this? I hope I found out later since I am curriuos.

a tera byte on a stick - a world record?

J.W. 05-25-2006 01:03 PM

Have you tried simply dropping the partition, and then recreating it?

kalleanka 05-26-2006 05:12 AM

J.W yes i have in fdisk, cfdisk, sfdisk etc but the same. The question is how does fdisk know the size of a blank disk? I think its something set from the plant and I think I destroyed that part. So how do I set it?


All times are GMT -5. The time now is 04:45 PM.