LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 08-27-2012, 03:10 PM   #1
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,771
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
partitions on "thumb" drives


I see the following:
Code:
prompt$ sudo fdisk -l /dev/sdb1

Disk /dev/sdb1: 16.0 GB, 16009641984 bytes
64 heads, 32 sectors/track, 15267 cylinders, total 31268832 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: 0x34704b1b

     Device Boot      Start         End      Blocks   Id  System
/dev/sdb1p1   *           0      854015      427008   17  Hidden HPFS/NTFS
/dev/sdb1p4          854016    31268831    15207408    b  W95 FAT32
However, I get the following when I try to prepare the file system:
Code:
prompt$ sudo mkfs.vfat -n "TH-RscuData" /dev/sdb1p4

mkfs.vfat 3.0.9 (31 Jan 2010)
/dev/sdb1p4: No such file or directory
--and--
Code:
prompt$ sudo mkfs.vfat -n "TH-RscuData" /dev/sdb4

mkfs.vfat 3.0.9 (31 Jan 2010)
/dev/sdb4: No such file or directory
The target media is a Verbatim 16Gbyte "thumb" drive.
It already has the Clonzilla-SystemRescueCD parts installed per USB Instructions and related pages.
Can someone please help?

Follow-up:
When I connect the "thumb" drive, I get an automatic mount of the initial partition at /dev/sdb1. I would expect that other partitions on that device, aka -- "sdb", would follow as "/dev/sdb1", "/dev/sdb2", "/dev/sdb3", "/dev/sdb4" ... and so on.

Instead, fdisk reports "sdb1p1", "sdb1p4" ...
What is that all about?

Also, gparted reports there is only one partition on the device and that it consumes the entire thumb drive.

Now I'm thoroughly confused.


Thanks in advance,
~~~ 0;-Dan

Last edited by SaintDanBert; 08-27-2012 at 03:19 PM.
 
Old 08-27-2012, 03:54 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,679

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
You created a partition table and partitions within a partition. I assume when you created the additional partitions you ran the command fdisk /dev/sdb1 instead of fdisk /dev/sdb.

The partition table which is part of the MBR is not associated with a partition and I assume that gparted will only read the MBR.

Last edited by michaelk; 08-27-2012 at 03:56 PM.
 
1 members found this post helpful.
Old 08-27-2012, 04:39 PM   #3
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,771

Original Poster
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
Quote:
Originally Posted by michaelk View Post
You created a partition table and partitions within a partition. I assume when you created the additional partitions you ran the command fdisk /dev/sdb1 instead of fdisk /dev/sdb.

The partition table which is part of the MBR is not associated with a partition and I assume that gparted will only read the MBR.
(blush)
up-arrow edits to commands will help make those mistakes
...

I repeated the process from scratch and noticed my error then.
Thanks for a reply to such an obvious SNAFU.

However, when I look at the newly re-made thumb drive, parted continues to complain.
Code:
prompt$ sudo parted /dev/sdb

...
Error: Invalid partition table - recursive partition on /dev/sdb.         
Ignore/Cancel? ignore                                                     

Model: Verbatim STORE N GO (scsi)
Disk /dev/sdb: 16.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number  Start  End     Size    Type     File system  Flags
 2      437MB  16.0GB  15.6GB  primary  fat32
...
NOTE -- Unrelated device and partition details omitted.

Can anyone explain this?
~~~ 0;-Dan

Last edited by SaintDanBert; 08-27-2012 at 04:40 PM.
 
Old 08-27-2012, 05:02 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,679

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
Not at the moment but it could be related to you having a sdb2 instead of sdb1.
 
Old 08-27-2012, 09:26 PM   #5
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,771

Original Poster
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
Could be...

re: your signature quote. I like this one:
"Never tell a young person that anything cannot be done. God may have been waiting centuries for someone ignorant enough of the impossible to do that very thing." - G M Trevelyan
 
  


Reply



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
Debian "Squeeze" on a thumb drive ? BuckNekkid Linux - Newbie 8 07-16-2012 10:29 AM
Bootable USB Thumb Drive fails with "ERROR: Failed to mount real root device" bsquared Linux - General 7 08-08-2011 11:16 AM
"Cap-less" USB Thumb/Flash drives - difference in life expectancy? SilversleevesX General 2 08-03-2010 12:05 PM
hard drives come up "no partition table" and "in use by another program" marti972 Linux - Newbie 3 03-16-2009 11:44 PM
How to Create a "Live Thumb Drive"? edwin11 Linux - Software 4 03-15-2006 02:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:15 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration