Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Formating a USB stick
Date: Fri, 09 Oct 2009 06:57:07
Message-Id: 200910090757.01760.michaelkintzios@gmail.com
In Reply to: Re: [gentoo-user] Formating a USB stick by Stroller
1 On Friday 09 October 2009, Stroller wrote:
2 > On 8 Oct 2009, at 22:10, Paul Hartman wrote:
3 > > ...
4 > > With SD cards, often times there are no partitions. So if you create
5 > > proper partitions sometimes it won't read in other devices/computers.
6 > > (in linux terms that means you would format /dev/sda not /dev/sda1)
7 >
8 > Uh, unless SD cards are seriously goofy - a possibility I concede -
9 > then they're just a bunch of blocks. Partitions are just something you
10 > - either you the user, or the manufacturer if they come pre-formatted
11 > - put on there.
12 >
13 > I'm pretty sure that my experience with at least one external hard-
14 > drive (USB mass-storage device) was that formatting /dev/sda worked
15 > just fine under Linux (and, I think OS X) but was not recognised by
16 > Windows XP. IIRC mkfs.vfat gave a warning. When formatted by Windows
17 > XP and remounted in Linux the drive was of the /dev/sda1 type of
18 > partition layout.
19 >
20 > This seems to be the opposite of how you describe, unless I am
21 > misreading.
22
23 Some USB sticks are formatted as floppy disks (?) and show up as /dev/sda
24 (instead of /dev/sda1). I have had no problems mounting these in Linux or
25 MSWindows, but wouldn't know how to format them in Linux. Their partitions
26 look all over the shop. dmesg shows:
27 ======================================
28 usb-storage: device scan complete
29 sd 1:0:0:0: [sda] 1997312 512-byte hardware sectors: (1.02 GB/975 MiB)
30 sd 1:0:0:0: [sda] Write Protect is off
31 sd 1:0:0:0: [sda] Mode Sense: 03 00 00 00
32 sd 1:0:0:0: [sda] Assuming drive cache: write through
33 sd 1:0:0:0: [sda] Assuming drive cache: write through
34 sda:
35 sd 1:0:0:0: [sda] Attached SCSI removable disk
36 ======================================
37
38 and fdisk:
39 ======================================
40 # fdisk -l /dev/sda
41
42 Disk /dev/sda: 1022 MB, 1022623744 bytes
43 32 heads, 61 sectors/track, 1023 cylinders
44 Units = cylinders of 1952 * 512 = 999424 bytes
45 Disk identifier: 0x69737369
46
47 This doesn't look like a partition table
48 Probably you selected the wrong device.
49
50 Device Boot Start End Blocks Id System
51 /dev/sda1 ? 957875 1044294 84344761 69 Unknown
52 Partition 1 has different physical/logical beginnings (non-Linux?):
53 phys=(68, 13, 10) logical=(957874, 21, 37)
54 Partition 1 has different physical/logical endings:
55 phys=(288, 115, 43) logical=(1044293, 15, 36)
56 Partition 1 does not end on cylinder boundary.
57 /dev/sda2 ? 871681 1829612 934940732+ 73 Unknown
58 Partition 2 has different physical/logical beginnings (non-Linux?):
59 phys=(371, 114, 37) logical=(871680, 1, 61)
60 Partition 2 has different physical/logical endings:
61 phys=(366, 32, 33) logical=(1829611, 4, 30)
62 Partition 2 does not end on cylinder boundary.
63 /dev/sda3 ? 2 2 0 74 Unknown
64 Partition 3 has different physical/logical beginnings (non-Linux?):
65 phys=(371, 114, 37) logical=(1, 10, 12)
66 Partition 3 has different physical/logical endings:
67 phys=(372, 97, 50) logical=(1, 10, 11)
68 Partition 3 does not end on cylinder boundary.
69 /dev/sda4 1 1759792 1717556736 0 Empty
70 Partition 4 has different physical/logical beginnings (non-Linux?):
71 phys=(0, 0, 0) logical=(0, 0, 1)
72 Partition 4 has different physical/logical endings:
73 phys=(0, 0, 0) logical=(1759791, 23, 37)
74 Partition 4 does not end on cylinder boundary.
75
76 Partition table entries are not in disk order
77 ======================================
78
79 While parted again has no problem seeing it and identifying the partition
80 tablet as "loop" instead of MSDOS:
81 ======================================
82 # parted /dev/sda
83 Warning: GNU Parted has detected libreiserfs interface version mismatch.
84 Found 1-1, required 0. ReiserFS support will be disabled.
85 GNU Parted 1.8.8
86 Using /dev/sda
87 Welcome to GNU Parted! Type 'help' to view a list of commands.
88 (parted) p
89 Model: Crucial Gizmo! overdrive (scsi)
90 Disk /dev/sda: 1023MB
91 Sector size (logical/physical): 512B/512B
92 Partition Table: loop
93
94 Number Start End Size File system Flags
95 1 0.00B 1023MB 1023MB fat16
96 ======================================
97 --
98 Regards,
99 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Formating a USB stick Neil Bothwick <neil@××××××××××.uk>