LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 04-07-2013, 06:58 AM   #1
validator456
Member
 
Registered: Apr 2013
Location: Rotterdam, The Netherlands
Distribution: Crunchbang Linux
Posts: 80

Rep: Reputation: Disabled
Flash drive problem


I want to make a bootable Puppy Linux flash drive. Followed the instructions on the site and received the warning that the flash drive format was vfat.
So I wanted to format it to ext3. I run the terminal (in Crunchbang Linux), went into root and I got this warning:
Quote:
root@peek:~# sudo gparted
======================
libparted : 2.3
======================
Backtrace has 16 calls on stack:
16: /lib/libparted.so.0(ped_assert+0x2a) [0xb769fdba]
15: /lib/libparted.so.0(+0x43ae7) [0xb76d6ae7]
14: /lib/libparted.so.0(+0x44907) [0xb76d7907]
13: /lib/libparted.so.0(+0x45bfc) [0xb76d8bfc]
12: /lib/libparted.so.0(+0x11631) [0xb76a4631]
11: /lib/libparted.so.0(ped_disk_add_partition+0x262) [0xb76a7ec2]
10: /lib/libparted.so.0(+0x47bb5) [0xb76dabb5]
9: /lib/libparted.so.0(+0x47dbf) [0xb76dadbf]
8: /lib/libparted.so.0(ped_disk_new+0x75) [0xb76a8c95]
7: /usr/sbin/gpartedbin() [0x8091e96]
6: /usr/sbin/gpartedbin() [0x80a1bf5]
5: /usr/sbin/gpartedbin() [0x80c30f2]
4: /usr/lib/libglibmm-2.4.so.1(+0x320c2) [0xb6e800c2]
3: /lib/libglib-2.0.so.0(+0x656cf) [0xb6d0a6cf]
2: /lib/i686/cmov/libpthread.so.0(+0x5955) [0xb6b57955]
1: /lib/i686/cmov/libc.so.6(clone+0x5e) [0xb6ad71de]
Assertion (head_size <= 63) at ../../../libparted/labels/dos.c:662 in function probe_partition_for_geom() failed.
I tried a different approach. I run gparted in root but without the flash drive mounted. Then I plugged in the flash drive. Then I got this:
Quote:
Failed to mount "Flash drive" The enclosing drive for the volume is locked.
Why can I not format my flash drive? Is there another way to do it?
 
Old 04-07-2013, 10:27 AM   #2
yooy
Senior Member
 
Registered: Dec 2009
Posts: 1,143

Rep: Reputation: 133Reputation: 133
maybe your flash drive is corrupt?
i make bootable usb keys with unetbootin on ntfs filesystem.
 
Old 04-07-2013, 10:41 AM   #3
validator456
Member
 
Registered: Apr 2013
Location: Rotterdam, The Netherlands
Distribution: Crunchbang Linux
Posts: 80

Original Poster
Rep: Reputation: Disabled
/dev/sdb1 on /media/FLASH DRIVE type vfat (rw,nosuid,nodev,uhelper=hal,uid=1000,shortname=winnt)

This is the (part) result of mount-v.

Apparently, the flash drive is not corrupt.
 
Old 04-07-2013, 10:44 AM   #4
rokytnji
Senior Member
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: AntiX 13 , MacPup,Slack0,MX-14, SaliX
Posts: 2,620
Blog Entries: 17

Rep: Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841
post the output as root in crunchbang

Code:
 fdisk -l
and also

Code:
blkid
with usb drive plugged in.

http://crunchbang.org/forums/viewtopic.php?id=14034
 
Old 04-07-2013, 11:19 AM   #5
validator456
Member
 
Registered: Apr 2013
Location: Rotterdam, The Netherlands
Distribution: Crunchbang Linux
Posts: 80

Original Poster
Rep: Reputation: Disabled
Result fdisk -l:

Quote:
Disk /dev/sda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000ba854

Device Boot Start End Blocks Id System
/dev/sda1 * 1 4663 37447680 83 Linux
/dev/sda2 4663 4866 1632257 5 Extended
/dev/sda5 4663 4866 1632256 82 Linux swap / Solaris

Disk /dev/sdb: 3867 MB, 3867770880 bytes
101 heads, 37 sectors/track, 2021 cylinders
Units = cylinders of 3737 * 512 = 1913344 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc3072e18

Device Boot Start End Blocks Id System
/dev/sdb1 3 2022 3773088 c W95 FAT32 (LBA)
Result blkid:

Quote:
root@peek:~# blkid
/dev/sda1: UUID="06955bf5-1602-4f23-b005-13a7987dce98" TYPE="ext4"
/dev/sda5: UUID="0bf7eb47-6910-4d07-9a24-b6b92409511a" TYPE="swap"
/dev/sdb1: LABEL="FLASH DRIVE" UUID="8C56-F3AF" TYPE="vfat"
 
Old 04-07-2013, 12:39 PM   #6
rokytnji
Senior Member
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: AntiX 13 , MacPup,Slack0,MX-14, SaliX
Posts: 2,620
Blog Entries: 17

Rep: Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841
Ok. /dev/sdb is being seen and is formatted as vfat (probably fat32)


Did you check out that crunchbang link I provided? Especially posts 8 and the ones on down from there?

Edit: by the way. I have made multiple bootable Puppy flashdrives using fat32 as the starting file system. I used Unetbootin (linux version)
and a downloaded Puppy Iso (md5sum checked by me) from the /Downloads folder in AntiX which is like Crunchbang (kinda sorta with more features IMO). Also I have used Semplice Linux like this also.

Anyways, after puppy boots up. I shutdown and make a 512MB save file first. Then reboot the pendrive. Install grub4dos. It has more features than syslinux bootloader provided by unetbootin. Do my Network Connections. Then shutdown and reboot again to check my changes are good to go. This runs Puppy as a frugal install with persistence on the pendrive the way I do it.

Last edited by rokytnji; 04-07-2013 at 12:47 PM.
 
Old 04-07-2013, 01:10 PM   #7
validator456
Member
 
Registered: Apr 2013
Location: Rotterdam, The Netherlands
Distribution: Crunchbang Linux
Posts: 80

Original Poster
Rep: Reputation: Disabled
Okay, after reading the (Crunchbang)link you provided, and after reading it again, and another time, I think I get it.

I think I can use cfdisk to do the job, that is formatting it to ext3.
I will try it tomorrow.
Thank you for your reactions, all of you. I will let you know.
 
Old 04-08-2013, 01:19 AM   #8
validator456
Member
 
Registered: Apr 2013
Location: Rotterdam, The Netherlands
Distribution: Crunchbang Linux
Posts: 80

Original Poster
Rep: Reputation: Disabled
After getting another errormessage with cfdisk, I decided to do it differently alltogether and used parted magic live CD. And that worked.
 
Old 04-08-2013, 01:11 PM   #9
rokytnji
Senior Member
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: AntiX 13 , MacPup,Slack0,MX-14, SaliX
Posts: 2,620
Blog Entries: 17

Rep: Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841
Quote:
Originally Posted by validator456 View Post
After getting another errormessage with cfdisk, I decided to do it differently alltogether and used parted magic live CD. And that worked.
I keep a parted magic live iso on file just because. It makes a good wrench in issues like these. Glad you got it sorted.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
USB Flash Drive Problem - Light glows, but drive is not detected MihirSahasrabudhe Linux - Hardware 5 07-07-2010 08:51 AM
problem with flash drive p3ngu1n Linux - Hardware 1 07-13-2007 01:02 AM
problem using flash drive olaiya Linux - Newbie 6 12-24-2006 01:15 AM
LXer: EDGE Tech Corp Announces Portable Flash Drive With Muscle - the New 8GB DiskGO!(TM) Now Available; Swap and Go With This Secure Thumb-Sized Flash Drive LXer Syndicated Linux News 0 12-14-2005 02:16 AM
Flash Drive Problem penkala Linux - Newbie 6 05-12-2004 12:29 PM


All times are GMT -5. The time now is 07:29 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration