change name
Mike Ballon
mike.ballon at gmail.com
Tue May 6 11:23:26 MST 2014
After the 1 is t, 1 might have been selected for you by default.
start over...
$> fdisk /dev/sdd
$> Command > o (create new table)
$> Command > n (create part, 1 would be the default, maybe you don't need
the 1)
$> Command > 1 (press enter 3times) -- again maybe you don't need the one
$> Command > t (select fs type)
$> Command > b (selects fat for fs)
$> Command > p (print the table)
$> Command > w (write the changes)
don't make me do a video I don't have time ;)
On Tue, May 6, 2014 at 1:57 PM, Michael Havens <bmike1 at gmail.com> wrote:
> Okay.... I think I really screwed things up. YOu said:
>
> $> fdisk /dev/sdb
> $> Command > o
> $> Command > n
> $> Command > 1 (press enter 3times)
> $> Command > t
> $> Command > b
> $> Command > w
> $> Command > p
>
> ***The above didn't look like that. There was no '$>'
> But I figured your computer was just configured differently
> so I carried on!
>
> bmike1 at PresarioLapTop1:/media/bmike1/OpenELEC$ sudo fdisk /dev/sdd
>
> Command (m for help): o
> Building a new DOS disklabel with disk identifier 0xf66cb38c.
> Changes will remain in memory only, until you decide to write them.
> After that, of course, the previous content won't be recoverable.
>
> Warning: invalid flag 0x0000 of partition table 4 will be corrected by
> w(rite)
>
> Command (m for help): n
> Partition type:
> p primary (0 primary, 0 extended, 4 free)
> e extended
> Select (default p): p
> Partition number (1-4, default 1):
> Using default value 1
> First sector (2048-3913663, default 2048):
> Using default value 2048
> Last sector, +sectors or +size{K,M,G} (2048-3913663, default 3913663):
> Using default value 3913663
>
> Command (m for help): 1
> 1: unknown command
> Command action
> a toggle a bootable flag
> b edit bsd disklabel
> c toggle the dos compatibility flag
> d delete a partition
> l list known partition types
> m print this menu
> n add a new partition
> o create a new empty DOS partition table
> p print the partition table
> q quit without saving changes
> s create a new empty Sun disklabel
> t change a partition's system id
> u change display/entry units
> v verify the partition table
> w write table to disk and exit
> x extra functionality (experts only)
>
> Command (m for help): t
> Selected partition 1
> Hex code (type L to list codes):
> Hex code (type L to list codes): w
> Hex code (type L to list codes): ^[^[
> Hex code (type L to list codes):
> Hex code (type L to list codes): ^Cbmike1 at PresarioLapTop1:/media/bmike1/OpenELEC$
> sudo fdisk /dev/sdd
>
> Command (m for help): o
> Building a new DOS disklabel with disk identifier 0xbdd16f92.
> Changes will remain in memory only, until you decide to write them.
> After that, of course, the previous content won't be recoverable.
>
> Warning: invalid flag 0x0000 of partition table 4 will be corrected by
> w(rite)
>
> Command (m for help): n
> Partition type:
> p primary (0 primary, 0 extended, 4 free)
> e extended
> Select (default p): b
> Invalid partition type `b'
>
> Command (m for help): n
> Partition type:
> p primary (0 primary, 0 extended, 4 free)
> e extended
> Select (default p): p
> Partition number (1-4, default 1):
> Using default value 1
> First sector (2048-3913663, default 2048):
> Using default value 2048
> Last sector, +sectors or +size{K,M,G} (2048-3913663, default 3913663):
> Using default value 3913663
>
> Command (m for help): b
> There is no *BSD partition on /dev/sdd.
>
> Command (m for help): w
> The partition table has been altered!
>
> Calling ioctl() to re-read partition table.
> Syncing disks.
> bmike1 at PresarioLapTop1:/media/bmike1/OpenELEC$ sudo fdisk /dev/sdd
>
> Command (m for help): p
>
> Disk /dev/sdd: 2003 MB, 2003795968 bytes
> 11 heads, 4 sectors/track, 88946 cylinders, total 3913664 sectors
> Units = sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disk identifier: 0xbdd16f92
>
> Device Boot Start End Blocks Id System
> /dev/sdd1 2048 3913663 1955808 83 Linux
>
> Command (m for help): ^[[B^[[A^[
> [: unknown command
> Command action
> a toggle a bootable flag
> b edit bsd disklabel
> c toggle the dos compatibility flag
> d delete a partition
> l list known partition types
> m print this menu
> n add a new partition
> o create a new empty DOS partition table
> p print the partition table
> q quit without saving changes
> s create a new empty Sun disklabel
> t change a partition's system id
> u change display/entry units
> v verify the partition table
> w write table to disk and exit
> x extra functionality (experts only)
>
> Command (m for help): q
>
> sudo fdisk -l /dev/sdd1
>
> Disk /dev/sdd1: 2001 MB, 2001731584 bytes
> 62 heads, 62 sectors/track, 1017 cylinders, total 3909632 sectors
> Units = sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disk identifier: 0x20ac7dda
>
> This doesn't look like a partition table
> Probably you selected the wrong device.
>
> Device Boot Start End Blocks Id System
> /dev/sdd1p1 ? 3224498923 3657370039 216435558+ 7 HPFS/NTFS/exFAT
> /dev/sdd1p2 ? 3272020941 930513678 976730017 16 Hidden FAT16
> /dev/sdd1p3 ? 0 0 0 6f Unknown
> /dev/sdd1p4 50200576 974536369 462167897 0 Empty
>
> Partition table entries are not in disk order
>
> ****Now when I plug the USB drive in and it automounts nothing new appears
> in the file manager. SO I ran another program to see what it says:
>
> bmike1 at PresarioLapTop1:/media/bmike1/OpenELEC$ sudo sfdisk /dev/sdd
> Checking that no-one is using this disk right now ...
> OK
>
> Disk /dev/sdd: 1018 cylinders, 62 heads, 62 sectors/track
> Old situation:
> Warning: The partition table looks like it was made
> for C/H/S=*/11/4 (instead of 1018/62/62).
> For this listing I'll assume that geometry.
> Units = cylinders of 22528 bytes, blocks of 1024 bytes, counting from 0
>
> Device Boot Start End #cyls #blocks Id System
> /dev/sdd1 46+ 88946- 88901- 1955808 83 Linux
> start: (c,h,s) expected (46,6,1) found (1,78,9)
> end: (c,h,s) expected (1023,10,4) found (34,10,4)
> /dev/sdd2 0 - 0 0 0 Empty
> /dev/sdd3 0 - 0 0 0 Empty
> /dev/sdd4 0 - 0 0 0 Empty
> Input in the following format; absent fields get a default value.
> <start> <size> <type [E,S,L,X,hex]> <bootable [-,*]> <c,h,s> <c,h,s>
> Usually you only need to specify <start> and <size> (and perhaps <type>).
>
> /dev/sdd1 :?
> trailing junk after number
>
> /dev/sdd1 :
>
>
> :-)~MIKE~(-:
>
>
> On Tue, May 6, 2014 at 7:29 AM, Mike Ballon <mike.ballon at gmail.com> wrote:
>
>> First I was wrong to say that /dev/sdd1 would not exist it you simply
>> unmounted it. I believe it can vary between a physical system and a VM.
>>
>> -- returns the memory stick i just plugged in and assigns device /dev/sdb
>>
>> $> dmesg
>>
>> [ 452.300827] scsi 3:0:0:0: Direct-Access Kingston DataTraveler 2.0
>> PMAP PQ: 0 ANSI: 4
>> [ 452.302226] sd 3:0:0:0: Attached scsi generic sg2 type 0
>> [ 452.316528] sd 3:0:0:0: [sdb] 15240576 512-byte logical blocks: (7.80
>> GB/7.26
>>
>> -- automount presents the stick to me because it has a file system
>>
>> $> mount | grep sdb
>>
>> /dev/sdb1 on /media/UNTITLED type vfat
>>
>> -- fdisk returns the partition info
>>
>> $> fdisk -l /dev/sdb
>>
>> Device Boot Start End Blocks Id System
>> /dev/sdb1 2 15240575 7620287 b W95 FAT32
>>
>> -- use fdisk to delete the partition
>>
>> $> fdisk /dev/sdb
>> $> Command > d
>> $> Command > w
>> $> Command > p
>>
>> Device Boot Start End Blocks Id System
>>
>> -- use fdisk to create the partition
>>
>> $> fdisk /dev/sdb
>> $> Command > o
>> $> Command > n
>> $> Command > 1 (press enter 3times)
>> $> Command > t
>> $> Command > b
>> $> Command > w
>> $> Command > p
>>
>> Device Boot Start End Blocks Id System
>> /dev/sdb1 2048 15240575 7619264 b W95 FAT32
>>
>> -- make the file system if needed, I say if needed because since the
>> partition is exactly the same and the fs is the same, automount mounted the
>> stick for me automagically
>>
>> $> umount /dev/sdb1
>> $> mkfs.vfat /dev/sdb1
>> $> mount /dev/sdb /mnt/foobar
>> $> touch /mnt/foobar/test.txt
>> $> ls /mnt/fobar
>>
>> test.txt
>>
>> -- oops forgot the renaming of volume, I'm on debian so
>>
>> $> apt-get install mtools
>>
>> Setting up mtools (4.0.17-1) ...
>>
>> $> mlabel -i /dev/sdb1 ::usb_stick
>>
>> again... gparted is your friend
>>
>>
>> On Tue, May 6, 2014 at 9:42 AM, Mike Ballon <mike.ballon at gmail.com>wrote:
>>
>>> if you unmounted then /dev/sdd1 would no longer be there.
>>>
>>> Give me a few mins and I'll spin up a VM (I'm on a Mac) and I'll run
>>> through all the steps for you.
>>>
>>>
>>> On Tue, May 6, 2014 at 3:34 AM, Michael Havens <bmike1 at gmail.com> wrote:
>>>
>>>> bummer.... new drive:
>>>>
>>>> mount
>>>> ...
>>>> /dev/sdd1 on /media/bmike1/OpenELEC type vfat
>>>> (rw,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks2)
>>>> <unmout device with file manager>
>>>> bmike1 at PresarioLapTop1:/media/bmike1/OpenELEC$ sudo mkfs -t vfat
>>>> /dev/sdd1
>>>> mkfs.vfat 3.0.13 (30 Jun 2012)
>>>> /dev/sdd1: No such file or directory
>>>> bmike1 at PresarioLapTop1:/media/bmike1/OpenELEC$
>>>> bmike1 at PresarioLapTop1:/media/bmike1/OpenELEC$ sudo mkfs -t vfat
>>>> /dev/sdd1
>>>> mkfs.vfat 3.0.13 (30 Jun 2012)
>>>> /dev/sdd1: No such file or directory
>>>> bmike1 at PresarioLapTop1:/media/bmike1/OpenELEC$ sudo e2label /dev/sdd1
>>>> Pny2G
>>>> e2label: No such file or directory while trying to open /dev/sdd1
>>>> Couldn't find valid filesystem superblock.
>>>>
>>>> what am I doing wrong?
>>>>
>>>> :-)~MIKE~(-:
>>>>
>>>>
>>>> On Mon, May 5, 2014 at 8:28 PM, Michael Havens <bmike1 at gmail.com>wrote:
>>>>
>>>>> that wouldn't change a vfat system but it inspired the correct search
>>>>> terms and I found 'dosfslabel'. Thanks for the help, man:D
>>>>>
>>>>> :-)~MIKE~(-:
>>>>>
>>>>>
>>>>> On Mon, May 5, 2014 at 7:50 PM, Ryan Rix <ry at n.rix.si> wrote:
>>>>>
>>>>>> Yeah, you're right Mike.
>>>>>>
>>>>>> https://help.ubuntu.com/community/RenameUSBDrive#FAT16_and_FAT32
>>>>>>
>>>>>> Michael Havens <bmike1 at gmail.com> writes:
>>>>>> > same thing:
>>>>>> >
>>>>>> > sudo e2label /dev/sdd1 Goodwill
>>>>>> > e2label: Bad magic number in super-block while trying to open
>>>>>> > /dev/sdd1
>>>>>> > Couldn't find valid filesystem superblock.
>>>>>> >
>>>>>> > could it be because it is a vfat file system? (while I love linux I
>>>>>> > like to have the ability for my flash drives to be used on common
>>>>>> > computers)
>>>>>> >
>>>>>> > :-)~MIKE~(-:
>>>>>> >
>>>>>> > On Mon, May 5, 2014 at 5:51 PM, Mike Ballon <mike.ballon at gmail.com>
>>>>>> > wrote:
>>>>>> >
>>>>>> > It's I file system label so yes, you'll need to format. If there
>>>>>> > is no partition will have to create a partition before you can
>>>>>> do
>>>>>> > a mkfs gparted should do all that for you
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> > On May 5, 2014 7:47 PM, "Michael Havens" <bmike1 at gmail.com>
>>>>>> wrote:
>>>>>> >
>>>>>> >
>>>>>> > Thanks Mike. Does this error mean I need to format the
>>>>>> drive?
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> > sudo e2label /dev/sdc1 Goodwill
>>>>>> > e2label: Bad magic number in super-block while trying to
>>>>>> open
>>>>>> > /dev/sdc1
>>>>>> > Couldn't find valid filesystem superblock.
>>>>>> >
>>>>>> >
>>>>>> > This is what 'mount' shows sdc1 to be:
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> > /dev/sdc1 on /media/bmike1/OpenELEC type vfat
>>>>>> >
>>>>>> (rw,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,
>>>>>> > showexec,flush,uhelper=udisks2)
>>>>>> >
>>>>>> >
>>>>>> > and to format this and apply the label it would be:
>>>>>> >
>>>>>> > mkfs -t vfat /dev/sdc1;e2label /dev/sdc1 Goodwill
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> > :-)~MIKE~(-:
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> > On Mon, May 5, 2014 at 4:08 PM, Mike Ballon
>>>>>> > <mike.ballon at gmail.com> wrote:
>>>>>> >
>>>>>> >
>>>>>> > e2label
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> > On Mon, May 5, 2014 at 7:05 PM, Michael Havens
>>>>>> > <bmike1 at gmail.com> wrote:
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> > I have a few flash drives. When I plug them in to my
>>>>>> > computer a name referring to that flash drive
>>>>>> appears
>>>>>> > in the file manager. I have two questions: the first
>>>>>> > is how do I change that name? The second is how do I
>>>>>> > set that name when I format the drive?
>>>>>> >
>>>>>> > :-)~MIKE~(-:
>>>>>> >
>>>>>> >
>>>>>> > ---------------------------------------------------
>>>>>> > PLUG-discuss mailing list -
>>>>>> > PLUG-discuss at lists.phxlinux.org
>>>>>> > To subscribe, unsubscribe, or to change your mail
>>>>>> > settings:
>>>>>> >
>>>>>> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> > ---------------------------------------------------
>>>>>> > PLUG-discuss mailing list -
>>>>>> > PLUG-discuss at lists.phxlinux.org
>>>>>> > To subscribe, unsubscribe, or to change your mail
>>>>>> > settings:
>>>>>> > http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> > ---------------------------------------------------
>>>>>> > PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
>>>>>> > To subscribe, unsubscribe, or to change your mail settings:
>>>>>> > http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>>>>>> >
>>>>>> > ---------------------------------------------------
>>>>>> > PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
>>>>>> > To subscribe, unsubscribe, or to change your mail settings:
>>>>>> > http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>>>>>> >
>>>>>> >
>>>>>> > ---------------------------------------------------
>>>>>> > PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
>>>>>> > To subscribe, unsubscribe, or to change your mail settings:
>>>>>> > http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>>>>>> ---------------------------------------------------
>>>>>> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
>>>>>> To subscribe, unsubscribe, or to change your mail settings:
>>>>>> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>>>>>>
>>>>>
>>>>>
>>>>
>>>> ---------------------------------------------------
>>>> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
>>>> To subscribe, unsubscribe, or to change your mail settings:
>>>> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>>>>
>>>
>>>
>>
>> ---------------------------------------------------
>> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
>> To subscribe, unsubscribe, or to change your mail settings:
>> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>>
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phxlinux.org/pipermail/plug-discuss/attachments/20140506/aa5c8be8/attachment.html>
More information about the PLUG-discuss
mailing list