Thread
:
Kubuntu 11.10 mobile on N900 [TESTERS NEEDED]
View Single Post
sada11
2011-09-24 , 14:19
Posts: 196 | Thanked: 169 times | Joined on Jan 2011 @ Bosnia /Sarajevo
#
85
int_ua
I have a problem with this:
Device Boot Start End Blocks Id System
+ read -p 'Please check the selected device partion table above. Are sure you want to wipe it? (yes/NO)'
Please check the selected device partion table above. Are sure you want to wipe it? (yes/NO)yes
+ [[ yes != \y\e\s ]]
+ read -p 'System partition size in gibibytes:' system_size
System partition size in gibibytes:8
+ read -p 'Swap disk size in mebibytes (0 for no swap):' swap_size
Swap disk size in mebibytes (0 for no swap):1000
+ [[ 1000 > 0 ]]
+ swap_command_stack='n\np\n2\n\n+1000M\n'
+ fdisk_command_stack='n\np\n1\n\n+8G\nn\np\n2\n\n+1 000M\nn\np\n3\n\n\nw\n'
+ echo -e 'n\np\n1\n\n+8G\nn\np\n2\n\n+1000M\nn\np\n3\n\n\nw \n'
+ parted -s /dev/sdb mklabel msdos
+ fdisk /dev/sdb
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): Command action
e extended
p primary partition (1-4)
Partition number (1-4): First cylinder (1-15264, default 1): Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-15264, default 15264):
Command (m for help): Command action
e extended
p primary partition (1-4)
Partition number (1-4): First cylinder (8194-15264, default 8194): Using default value 8194
Last cylinder, +cylinders or +size{K,M,G} (8194-15264, default 15264):
Command (m for help): Command action
e extended
p primary partition (1-4)
Partition number (1-4): First cylinder (9195-15264, default 9195): Using default value 9195
Last cylinder, +cylinders or +size{K,M,G} (9195-15264, default 15264): Using default value 15264
Command (m for help): The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
+ mkfs.ext3 /dev/sdb1
mke2fs 1.41.14 (22-Dec-2010)
warning: 252 blocks unused.
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
525312 inodes, 2097152 blocks
104870 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2147483648
64 block groups
32768 blocks per group, 32768 fragments per group
8208 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 37 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
+ [[ n\np\n2\n\n+1000M\n != '' ]]
+ mkswap /dev/sdb2
Setting up swapspace version 1, size = 1025020 KiB
no label, UUID=5a7f8526-839d-47a7-9373-448cebf8d847
+ mkfs.vfat /dev/sdb3
mkfs.vfat 3.0.9 (31 Jan 2010)
+ [[ testing == \t\e\s\t\i\n\g ]]
+ zcat oneiric-preinstalled-mobile-armel+omap.img.gz
+ dd of=/dev/sdb1
2625536+0 records in
2625536+0 records out
1344274432 bytes (1.3 GB) copied, 487.747 s, 2.8 MB/s
+ e2fsck -pf /dev/sdb1
e2fsck: Bad magic number in super-block while trying to open /dev/sdb1
/dev/sdb1:
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
+ resize2fs /dev/sdb1
resize2fs 1.41.14 (22-Dec-2010)
resize2fs: Bad magic number in super-block while trying to open /dev/sdb1
Couldn't find valid filesystem superblock.
+ mount /dev/sdb1 /mnt
mount: you must specify the filesystem type
+ exit 1
Quote & Reply
|
The Following User Says Thank You to sada11 For This Useful Post:
int_ua
sada11
View Public Profile
Send a private message to sada11
Find all posts by sada11