LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-19-2009, 09:31 PM   #1
Isix
Member
 
Registered: Mar 2007
Location: Windhoek, Namibia
Distribution: Slackware, Kubuntu, Mandriva & PCLinuxOS
Posts: 80

Rep: Reputation: 18
Crasy "fdisk -l" output


In Kubuntu, after mounting a 8GB vfat USB stick, and doing "fdisk -l" I get:
Code:
delbert@delbert:~$ sudo fdisk -l                                            
[sudo] password for delbert:                                                

Disk /dev/sda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0006bb9d                     

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        2006    16113163+  83  Linux 
/dev/sda2            2007        7296    42491925    5  Extended
/dev/sda5            2007        3975    15815961   83  Linux   
/dev/sda6            3976        4113     1108453+  82  Linux swap / Solaris
/dev/sda7            4114        7296    25567416   83  Linux               

Disk /dev/sdc: 8086 MB, 8086618112 bytes
249 heads, 62 sectors/track, 1023 cylinders
Units = cylinders of 15438 * 512 = 7904256 bytes
Disk identifier: 0x2c6b7369

This doesn't look like a partition table
Probably you selected the wrong device.

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   ?      125407      245362   925929529+  68  Unknown
Partition 1 has different physical/logical beginnings (non-Linux?):
     phys=(116, 100, 32) logical=(125406, 168, 29)
Partition 1 has different physical/logical endings:
     phys=(288, 101, 46) logical=(245361, 67, 59)
Partition 1 does not end on cylinder boundary.
/dev/sdc2   ?       86163      121076   269488144   79  Unknown
Partition 2 has different physical/logical beginnings (non-Linux?):
     phys=(357, 32, 43) logical=(86162, 245, 47)
Partition 2 has different physical/logical endings:
     phys=(0, 13, 10) logical=(121075, 74, 42)
Partition 2 does not end on cylinder boundary.
/dev/sdc3   ?       34914      125493   699181456   53  OnTrack DM6 Aux3
Partition 3 has different physical/logical beginnings (non-Linux?):
     phys=(345, 32, 19) logical=(34913, 40, 18)
Partition 3 has different physical/logical endings:
     phys=(324, 77, 19) logical=(125492, 109, 49)
Partition 3 does not end on cylinder boundary.
/dev/sdc4   ?       90338       90339       10668+  49  Unknown
Partition 4 has different physical/logical beginnings (non-Linux?):
     phys=(87, 1, 0) logical=(90337, 81, 36)
Partition 4 has different physical/logical endings:
     phys=(335, 78, 2) logical=(90338, 176, 44)
Partition 4 does not end on cylinder boundary.

Partition table entries are not in disk order
Anybody with any idea what went wrong here? Should I format the USB stick in linux?

Isix
 
Old 01-20-2009, 02:02 PM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
looks good to me sdc is an incrypted windows partion. If it isn't then it needs to be
dosfsck -f -r /dev/sdc but this looks like a fresh install and the program wrote the fstab as it was seen. if dosfsck -f -r /dev/sdc does not repair then it is encrypted.
my choice would to wipe out all the non linux partions and use all linux.
if you cfdisk /dev/sdc it will return bad block or bad stuff. and if you try to fdisk /dev/sdc and it does not work it is encrypted. you will need to use the program that encrypted it to fix or repair or format. good luck.
 
Old 01-21-2009, 10:50 PM   #3
Isix
Member
 
Registered: Mar 2007
Location: Windhoek, Namibia
Distribution: Slackware, Kubuntu, Mandriva & PCLinuxOS
Posts: 80

Original Poster
Rep: Reputation: 18
Thanks I did the filesystem checks --- note that today the system read the USB stick as sdb and not as sdc:
Code:
delbert@delbert:~/Documents$ sudo dosfsck -f -r /dev/sdb
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
/dev/sdb: 3 files, 245785/493326 clusters
As you said for:

Code:
sudo cfdisk /dev/sdc
I get a black screen with:
"FATAL ERROR: Bad primary partition 0: Partition begins after end-of-disk: Press any key to exit cfdisk"

So this means that the USB is a FAT32. Should I re-format it as FAT32 with Kubuntu's partition editor, because I have no idea what programme formatted it initially --- just bought it now. I would like the stick to be read by a Winblows machine as well, hence the vfat-like type I want.
 
Old 01-21-2009, 11:07 PM   #4
vinnywrite
Member
 
Registered: Jan 2007
Location: lexington NC.
Distribution: Ultimalinux 8.4 & Slackware 12.0.0
Posts: 82

Rep: Reputation: 16
it nead's to stay FAT32 if it's gowing to be seen by windows.

why do yo want to format it?

I have a 2 Gig and have formated it partitioned it and used it to death and it still works fine.

rite now it reads as

Model: Tribeca (scsi)
Disk /dev/sda: 2097MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 32.3kB 1629MB 1629MB primary fat32 boot
3 1629MB 1678MB 49.4MB primary fat16
2 1678MB 2089MB 411MB extended
5 1678MB 2089MB 411MB logical linux-swap


(parted)

and runs a live distro ;-)
 
Old 01-21-2009, 11:22 PM   #5
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
ok here is the problem the only time I have ever seen an out put on a drive like that was a usb flash pen. and I had to /fdisk/ /dev/sdc/
and delete all the partitions then create a new one then format it as 0b
b win 95 32 then your done now windows can use it and linux can use it.
if it does not take then you have to reformat it with windows and the company's software.
 
Old 01-21-2009, 11:36 PM   #6
vinnywrite
Member
 
Registered: Jan 2007
Location: lexington NC.
Distribution: Ultimalinux 8.4 & Slackware 12.0.0
Posts: 82

Rep: Reputation: 16
I think fdisk has issues with larg partitions use parted if you have it.

ya why not?---- repartition and format as 1 big FAT32
 
  


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
Command which gives "scsi disk out put and fdisk -l output" vnykr Linux - Enterprise 5 12-18-2008 10:58 PM
"failed to execute child process" "Input/output error" fl.bratu Fedora 4 12-15-2008 04:03 AM
Feeding the output of "diff" or "cat" command to dpkg --purge kushalkoolwal Debian 9 06-19-2008 07:27 AM
lilo says, "L 01 01 01" and fdisk says, "Unable to seek on /dev/hda1" clausawits Linux - General 3 12-31-2007 09:33 PM
fdisk reports odd "Start "and "End" sectors on single partition eponymous Linux - Software 3 10-01-2007 03:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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