[SOLVED] Re: ISO file to sd card: Disk /dev/sdb doesn't contain a valid partition table

2018-08-15 Thread local10
Aug 14, 2018, 2:30 PM by delop...@gmail.com:

> > but why you don't run it in VM or VBox or extract, or use unetbootin?
>
Yes,  eventually I installed unetbootin and got it working with it. Thanks to 
everyone who responded.



Re: ISO file to sd card: Disk /dev/sdb doesn't contain a valid partition table

2018-08-15 Thread Pascal Hambourg

Le 14/08/2018 à 15:31, local10 a écrit :



The goal here is to create an sd card containg a bootable windows 7 image, I 
need to test something quick in windows. The iso file  is a windows 7 image.


What kind of Windows 7 image ? An installation DVD image ? AFAIK these 
ISO images are not hybrid and cannot boot from a SD card when written 
directly with dd or the like. You may have more luck with special tools 
such as Unetbootin or Rufus.




Re: ISO file to sd card: Disk /dev/sdb doesn't contain a valid partition table

2018-08-14 Thread Jude DaShiell
On Tue, 14 Aug 2018, local10 wrote:

> Date: Tue, 14 Aug 2018 08:44:26
> From: local10 
> To: debian-user@lists.debian.org
> Subject: ISO file to sd card: Disk /dev/sdb doesn't contain a valid partition
> table
> Resent-Date: Tue, 14 Aug 2018 12:44:40 + (UTC)
> Resent-From: debian-user@lists.debian.org
>
> Hi,
>
> Am having issues trasfering iso file to an sd card using dd:
>
> # dd if=/tmp/winfile.iso of=/dev/sdb bs=1M conv=fsync
>
> dd completes successfully without any issues but when I try to mount the sd 
> card I can't (wrong fs type, bad option, bad superblock on /dev/sdb1) and 
> fdisk says "Disk /dev/sdb doesn't contain a valid partition table". That's 
> kind of strange as I can mount and read /tmp/winfile.iso and it seems to be 
> in good order.
>
> Any ideas? Thanks
>
>
> # fdisk -l /dev/sdb
> ...
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disk identifier: 0x
>
> Disk /dev/sdb doesn't contain a valid partition table
>
>

-- 

files and partitions are two  different kinds of animal.  'm pretty
certain if you run lsblk you will not find an entry for sdb1 or sdb2 on
that disk either which means no valid partitions.  Not only do you need to
make a partition, you will also need to put a file system on it I'd
recommend vfat for the windows stuff unless you normally use ntfs and have
the necessary ntfs support utilities already on your system.
Just don't loose that source file until after you got this done.  Then
mount -t vfat /dev/sdb1 /mnt/dvd would get you a mounted partition and a
command like:
cp filename /mnt/dvd as root or sudo would put that file in a partition
with a file system on the drive you want.
ls /mnt/dvd should show you the filename too once done.




Re: ISO file to sd card: Disk /dev/sdb doesn't contain a valid partition table

2018-08-14 Thread deloptes
local10 wrote:

> The goal here is to create an sd card containg a bootable windows 7 image,
> I need to test something quick in windows. The iso file  is a windows 7
> image.

is it live windows7 - I have heard rumors that such thing exists?
Is it recovery disk?

but why you don't run it in VM or VBox or extract, or use unetbootin?

Still it is not clear what you want to do with that- well, obviously this
thing with dd on sd card does not work.

regards





Re: ISO file to sd card: Disk /dev/sdb doesn't contain a valid partition table

2018-08-14 Thread Nicolas George
local10 (2018-08-14):
> The goal here is to create an sd card containg a bootable windows 7
> image, I need to test something quick in windows. The iso file  is a
> windows 7 image. 

Then I suspect you would have more luck asking people familiar with
windows.

Regards,

-- 
  Nicolas George


signature.asc
Description: Digital signature


Re: ISO file to sd card: Disk /dev/sdb doesn't contain a valid partition table

2018-08-14 Thread local10
Aug 14, 2018, 8:47 AM by geo...@nsup.org:

> > You can try to mount /dev/sdb itself.
>
Yes, you're right, I can mount it on /dev/sdb.


> > But you are probably doing something wrong in the first place. What is your 
> > endgame?
>
The goal here is to create an sd card containg a bootable windows 7 image, I 
need to test something quick in windows. The iso file  is a windows 7 image. 

Thanks



Re: ISO file to sd card: Disk /dev/sdb doesn't contain a valid partition table

2018-08-14 Thread Nicolas George
local10 (2018-08-14):
> Am having issues trasfering iso file to an sd card using dd:
> 
> # dd if=/tmp/winfile.iso of=/dev/sdb bs=1M conv=fsync
> 
> dd completes successfully without any issues but when I try to mount
> the sd card I can't (wrong fs type, bad option, bad superblock on
> /dev/sdb1) and fdisk says "Disk /dev/sdb doesn't contain a valid
> partition table". That's kind of strange as I can mount and read
> /tmp/winfile.iso and it seems to be in good order.

That is perfectly normal, an ISO file is an ISO-9660 filesystem image,
it does not contain a MBR-style partition table.

You can try to mount /dev/sdb itself. But you are probably doing
something wrong in the first place. What is your endgame?

Regards,

-- 
  Nicolas George


signature.asc
Description: Digital signature


ISO file to sd card: Disk /dev/sdb doesn't contain a valid partition table

2018-08-14 Thread local10
Hi,

Am having issues trasfering iso file to an sd card using dd:

# dd if=/tmp/winfile.iso of=/dev/sdb bs=1M conv=fsync

dd completes successfully without any issues but when I try to mount the sd 
card I can't (wrong fs type, bad option, bad superblock on /dev/sdb1) and fdisk 
says "Disk /dev/sdb doesn't contain a valid partition table". That's kind of 
strange as I can mount and read /tmp/winfile.iso and it seems to be in good 
order.

Any ideas? Thanks


# fdisk -l /dev/sdb
...
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0000

Disk /dev/sdb doesn't contain a valid partition table



Re: Re: Disk /dev/sdb doesn't contain a valid partition table

2014-07-04 Thread Guillermo Hernandez
hi, 
you should use de option n to create a new partition.
Regards,Guillermo 

Re: Disk /dev/sdb doesn't contain a valid partition table

2014-07-04 Thread Doug


On 07/04/2014 11:58 AM, Guillermo Hernandez wrote:

hi,

you should use de option n to create a new partition.

Regards,
Guillermo
The easiest partitioner I know of is gparted. You can download a 
bootable disk with gparted on it.


 * Perform actions with partitions such as:
 o create or delete
 o resize or move
 o check
 o label
 o set new UUID
 o copy and paste
 * Manipulate file systems such as:
 o btrfs
 o ext2 / ext3 / ext4
 o fat16 / fat32
 o hfs / hfs+
 o linux-swap
 o lvm2 pv
 o nilfs2
 o ntfs
 o reiserfs / reiser4
 o ufs
 o xfs

   go to www.gparted.org to get more information.

--doug




Re: Disk /dev/sdb doesn't contain a valid partition table

2012-09-20 Thread Ralf Mardorf
I once had an USB stick with a broken controller and couldn't partitioning  
it anymore. It was brand new, gets broken at the day when I used it the  
first time. It was warranted and I got another USB stick.


Perhaps your drive isn't broken, but one cannot rule out the possibility  
that it's defect.


I would test different USB slots and another, very short USB cable.

Regards,
Ralf


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/op.wkxcsvofqhadp0@suse11-2



Re: Disk /dev/sdb doesn't contain a valid partition table

2012-09-20 Thread Andrei POPESCU
On Mi, 19 sep 12, 23:28:37, Kamaraju S Kusumanchi wrote:
 
 Warning: invalid flag 0x of partition table 4 will be corrected by 
 w(rite)

Have a look in the syslog for any errors during the create. Make sure 
the drive has sufficient power. Try partitioning it from a different 
computer. You could also wipe the first few sectors with dd, maybe 
there's garbage there.

Kind regards,
Andrei
-- 
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic


signature.asc
Description: Digital signature


Re: Disk /dev/sdb doesn't contain a valid partition table

2012-09-20 Thread lee
Kamaraju S Kusumanchi raju.mailingli...@gmail.com writes:

 lee wrote:

 There are some warnings when I tried to use fdisk to create a new empty DOS 
 partition table. Do you know how to eliminate the warning?

 $fdisk -v
 fdisk (util-linux 2.20.1)

 $sudo fdisk /dev/sdb
 Device contains neither a valid DOS partition table, nor Sun, SGI or OSF 
 disklabel
 Building a new DOS disklabel with disk identifier 0x14879ac2.
 Changes will remain in memory only, until you decide to write them.
 After that, of course, the previous content won't be recoverable.

 Warning: invalid flag 0x of partition table 4 will be corrected by 
 w(rite)

 Command (m for help): p

 Disk /dev/sdb: 750.2 GB, 750156372992 bytes
 255 heads, 63 sectors/track, 91201 cylinders, total 1465149166 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: 0x14879ac2

Device Boot  Start End  Blocks   Id  System

 Command (m for help): m
 Command action
a   toggle a bootable flag
b   edit bsd disklabel
c   toggle the dos compatibility flag
d   delete a partition
l   list known partition types
m   print this menu
n   add a new partition
o   create a new empty DOS partition table
p   print the partition table
q   quit without saving changes
s   create a new empty Sun disklabel
t   change a partition's system id
u   change display/entry units
v   verify the partition table
w   write table to disk and exit
x   extra functionality (experts only)

 Command (m for help): o
 Building a new DOS disklabel with disk identifier 0xe3c60b5a.
 Changes will remain in memory only, until you decide to write them.
 After that, of course, the previous content won't be recoverable.

 Warning: invalid flag 0x of partition table 4 will be corrected by 
 w(rite)

 Command (m for help): w
 The partition table has been altered!

 Calling ioctl() to re-read partition table.
 Syncing disks.


 So, I wrote the partition table but the warning keeps coming back if I run 
 fdisk again.

 $sudo fdisk /dev/sdb
 Device contains neither a valid DOS partition table, nor Sun, SGI or OSF 
 disklabel
 Building a new DOS disklabel with disk identifier 0x2c2ba04d.
 Changes will remain in memory only, until you decide to write them.
 After that, of course, the previous content won't be recoverable.

 Warning: invalid flag 0x of partition table 4 will be corrected by 
 w(rite)

 Command (m for help): q

Now that's interesting.  It looks like either the new partition you have
been writing hasn't actually been written to the disk, or the kernel
didn't realise that the partition table has changed.

 What do you mean reboot after creating partitions? This is an external hard 
 drive that does not have any OS. So how can I reboot from it? Do you mean 
 disconnect and reconnect?

What I mean is reboot the computer (not boot from the new disk you're
trying to partition, just reboot it normally).  So:


1.) write the new partition table
2.) reboot the computer and run fdisk again and see if it still says the
same

If it still says the same, I'd try to connect the disk to an SATA port
and try it again.  If it still doesn't work, return it.  Or don't go the
lengths of connecting it to SATA and just return it ...

 2) Is msdos a valid option to choose for this hard drive?
 
 Is msdos a useful partition type for you?  Try Linux, and if it
 works, you can try to change it to msdos.
 

 There is no Linux option. In gparted - Device - Create Partition Table -
 Advanced - Select new partition table type, the available choices are

 msdos, aix, amiga, bsd, dvh, gpt, mac, pc98, sun, loop

Hmmm, I don't know --- I found I need to read up about partition table
types and didn't get to do it yet.  What I had in mind is the partition
type code which applies to partitions and not to partition tables.


-- 
Debian testing amd64


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87boh1i6zh@yun.yagibdah.de



Re: Disk /dev/sdb doesn't contain a valid partition table

2012-09-19 Thread Kamaraju S Kusumanchi
Ralf Mardorf wrote:

 On Tue, 2012-09-18 at 00:27 -0400, Kamaraju S Kusumanchi wrote:
 /dev/sdb: unrecognised disk label
 
 2) Is msdos a valid option to choose for this hard drive?
 
 Yes it is.
 
 Is there some output if you run
 
 # parted /dev/sdb
 mklabel msdos
 

So, I did

$sudo parted /dev/sdb
GNU Parted 2.3
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel msdos
(parted) quit 
Information: You may need to update /etc/fstab.   

Even after this, I get the following error if I go back to gparted and try 
to create a new partition.

$sudo gparted /dev/sdb
==
libparted : 2.3
==
/dev/sdb: unrecognised disk label


I also upgraded to the latest kernel but that did not solve much.

$uname -a
Linux kusumanchi.mae.cornell.edu 3.2.0-3-686-pae #1 SMP Mon Jul 23 03:50:34 
UTC 2012 i686 GNU/Linux

thanks
raju

-- 
Kamaraju S Kusumanchi
http://malayamaarutham.blogspot.com/


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/k3e1su$1jm$1...@ger.gmane.org



Re: Disk /dev/sdb doesn't contain a valid partition table

2012-09-19 Thread Kamaraju S Kusumanchi
lee wrote:

 Kamaraju S Kusumanchi raju.mailingli...@gmail.com writes:
 
 I am trying to parition a new Western Digital WD Scorpio Black 750 GB
 SATA 3 GB/s 7200 RPM 16 MB Cache Internal Bulk/OEM 2.5-Inch Mobile Hard
 Drive but with no success.

 $sudo fdisk -l /dev/sdb

 Disk /dev/sdb: 750.2 GB, 750156372992 bytes
 255 heads, 63 sectors/track, 91201 cylinders, total 1465149166 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: 0x

 Disk /dev/sdb doesn't contain a valid partition table
 
 That is to be expected for a new disk.  IIRC, fdisk (or was that
 cfdisk?) has an option to start over with an empty partition table.
 
 Depending on which version of fdisk you have, there are options you can
 use to turn off msdos compatibility and to turn on something else --- I
 don't remember what these options were, and my version of fdisk doesn't
 have them anymore (fdisk -n or fdisk -nc maybe?), so I forgot about
 them.

There are some warnings when I tried to use fdisk to create a new empty DOS 
partition table. Do you know how to eliminate the warning?

$fdisk -v
fdisk (util-linux 2.20.1)

$sudo fdisk /dev/sdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF 
disklabel
Building a new DOS disklabel with disk identifier 0x14879ac2.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.

Warning: invalid flag 0x of partition table 4 will be corrected by 
w(rite)

Command (m for help): p

Disk /dev/sdb: 750.2 GB, 750156372992 bytes
255 heads, 63 sectors/track, 91201 cylinders, total 1465149166 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: 0x14879ac2

   Device Boot  Start End  Blocks   Id  System

Command (m for help): m
Command action
   a   toggle a bootable flag
   b   edit bsd disklabel
   c   toggle the dos compatibility flag
   d   delete a partition
   l   list known partition types
   m   print this menu
   n   add a new partition
   o   create a new empty DOS partition table
   p   print the partition table
   q   quit without saving changes
   s   create a new empty Sun disklabel
   t   change a partition's system id
   u   change display/entry units
   v   verify the partition table
   w   write table to disk and exit
   x   extra functionality (experts only)

Command (m for help): o
Building a new DOS disklabel with disk identifier 0xe3c60b5a.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.

Warning: invalid flag 0x of partition table 4 will be corrected by 
w(rite)

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.


So, I wrote the partition table but the warning keeps coming back if I run 
fdisk again.

$sudo fdisk /dev/sdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF 
disklabel
Building a new DOS disklabel with disk identifier 0x2c2ba04d.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.

Warning: invalid flag 0x of partition table 4 will be corrected by 
w(rite)

Command (m for help): q


 
 Anyway, make a new empty partition table and create a partition and see
 if you can write that to disk.  Always reboot after creating partitions;
 I've seen it going wrong when not rebooting and only re-reading
 partition tables.
 

What do you mean reboot after creating partitions? This is an external hard 
drive that does not have any OS. So how can I reboot from it? Do you mean 
disconnect and reconnect?

 2) Is msdos a valid option to choose for this hard drive?
 
 Is msdos a useful partition type for you?  Try Linux, and if it
 works, you can try to change it to msdos.
 

There is no Linux option. In gparted - Device - Create Partition Table -
 Advanced - Select new partition table type, the available choices are

msdos, aix, amiga, bsd, dvh, gpt, mac, pc98, sun, loop

thanks
raju
-- 
Kamaraju S Kusumanchi
http://malayamaarutham.blogspot.com/


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/k3e2lo$6dv$1...@ger.gmane.org



Re: Disk /dev/sdb doesn't contain a valid partition table

2012-09-18 Thread lee
Kamaraju S Kusumanchi raju.mailingli...@gmail.com writes:

 I am trying to parition a new Western Digital WD Scorpio Black 750 GB SATA 
 3 GB/s 7200 RPM 16 MB Cache Internal Bulk/OEM 2.5-Inch Mobile Hard Drive 
 but with no success.

 $sudo fdisk -l /dev/sdb

 Disk /dev/sdb: 750.2 GB, 750156372992 bytes
 255 heads, 63 sectors/track, 91201 cylinders, total 1465149166 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: 0x

 Disk /dev/sdb doesn't contain a valid partition table

That is to be expected for a new disk.  IIRC, fdisk (or was that
cfdisk?) has an option to start over with an empty partition table.

Depending on which version of fdisk you have, there are options you can
use to turn off msdos compatibility and to turn on something else --- I
don't remember what these options were, and my version of fdisk doesn't
have them anymore (fdisk -n or fdisk -nc maybe?), so I forgot about
them.

Anyway, make a new empty partition table and create a partition and see
if you can write that to disk.  Always reboot after creating partitions;
I've seen it going wrong when not rebooting and only re-reading
partition tables.

 2) Is msdos a valid option to choose for this hard drive?

Is msdos a useful partition type for you?  Try Linux, and if it
works, you can try to change it to msdos.

 3) Here I connected the hard drive via a USB connection. Could that be a 
 problem? Should I connect the drive directly via SATA cable in order to 
 partition?

You should be able to partition it while it's connected to an USB port.
However, there are some operations not supported with USB, so if
everything else fails, connecting the disk to an SATA port might help.


-- 
Debian testing amd64


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87obl3tfaa@yun.yagibdah.de



Re: Disk /dev/sdb doesn't contain a valid partition table

2012-09-18 Thread Andrei POPESCU
On Ma, 18 sep 12, 19:24:45, lee wrote:
 
  2) Is msdos a valid option to choose for this hard drive?
 
 Is msdos a useful partition type for you?  Try Linux, and if it
 works, you can try to change it to msdos.

Partition *table*, not *type* ;)

Kind regards,
Andrei
-- 
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic


signature.asc
Description: Digital signature


Re: Disk /dev/sdb doesn't contain a valid partition table

2012-09-18 Thread lee
Andrei POPESCU andreimpope...@gmail.com writes:

 On Ma, 18 sep 12, 19:24:45, lee wrote:
 
  2) Is msdos a valid option to choose for this hard drive?
 
 Is msdos a useful partition type for you?  Try Linux, and if it
 works, you can try to change it to msdos.

 Partition *table*, not *type* ;)

Are you sure there is such a thing as an msdos partition table?  There
seem to be a couple types of partition tables, and msdos doesn't seem
to be amongst them[1].  Then there are partition types and partition
type codes, see [2].

The OP probably refers to the partition type code, more commonly
referred to as partition type.  IIRC fdisk does that.  If it does,
perhaps we should file a bug against fdisk to have that changed to
partition type code?


[1]: http://en.wikipedia.org/wiki/Partition_table
[2]: http://en.wikipedia.org/wiki/Disk_partition


-- 
Debian testing amd64


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87392fqa0e@yun.yagibdah.de



Re: Disk /dev/sdb doesn't contain a valid partition table

2012-09-18 Thread Tom H
On Tue, Sep 18, 2012 at 5:46 PM, lee l...@yun.yagibdah.de wrote:
 Andrei POPESCU andreimpope...@gmail.com writes:
 On Ma, 18 sep 12, 19:24:45, lee wrote:

  2) Is msdos a valid option to choose for this hard drive?

 Is msdos a useful partition type for you?  Try Linux, and if it
 works, you can try to change it to msdos.

 Partition *table*, not *type* ;)

 Are you sure there is such a thing as an msdos partition table?  There
 seem to be a couple types of partition tables, and msdos doesn't seem
 to be amongst them[1].  Then there are partition types and partition
 type codes, see [2].

 The OP probably refers to the partition type code, more commonly
 referred to as partition type.  IIRC fdisk does that.  If it does,
 perhaps we should file a bug against fdisk to have that changed to
 partition type code?

d-i refers to an msdos partition table.

fdisk refers to a dos partition table.

You can choose from a few different partition tables in d-i. The only
other that I remember, that I've used, and that I prefer is gpt.

In fdisk, you can only choose dos (you can also choose a bsd label but
I think that it's in addition to dos but might be wrong...). In gdisk,
you can choose gpt. AFAIK, there are more options in parted.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAOdo=sxxydjz0kz8+tpsxoicub_offgk-6zbawfakhak0uu...@mail.gmail.com



Re: Disk /dev/sdb doesn't contain a valid partition table

2012-09-18 Thread Mark Allums

On 9/18/2012 4:46 PM, lee wrote:

Andrei POPESCU andreimpope...@gmail.com writes:


On Ma, 18 sep 12, 19:24:45, lee wrote:



2) Is msdos a valid option to choose for this hard drive?


Is msdos a useful partition type for you?  Try Linux, and if it
works, you can try to change it to msdos.


Partition *table*, not *type* ;)


Are you sure there is such a thing as an msdos partition table?  There
seem to be a couple types of partition tables, and msdos doesn't seem
to be amongst them[1].  Then there are partition types and partition
type codes, see [2].

The OP probably refers to the partition type code, more commonly
referred to as partition type.  IIRC fdisk does that.  If it does,
perhaps we should file a bug against fdisk to have that changed to
partition type code?


[1]: http://en.wikipedia.org/wiki/Partition_table
[2]: http://en.wikipedia.org/wiki/Disk_partition





There is confusion here between partition table type and partition type. 
 The partition table holds information about the different partitions. 
 An msdos partition *table* can hold a linux partition.


Use msdos, gpt, or nothing: LVM over a physical volume, for a partition 
*table* type.  gpt has the advantage over msdos (or just 'dos') that it 
supports partitions over 2TB in size.


Use linux for partitition type if you don't go for LVM.

Step one:  INitialize the disk with a partition table.
Step two:  Add some partitions.

At least one partition for the system (root---/), and probably a small 
one for swap.  Maybe a separate one for /boot, maybe a separate one for 
/home.


(I use LVM, so to keep things simple, I put LVM logical volumes inside a 
partition (rather than on a bare disk), and put /boot on an 8GB separate 
partition.)





--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/50591462.2000...@allums.com



Disk /dev/sdb doesn't contain a valid partition table

2012-09-17 Thread Kamaraju S Kusumanchi
I am trying to parition a new Western Digital WD Scorpio Black 750 GB SATA 
3 GB/s 7200 RPM 16 MB Cache Internal Bulk/OEM 2.5-Inch Mobile Hard Drive 
but with no success.

$sudo fdisk -l /dev/sdb

Disk /dev/sdb: 750.2 GB, 750156372992 bytes
255 heads, 63 sectors/track, 91201 cylinders, total 1465149166 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: 0x

Disk /dev/sdb doesn't contain a valid partition table


When I tried gparted, it gives the following error
$sudo gparted /dev/sdb
==
libparted : 2.3
==
/dev/sdb: unrecognised disk label

In particular, I tried
gparted - Device - Create Parition Table -  I chose msdos as the new 
partition table type - Apply

After a minute or so, it prints

/dev/sdb: unrecognised disk label

on the command line. 

1) What am I doing wrong? 
2) Is msdos a valid option to choose for this hard drive?
3) Here I connected the hard drive via a USB connection. Could that be a 
problem? Should I connect the drive directly via SATA cable in order to 
partition?

thanks
raju
-- 
Kamaraju S Kusumanchi
http://malayamaarutham.blogspot.com/


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/k38tdf$ibf$1...@ger.gmane.org



Re: Disk /dev/sdb doesn't contain a valid partition table

2012-09-17 Thread Ralf Mardorf
On Tue, 2012-09-18 at 00:27 -0400, Kamaraju S Kusumanchi wrote:
 /dev/sdb: unrecognised disk label

 2) Is msdos a valid option to choose for this hard drive?

Yes it is.

Is there some output if you run

# parted /dev/sdb
mklabel msdos

?

Regards,
Ralf





-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1347945779.1112.41.camel@localhost.localdomain