View previous topic :: View next topic |
Author |
Message |
gerard27 Advocate

Joined: 04 Jan 2004 Posts: 2377 Location: Netherlands
|
Posted: Mon Aug 04, 2014 1:43 pm Post subject: Weird output of fdisk [SOLVED] |
|
|
I am running ~amd64 if it matters.
When I enter "fdisk -l" I get this Code: |
fdisk -l
fdisk: cannot open /dev/sr0: No medium found |
Here's the contents of /proc/partitions Code: |
major minor #blocks name
11 0 1048575 sr0
11 1 1048575 sr1
8 0 488386584 sda
8 1 112423 sda1
8 2 62914560 sda2
8 3 425359569 sda3
8 32 488386584 sdc
8 33 102400 sdc1
8 34 104857600 sdc2
8 35 104857600 sdc3
8 36 1 sdc4
8 37 104857600 sdc5
8 38 104857600 sdc6
8 39 68849688 sdc7
8 16 488386584 sdb
8 17 10485760 sdb1
8 18 104857600 sdb2
8 19 104857422 sdb3
8 20 1 sdb4
8 21 104857600 sdb5
8 22 163324952 sdb6 |
I have a second Gentoo install (~amd64 too) which I use to make backups on a USB HD of my "day-to-day" Gentoo.
On this one fdisk -l works as to be expected and /proc/partitions is identical.
Both installs have the same binutils version.
I need fdisk -l for when I want to copy stuff to a USB stick to make sure of the sdx it gets.
(fdisk /dev/sda works fine).
I've tried downgrading binutils but that didn't make any difference.
I am at a loss what causes this.
Thanks in advance for any help.
Gerard. _________________ To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download
Last edited by gerard27 on Tue Aug 05, 2014 1:08 pm; edited 1 time in total |
|
Back to top |
|
 |
py-ro Veteran


Joined: 24 Sep 2002 Posts: 1734 Location: Velbert
|
Posted: Mon Aug 04, 2014 3:02 pm Post subject: |
|
|
/dev/s(csi)r(aw) ist most probably not what you want. If recognized, the USB-HDD should be something like /dev/sd?
Look at your dmesg output to get more Information.
/dev/sr0 is most probably a optical drive, a scanner or something like that.
Bye
Py |
|
Back to top |
|
 |
gerard27 Advocate

Joined: 04 Jan 2004 Posts: 2377 Location: Netherlands
|
Posted: Mon Aug 04, 2014 3:41 pm Post subject: |
|
|
Thanks for answering py-ro.
I apparently didn't make myself clear enough.
The sr0 and sr1 are optical drives (RAM and ROM).
Fdisk shouldn't be reading them.
This is what I should get w/o a USB stick attached. Code: |
localhost ~ # fdisk -l
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 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
Disklabel type: dos
Disk identifier: 0xa0fa5462
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 63 224909 224847 109.8M 83 Linux
/dev/sda2 224910 126054029 125829120 60G 83 Linux
/dev/sda3 126054030 976773167 850719138 405.7G 83 Linux
Disk /dev/sdc: 465.8 GiB, 500107862016 bytes, 976773168 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
Disklabel type: dos
Disk identifier: 0x7de178fa
Device Boot Start End Sectors Size Id Type
/dev/sdc1 2048 206847 204800 100M 83 Linux
/dev/sdc2 206848 209922047 209715200 100G 83 Linux
/dev/sdc3 209922048 419637247 209715200 100G 83 Linux
/dev/sdc4 419637248 976773167 557135920 265.7G 5 Extended
/dev/sdc5 419639296 629354495 209715200 100G 83 Linux
/dev/sdc6 629356544 839071743 209715200 100G 83 Linux
/dev/sdc7 839073792 976773167 137699376 65.7G 83 Linux
Disk /dev/sdb: 465.8 GiB, 500107862016 bytes, 976773168 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
Disklabel type: dos
Disk identifier: 0x000cf4c4
Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 20973567 20971520 10G 82 Linux swap / Solaris
/dev/sdb2 20973568 230688767 209715200 100G 83 Linux
/dev/sdb3 230688768 440403611 209714844 100G 83 Linux
/dev/sdb4 440406014 976773167 536367154 255.8G 5 Extended
/dev/sdb5 440406016 650121215 209715200 100G 83 Linux
/dev/sdb6 * 650123264 976773167 326649904 155.8G 83 Linux
|
I loaded cd's in both optical drives to make fdisk behave normally.
As you can see they are not listed.
Why does it stop when there's no cd's loaded? It shouldn't.
Gerard. _________________ To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download |
|
Back to top |
|
 |
gerard27 Advocate

Joined: 04 Jan 2004 Posts: 2377 Location: Netherlands
|
Posted: Tue Aug 05, 2014 1:07 pm Post subject: |
|
|
Well my bad.
Fdisk is not part of binutils but of util-linux.
After downgrading from 2.25 to 2.24.2 fdisk works fine.
Gerard. _________________ To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download |
|
Back to top |
|
 |
|