[root@IITI boot]# fdisk /dev/sdb1
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0x41b5dde3.
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 0x0000 of partition table 4 will be corrected by w(rite)
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').
Command (m for help): o
Building a new DOS disklabel with disk identifier 0x71a83ecf.
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 0x0000 of partition table 4 will be corrected by w(rite)
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 22: Invalid argument.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.
[root@IITI boot]# fdisk /dev/sdb1
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').
Command (m for help): x
Expert command (m for help): h
Number of heads (1-256, default 64): 255
Expert command (m for help):s
Number of sectors (1-63, default 32): 63
Warning: setting sector offset for DOS compatiblity
Expert command (m for help): c
Number of cylinders (1-1048576, default 15189): 1960
Expert command (m for help): r
Command (m for help):n
Command action
e extended p primary partition (1-4)
p Partition number (1-4): 1
First cylinder (1-1960, default 1):
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-1960, default 1960): +200M
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p Partition number (1-4): 2
First cylinder (27-1960, default 27):
Using default value 27
Last cylinder, +cylinders or +size{K,M,G} (27-1960, default 1960):
Using default value 1960
Command (m for help): a
Partition number (1-4): 1
Command (m for help): t
Partition number (1-4): 1 Hex code (type L to list codes): c
Changed system type of partition 1 to c (W95 FAT32 (LBA))
Command (m for help): t
Partition number (1-4): 2
Hex code (type L to list codes): 83
Device Boot Start End Blocks Id System
/dev/sdb1p1 * 1 26 208813+ c W95 FAT32 (LBA) /dev/sdb1p2 27 1960 15534855 83 Linux
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 22: Invalid argument.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
WARNING: If you have created or modified any DOS 6.x
partitions, please see the fdisk manual page for additional
information.
Syncing disks.
[root@IITI boot]# mkfs.vfat -F 32 -n boot /dev/sdb1p1
mkfs.vfat 3.0.9 (31 Jan 2010) /dev/sdb1p1: No such file or directory
[root@IITI boot]#
Question
Arjun
boot linux with SD card
Hello guyz,,
booting linux on zynq using JTAG has done ..
now i am trying to boot linux on zynq using SD card ..but during making partition into sd card ..i am facing some problem ...
i am giving following command ,,,but it is not working ........
SELinux: initialized (dev sdb1, type vfat), uses genfs_contexts
[root@IITI boot]# dd if=/dev/zero of=/dev/sdb1 bs=1024 count=1
1+0 records in
1+0 records out
1024 bytes (1.0 kB) copied, 0.000232867 s, 4.4 MB/s
[root@IITI boot]# fdisk -l /dev/sdb1
Disk /dev/sdb1: 15.9 GB, 15927345152 bytes
64 heads, 32 sectors/track, 15189 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
[root@IITI boot]# fdisk /dev/sdb1
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0x41b5dde3.
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 0x0000 of partition table 4 will be corrected by w(rite)
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').
Command (m for help): o
Building a new DOS disklabel with disk identifier 0x71a83ecf.
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 0x0000 of partition table 4 will be corrected by w(rite)
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 22: Invalid argument.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.
[root@IITI boot]# fdisk /dev/sdb1
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').
Command (m for help): x
Expert command (m for help): h
Number of heads (1-256, default 64): 255
Expert command (m for help): s
Number of sectors (1-63, default 32): 63
Warning: setting sector offset for DOS compatiblity
Expert command (m for help): c
Number of cylinders (1-1048576, default 15189): 1960
Expert command (m for help): r
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1960, default 1):
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-1960, default 1960): +200M
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (27-1960, default 27):
Using default value 27
Last cylinder, +cylinders or +size{K,M,G} (27-1960, default 1960):
Using default value 1960
Command (m for help): a
Partition number (1-4): 1
Command (m for help): t
Partition number (1-4): 1
Hex code (type L to list codes): c
Changed system type of partition 1 to c (W95 FAT32 (LBA))
Command (m for help): t
Partition number (1-4): 2
Hex code (type L to list codes): 83
Command (m for help): p
Disk /dev/sdb1: 15.9 GB, 15927345152 bytes
255 heads, 63 sectors/track, 1960 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: 0x1bbfc74f
Device Boot Start End Blocks Id System
/dev/sdb1p1 * 1 26 208813+ c W95 FAT32 (LBA)
/dev/sdb1p2 27 1960 15534855 83 Linux
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 22: Invalid argument.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
WARNING: If you have created or modified any DOS 6.x
partitions, please see the fdisk manual page for additional
information.
Syncing disks.
[root@IITI boot]# mkfs.vfat -F 32 -n boot /dev/sdb1p1
mkfs.vfat 3.0.9 (31 Jan 2010)
/dev/sdb1p1: No such file or directory
[root@IITI boot]#
#############################################################################
I appreciate any comment or help
Thanks
Arjun
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.