New IT forum
27 June 2022, 11:46:14 am *
Welcome, %1$s. Please login or register.

: CubieBoard 2 and Cubietruck both now in stock.
 
Pages: 1 ... 5 6 [7]

Author Topic: Need some help please  (Read 47885 times)

Jimbob

  • Full Member
  • ***
  • Posts: 104
Re: Need some help please
« Reply #90 on: 09 January 2014, 10:18:38 pm »

Should it be: fdisk /dev/sdb1 ?
Logged

bigbear59

  • Full Member
  • ***
  • Posts: 118
Re: Need some help please
« Reply #91 on: 09 January 2014, 10:31:20 pm »

Is the SD inserted?  Your looking for the one that is 8000Mb
Logged
Cheers,
BigBear59

Jimbob

  • Full Member
  • ***
  • Posts: 104
Re: Need some help please
« Reply #92 on: 09 January 2014, 10:40:14 pm »

I had to format it for it to show up:

fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 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: 0x00042faa

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048   304390143   152194048   83  Linux
/dev/sda2       304392190   312580095     4093953    5  Extended
/dev/sda5       304392192   312580095     4093952   82  Linux swap / Solaris

Disk /dev/mmcblk0: 8035 MB, 8035237888 bytes
229 heads, 20 sectors/track, 3426 cylinders, total 15693824 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: 0x0001ef58

        Device Boot      Start         End      Blocks   Id  System
/dev/mmcblk0p1            2048    15693823     7845888    c  W95 FAT32 (LBA)
Logged

bigbear59

  • Full Member
  • ***
  • Posts: 118
Re: Need some help please
« Reply #93 on: 09 January 2014, 11:12:05 pm »

Oh sorry, I was doing mine on a USB,
so
/dev/sdb1 should be replaced by /dev/mmcblk0p1
 &
/dev/sdb2 should be replaced by /dev/mmcblk0p2
Everything else should be good
Logged
Cheers,
BigBear59

Jimbob

  • Full Member
  • ***
  • Posts: 104
Re: Need some help please
« Reply #94 on: 09 January 2014, 11:33:52 pm »

[email protected]:/home/james/Desktop# fdisk /dev/mmcblk0p1

Command (m for help):
Command (m for help):
Logged

bigbear59

  • Full Member
  • ***
  • Posts: 118
Re: Need some help please
« Reply #95 on: 09 January 2014, 11:37:19 pm »

 :)

/dev/sdb should be replaced by /dev/mmcblk0
Logged
Cheers,
BigBear59

Jimbob

  • Full Member
  • ***
  • Posts: 104
Re: Need some help please
« Reply #96 on: 09 January 2014, 11:49:02 pm »

[email protected]:/home/james/Desktop# fdisk /dev/mmcblk0p1

Command (m for help):
Command (m for help):
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)

[email protected]:/home/james/Desktop# fdisk /dev/mmcblk0

Command (m for help): o
Building a new DOS disklabel with disk identifier 0x0a0a67be.
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)

Command (m for help): n
Partition type:
   p   primary (0 primary, 0 extended, 4 free)
   e   extended
Select (default p): p
Partition number (1-4, default 1): 1
First sector (2048-15693823, default 2048): 2048
Last sector, +sectors or +size{K,M,G} (2048-15693823, default 15693823): +40959

Command (m for help): n
Partition type:
   p   primary (1 primary, 0 extended, 3 free)
   e   extended
Select (default p): p
Partition number (1-4, default 2): 2
First sector (43008-15693823, default 43008):
Using default value 43008
Last sector, +sectors or +size{K,M,G} (43008-15693823, default 15693823):
Using default value 15693823

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 16: Device or resource busy.
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.

[email protected]:/home/james/Desktop# mkfs.ext3 /dev/mmcblk0p1
mke2fs 1.42.8 (20-Jun-2013)
/dev/mmcblk0p1 is mounted; will not make a filesystem here!
[email protected]:/home/james/Desktop# mkfs.ext3 /dev/mmcblk0p2
mke2fs 1.42.8 (20-Jun-2013)
Could not stat /dev/mmcblk0p2 --- No such file or directory

The device apparently does not exist; did you specify it correctly?
[email protected]:/home/james/Desktop#
« Last Edit: 09 January 2014, 11:50:46 pm by Jimbob »
Logged

bigbear59

  • Full Member
  • ***
  • Posts: 118
Re: Need some help please
« Reply #97 on: 09 January 2014, 11:58:07 pm »

The SD is mounted, so it won't modify it.

do a
df -h
to find the mount point
then umount it
Logged
Cheers,
BigBear59

Jimbob

  • Full Member
  • ***
  • Posts: 104
Re: Need some help please
« Reply #98 on: 10 January 2014, 12:12:41 am »

[email protected]:/home/james/Desktop# mkfs.ext3 /dev/mmcblk0p1
mke2fs 1.42.8 (20-Jun-2013)
Discarding device blocks: done                           
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
490560 inodes, 1961472 blocks
98073 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2009071616
60 block groups
32768 blocks per group, 32768 fragments per group
8176 inodes per group
Superblock backups stored on blocks:
   32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

Allocating group tables: done                           
Writing inode tables: done                           
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

[email protected]:/home/james/Desktop# mkfs.ext3 /dev/mmcblk0p2
mke2fs 1.42.8 (20-Jun-2013)
Could not stat /dev/mmcblk0p2 --- No such file or directory

The device apparently does not exist; did you specify it correctly?
[email protected]:/home/james/Desktop#
Logged

bigbear59

  • Full Member
  • ***
  • Posts: 118
Re: Need some help please
« Reply #99 on: 10 January 2014, 12:28:21 am »

You need to start from fdisk /dev/mmcblk0

so 1st do a
df -h

Filesystem            Size  Used Avail Use% Mounted on
tmpfs                 252M     0  252M   0% /lib/init/rw
udev                   10M  140K  9.9M   2% /dev
tmpfs                 252M  4.0K  252M   1% /dev/shm
rootfs                7.5G  338M  6.8G   5% /
tmpfs                 252M     0  252M   0% /tmp
/dev/mmcblk0p1         20M  3.7M   15M  20% /media/SD_part1


You are looking for the /dev/mmcblkp#, so using what ever is under the column Mounted on
I think you'll find that /dev/mmcblk0p2 is mounted, but umount the /dev/mmcblk0p# (one or both)

umount /media/SD_part1
df -h
Filesystem            Size  Used Avail Use% Mounted on
tmpfs                 252M     0  252M   0% /lib/init/rw
udev                   10M  140K  9.9M   2% /dev
tmpfs                 252M  4.0K  252M   1% /dev/shm
rootfs                7.5G  338M  6.8G   5% /
tmpfs                 252M     0  252M   0% /tmp


no SD mounted

Then go back and start from
fdisk /dev/mmcblk0
o
n
p
1
2048
+40959
n
p
2


w

and all that follows
« Last Edit: 10 January 2014, 12:30:33 am by bigbear59 »
Logged
Cheers,
BigBear59

Jimbob

  • Full Member
  • ***
  • Posts: 104
Re: Need some help please
« Reply #100 on: 14 January 2014, 10:04:03 am »

I'm still plagued with problems, I don't suppose you have a skype address I could message you on do you?
Logged

Jimbob

  • Full Member
  • ***
  • Posts: 104
Re: Need some help please
« Reply #101 on: 15 January 2014, 12:05:10 pm »

I have narrowed it down to a EXT3-fs error on the sd card, just unsure how to fix it?
Logged
Pages: 1 ... 5 6 [7]
 
 

Powered by MySQL Powered by PHP SMF 2.0.10 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!