Cannot create partition: "Unable to read /dev/sdd"
I connected a new internal HDD to my headless ubuntu server and would like to partition it so I can copy my existing system disk to it (the existing disk is way low on free space and the new disk is larger.)
The disk shows in /dev/sdd (there is not sdd1 or any partitions showing). Yet the new disk does not show up using fdisk -l and attempts to mount keep referring to fstab.
Code:
tom@HouseMedia:/$ mount /dev/sdd
mount: can't find /dev/sdd in /etc/fstab or /etc/mtab
tom@HouseMedia:/$ mount /dev/sdd1
mount: can't find /dev/sdd1 in /etc/fstab or /etc/mtab
I had previously mounted and partition this drive but after using dd to restore a disk image of my existing system disk, the new disk was still empty. I'm a little lost on what exactly is wrong and would appreciate some help on getting back to square one again!
Re: Cannot create partition: "Unable to read /dev/sdd"
Quote:
Originally Posted by
antiartist
I connected a new internal HDD to my headless ubuntu server and would like to partition it so I can copy my existing system disk to it (the existing disk is way low on free space and the new disk is larger.)
The disk shows in /dev/sdd (there is not sdd1 or any partitions showing). Yet the new disk does not show up using fdisk -l and attempts to mount keep referring to fstab.
Code:
tom@HouseMedia:/$ mount /dev/sdd
mount: can't find /dev/sdd in /etc/fstab or /etc/mtab
tom@HouseMedia:/$ mount /dev/sdd1
mount: can't find /dev/sdd1 in /etc/fstab or /etc/mtab
I had previously mounted and partition this drive but after using dd to restore a disk image of my existing system disk, the new disk was still empty. I'm a little lost on what exactly is wrong and would appreciate some help on getting back to square one again!
You need to partition the new disk (fdisk and mk2fs) before you can mount it. If the disk is larger than 2GB then you will need to use parted (gparted) to partition the disk.
In any event you mount partitions (sdd1) not disks (sdd).
Re: Cannot create partition: "Unable to read /dev/sdd"
Quote:
Originally Posted by
bab1
You need to partition the new disk (fdisk and mk2fs) before you can mount it. If the disk is larger than 2GB then you will need to use parted (gparted) to partition the disk.
In any event you mount partitions (sdd1) not disks (sdd).
Thanks for the clarification about what I'm mounting (partitions, not disks). I get confused :)
Using fdisk to create the partitions isn't working...
Code:
tom@HouseMedia:~$ sudo fdisk /dev/sdd
[sudo] password for tom:
Unable to read /dev/sdd
tom@HouseMedia:~$
Both disks are less than 2 TB (which is what I assume you meant, not 2 GB).
Re: Cannot create partition: "Unable to read /dev/sdd"
Quote:
Originally Posted by
antiartist
Thanks for the clarification about what I'm mounting (partitions, not disks). I get confused :)
Using fdisk to create the partitions isn't working...
Code:
tom@HouseMedia:~$ sudo fdisk /dev/sdd
[sudo] password for tom:
Unable to read /dev/sdd
tom@HouseMedia:~$
Both disks are less than 2 TB (which is what I assume you meant, not 2 GB).
Yes I meant 2TB.
Post the output of
Re: Cannot create partition: "Unable to read /dev/sdd"
The disk doesn't show in fdisk -l
Code:
tom@HouseMedia:~$ sudo fdisk -l
Disk /dev/sda: 10.3 GB, 10254827520 bytes
255 heads, 63 sectors/track, 1246 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: 0x00018313
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1188 9537536 83 Linux
/dev/sda2 1188 1247 474113 5 Extended
/dev/sda5 1188 1247 474112 82 Linux swap / Solaris
Disk /dev/sdb: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 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: 0x0005f5c2
Device Boot Start End Blocks Id System
/dev/sdb1 1 38913 312568641 7 HPFS/NTFS
Disk /dev/sdc: 1500.3 GB, 1500301910016 bytes
255 heads, 63 sectors/track, 182401 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: 0x3e6caab7
Device Boot Start End Blocks Id System
/dev/sdc1 1 182401 1465136001 7 HPFS/NTFS
tom@HouseMedia:~$
Re: Cannot create partition: "Unable to read /dev/sdd"
Quote:
Originally Posted by
antiartist
The disk doesn't show in fdisk -l
Code:
tom@HouseMedia:~$ sudo fdisk -l
Disk /dev/sda: 10.3 GB, 10254827520 bytes
255 heads, 63 sectors/track, 1246 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: 0x00018313
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1188 9537536 83 Linux
/dev/sda2 1188 1247 474113 5 Extended
/dev/sda5 1188 1247 474112 82 Linux swap / Solaris
Disk /dev/sdb: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 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: 0x0005f5c2
Device Boot Start End Blocks Id System
/dev/sdb1 1 38913 312568641 7 HPFS/NTFS
Disk /dev/sdc: 1500.3 GB, 1500301910016 bytes
255 heads, 63 sectors/track, 182401 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: 0x3e6caab7
Device Boot Start End Blocks Id System
/dev/sdc1 1 182401 1465136001 7 HPFS/NTFS
tom@HouseMedia:~$
If it can't see it it can't partition it. How is the HDD attached (internal, USB or eSATA)? If it is USB then what do you get withEdit: What do you get if with this
Re: Cannot create partition: "Unable to read /dev/sdd"
it's currently attached via USB but once this is all finished, I intend to connect it internally.
Aaaaand, I have no idea which one of these entries is the disk. The Seagate entry is another external usb disk that is connected. I'm not sure what the Lite-on entry would be as the new disk I am attempting to make use of is made by Hitachi. thoughts?
Code:
tom@HouseMedia:~$ lsusb
Bus 002 Device 002: ID 04ca:002a Lite-On Technology Corp.
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 006: ID 152d:2338 JMicron Technology Corp. / JMicron USA Technology Corp. JM20337 Hi-Speed USB to SATA & PATA Combo Bridge
Bus 001 Device 005: ID 058f:6377 Alcor Micro Corp. Multimedia Card Reader
Bus 001 Device 002: ID 0bc2:3300 Seagate RSS LLC
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
tom@HouseMedia:~$
Using "sudo lshw" returned a lot of stuff. I'm pretty sure the top portion of the output was cut off but here's what was left visible:
Code:
½ï¿½ï����ï����<�}���}��ï�� modified=2012-09-03 00:08:40 mount.fstype=ext4 mount.options=rw,relatime,errors=remount-ro,barrier=1,data=ordered mounted=2012-10-04 23:31:13 state=mounted
*-volume:1
description: Extended partition
physical id: 2
bus info: scsi@0:0.0.0,2
logical name: /dev/sda2
size: 463MiB
capacity: 463MiB
capabilities: primary extended partitioned partitioned:extended
*-logicalvolume
description: Linux swap / Solaris partition
physical id: 5
logical name: /dev/sda5
capacity: 463MiB
capabilities: nofs
*-disk:1
description: ATA Disk
product: ST3320820A
vendor: Seagate
physical id: 0.1.0
bus info: scsi@0:0.1.0
logical name: /dev/sdb
version: 3.AA
serial: 5QF1VYTG
size: 298GiB (320GB)
capabilities: partitioned partitioned:dos
configuration: ansiversion=5 signature=0005f5c2
*-volume
description: EXT3 volume
vendor: Linux
physical id: 1
bus info: scsi@0:0.1.0,1
logical name: /dev/sdb1
logical name: /mediastorage
version: 1.0
serial: 26bc4db0-3e1f-4e7c-af3a-de0351fa35b1
size: 298GiB
capacity: 298GiB
capabilities: primary journaled extended_attributes large_files recover ext3 ext2 initialized
configuration: created=2011-02-13 14:37:08 filesystem=ext3 modified=2012-10-04 23:31:13 mount.fstype=ext3 mount.options=rw,nosuid,nodev,noexec,relatime,errors=continue,data=ordered mounted=2012-10-04 23:31:13 state=mounted
*-bridge
description: Ethernet interface
product: MCP61 Ethernet
vendor: nVidia Corporation
physical id: 7
bus info: pci@0000:00:07.0
logical name: eth1
version: a2
serial: 00:1b:b9:55:a8:86
size: 100000000
capacity: 100000000
width: 32 bits
clock: 66MHz
capabilities: bridge pm msi ht bus_master cap_list ethernet physical mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=forcedeth driverversion=0.64 duplex=full ip=192.168.0.111 latency=0 link=yes maxlatency=20 mingnt=1 multicast=yes port=MII speed=100MB/s
resources: irq:27 memory:fe02d000-fe02dfff ioport:ec00(size=8)
*-ide:1
description: IDE interface
product: MCP61 SATA Controller
vendor: nVidia Corporation
physical id: 8
bus info: pci@0000:00:08.0
logical name: scsi5
version: a2
width: 32 bits
clock: 66MHz
capabilities: ide pm msi ht bus_master cap_list emulated
configuration: driver=sata_nv latency=0 maxlatency=1 mingnt=3
resources: irq:23 ioport:9f0(size=8) ioport:bf0(size=4) ioport:970(size=8) ioport:b70(size=4) ioport:d800(size=16) memory:fe02c000-fe02cfff
*-cdrom
description: DVD-RAM writer
product: DVDRRW GSA-H30L
vendor: HL-DT-ST
physical id: 0.0.0
bus info: scsi@5:0.0.0
logical name: /dev/cdrom
logical name: /dev/cdrw
logical name: /dev/dvd
logical name: /dev/dvdrw
logical name: /dev/scd0
logical name: /dev/sr0
version: S755
serial: [HL-DT-STDVDRRW GSA-H30L S75506/12/26��������
capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram
configuration: ansiversion=5 status=nodisc
*-pci:1
description: PCI bridge
product: MCP61 PCI Express bridge
vendor: nVidia Corporation
physical id: 9
bus info: pci@0000:00:09.0
version: a2
width: 32 bits
clock: 33MHz
capabilities: pci pm msi ht pciexpress bus_master cap_list
configuration: driver=pcieport
resources: irq:24 ioport:b000(size=4096) memory:fde00000-fdefffff ioport:fdd00000(size=1048576)
*-pci:2
description: PCI bridge
product: MCP61 PCI Express bridge
vendor: nVidia Corporation
physical id: b
bus info: pci@0000:00:0b.0
version: a2
width: 32 bits
clock: 33MHz
capabilities: pci pm msi ht pciexpress bus_master cap_list
configuration: driver=pcieport
resources: irq:25 ioport:a000(size=4096) memory:fdc00000-fdcfffff ioport:fdb00000(size=1048576)
*-pci:3
description: PCI bridge
product: MCP61 PCI Express bridge
vendor: nVidia Corporation
physical id: c
bus info: pci@0000:00:0c.0
version: a2
width: 32 bits
clock: 33MHz
capabilities: pci pm msi ht pciexpress bus_master cap_list
configuration: driver=pcieport
resources: irq:26 ioport:9000(size=4096) memory:fda00000-fdafffff ioport:fd900000(size=1048576)
*-display
description: VGA compatible controller
product: C61 [GeForce 6150SE nForce 430]
vendor: nVidia Corporation
physical id: 10
bus info: pci@0000:00:0d.0
version: a2
width: 64 bits
clock: 66MHz
capabilities: pm msi bus_master cap_list rom
configuration: driver=nouveau latency=0
resources: irq:22 memory:fb000000-fbffffff memory:e0000000-efffffff(prefetchable) memory:fc000000-fcffffff memory:80000000-8001ffff(prefetchable)
*-pci:4
description: Host bridge
product: K8 [Athlon64/Opteron] HyperTransport Technology Configuration
vendor: Advanced Micro Devices [AMD]
physical id: 100
bus info: pci@0000:00:18.0
version: 00
width: 32 bits
clock: 33MHz
*-pci:5
description: Host bridge
product: K8 [Athlon64/Opteron] Address Map
vendor: Advanced Micro Devices [AMD]
physical id: 101
bus info: pci@0000:00:18.1
version: 00
width: 32 bits
clock: 33MHz
*-pci:6
description: Host bridge
product: K8 [Athlon64/Opteron] DRAM Controller
vendor: Advanced Micro Devices [AMD]
physical id: 102
bus info: pci@0000:00:18.2
version: 00
width: 32 bits
clock: 33MHz
*-pci:7
description: Host bridge
product: K8 [Athlon64/Opteron] Miscellaneous Control
vendor: Advanced Micro Devices [AMD]
physical id: 103
bus info: pci@0000:00:18.3
version: 00
width: 32 bits
clock: 33MHz
configuration: driver=k8temp
resources: irq:0
*-scsi:0
physical id: 11
bus info: usb@1:1
logical name: scsi2
capabilities: emulated scsi-host
configuration: driver=usb-storage
*-disk
description: SCSI Disk
product: Desktop
vendor: Seagate
physical id: 0.0.0
bus info: scsi@2:0.0.0
logical name: /dev/sdc
version: 0130
serial: 2GHN6GFL
size: 1397GiB (1500GB)
capabilities: partitioned partitioned:dos
configuration: ansiversion=4 signature=3e6caab7
*-volume
description: Windows FAT volume
vendor: mkdosfs
physical id: 1
bus info: scsi@2:0.0.0,1
logical name: /dev/sdc1
logical name: /mediastorage2
version: FAT32
serial: 228f-2d10
size: 1397GiB
capacity: 1397GiB
capabilities: primary fat initialized
configuration: FATs=2 filesystem=fat mount.fstype=vfat mount.options=rw,nosuid,nodev,noexec,relatime,uid=1000,gid=1000,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro state=mounted
*-scsi:1
physical id: 12
bus info: usb@1:6
logical name: scsi7
capabilities: emulated scsi-host
configuration: driver=usb-storage
*-disk
description: SCSI Disk
physical id: 0.0.0
bus info: scsi@7:0.0.0
logical name: /dev/sdd
*-scsi:2
physical id: 13
bus info: usb@1:9
logical name: scsi6
capabilities: emulated scsi-host
configuration: driver=usb-storage
*-disk:0
description: SCSI Disk
physical id: 0.0.0
bus info: scsi@6:0.0.0
logical name: /dev/sde
*-disk:1
description: SCSI Disk
physical id: 0.0.1
bus info: scsi@6:0.0.1
logical name: /dev/sdf
*-disk:2
description: SCSI Disk
physical id: 0.0.2
bus info: scsi@6:0.0.2
logical name: /dev/sdg
*-disk:3
description: SCSI Disk
physical id: 0.0.3
bus info: scsi@6:0.0.3
logical name: /dev/sdh
Re: Cannot create partition: "Unable to read /dev/sdd"
Quote:
Originally Posted by
antiartist
it's currently attached via USB but once this is all finished, I intend to connect it internally.
Aaaaand, I have no idea which one of these entries is the disk. The Seagate entry is another external usb disk that is connected. I'm not sure what the Lite-on entry would be as the new disk I am attempting to make use of is made by Hitachi. thoughts?
I assume you are using Ubuntu 12.04 and that the udev daemon didn't enumerate the Hitachi disk when you plugged it in. I would reboot the system and see what you get with lsusb again. To see all the output of sudo lshw you dump it to a file in your home dir like this
Code:
sudo lshw > hardware.txt
...then you can look for the Hitachi disk in the file.
Edit: I found it in the hardware file
Code:
*-scsi:1
physical id: 12
bus info: usb@1:6
logical name: scsi7
capabilities: emulated scsi-host
configuration: driver=usb-storage
*-disk
description: SCSI Disk
physical id: 0.0.0
bus info: scsi@7:0.0.0
logical name: /dev/sdd
... this means the HDD driver is loaded up and the drive should be seen by udev.
1 Attachment(s)
Re: Cannot create partition: "Unable to read /dev/sdd"
restarted the server and made the output again, just to be sure.
I see the /sdd device in the output as well but I'm not sure what to do from here. Interesting, there is also /sde /sdf /sdg as well...which seems wrong. I don't have that many disks attached.
Re: Cannot create partition: "Unable to read /dev/sdd"
Quote:
Originally Posted by
antiartist
restarted the server and made the output again, just to be sure.
I see the /sdd device in the output as well but I'm not sure what to do from here. Interesting, there is also /sde /sdf /sdg as well...which seems wrong. I don't have that many disks attached.
]
First things first -- Don't post such a long file directly to the thread. Attach it to the post. It's easier for folks that are just reading the thread. Short amounts of data should be posted between the brackets using the # icon at the top of the editor.
Do you see the disk using What do you get with this