How Much Space Before 1st Partition?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How Much Space Before 1st Partition?
# 8  
Old 11-24-2014
I apologize in advance for the long message, but I wanted to be as detailed as possible...

*AS I WAS WRITING THE MSG BELOW, I GOT IT WORKING Smilie!!!

The Image I'm using for the Operating System is OpenSuSE 13.1 XFCE.
HERE: http://files.jm0.eu/suse/openSUSE-13...ild68.2.raw.xz

I made a mistake in the messages that I see during the boot up process... I found my notes from last week and this is what I tried.

Clone Command:
Code:
dd if=/dev/sdc of=/dev/mmcblk0 conv=sync,noerror bs=64K

Here is what I actually see...

After cloning the Working SD Card to an empty card (*with the command above) and not doing anything else to the card and trying to boot it I see:
*The device "by-id" it's looking for is the device id of the original/source SD Card...
Code:
Waiting for device /dev/disk/by-id/mmc-SD08G_0xda132e07-part2: ......
Want me to fall back to /dev/disk/by-id/mmc-SD08G_0xda132e07-part2 (Y/n)
n
not found -- exiting to /usr/sbin/sulogin
Give root password for maintenance 
(or type Control-D to continue)

*Entering Yes or No above makes no difference, can't get anywhere, if I enter "No" it prompts for root password, but it's not the root password I setup on that card so I can't get anywhere else from there...

So, the next thing I tried was I modified the boot.script file, which is just plain text and replaced the original SDCard's by-id name for the clone's by-id name.

Original SDCard by-id: mmc-SD08G_0xda132af2
Clone SDCard by-id:
mmc-SD08G_0xda132f35

Then I ran this mkimage command below, which recreated the boot.scr file, which now contains the Clone's ACTUAL by-id name.

Then, I unmounted the cloned SDCard from my laptop and attempted to boot it in the CuBox again, and I now see:
*I see the same line again from above (*with the correct by-id name), and this time I gets passed that point...
Code:
Waiting for device /dev/disk/by-id/mmc-SD08G_0xda132f35-part2 to appear: ok
.......................................
..........MORE LOG MESSAGES............
.......................................

Welcome to openSUSE 13.1 (Bottle) (armv7hl)

[    8.901601] systemd[1]: Set homename to <linux>.
[    9.049417] LVM: Logical Volume autoactivation enabled.
[    9.049417] LVM: Activation generator successfully completed.
[    9.049417] systemd[1]: Starting Replay Read-Ahead Data...
.............................more log msgs..................................
[       OK       ] Listening on Syslog Socket
.............................more log msgs..................................

I then start seeing the log messages where you get the green OK or the red FAILED messages at the start of each line.

Then in between those log messages with the GREEN or RED OK/FAILED like above, I see:
Code:
Expecting device dev-disk-by\x2did-mmc\x2SD08G_0xda132af2\x2dpart3.device...
 ........................................
................more messages...........
........................................
Expecting device dev-disk-by\x2did-mmc\x2SD08G_0xda132af2\x2dpart1.device...
........................................
................more messages...........
........................................

Then the boot process finally stalls and I see these 2 messages below. They both display on the same line, it just switches between the 2 every couple of seconds...
Code:
[**     ] (1 of 2)  A start job is running for dev-disk-by\x2did-mmc\x2dSD08G_0xda132af2\x2dpart1.device
     ---and---
[  *** ] (2 of 2)  A start job is running for dev-disk-by\x2did-mmc\x2dSD08G_0xda132af2\x2dpart3.device

Then after those 2 messages above timeout, that line is then replaced with:
Code:
[   TIME  ] Timed out waiting for device dev-disk-by\x2did-mmc\x2dSD08G_0xda132af2\x2dpart1.device.
[DEPEND] Dependency failed for /boot.
[DEPEND] Dependency failed for Local File Systems.

After that I remembered about /etc/fstab, opened that file on the clone SD Card, and replaced the by-id name with the correct one, and suddenyl it got me to the login prompt!!

I KNOW for a fact that I had done all the steps above at some point on different SD Cards but I guess just NOT in that exact order... But I am logged into that SD Card now on the CuBox and it seems to be working just fine...

Sorry for the long post, and thanks again for the help! Very much appreciated!

Thanks AGAIN,
Matt
# 9  
Old 11-24-2014
Quote:
Originally Posted by mrm5102
I apologize in advance for the long message, but I wanted to be as detailed as possible...

*AS I WAS WRITING THE MSG BELOW, I GOT IT WORKING Smilie!!!

The Image I'm using for the Operating System is OpenSuSE 13.1 XFCE.
HERE: http://files.jm0.eu/suse/openSUSE-13...ild68.2.raw.xz

I made a mistake in the messages that I see during the boot up process... I found my notes from last week and this is what I tried.

Clone Command:
Code:
dd if=/dev/sdc of=/dev/mmcblk0 conv=sync,noerror bs=64K

I'm not sure what mmcblk0 even is. If it's a partition, rather than a disk, that'll be wrong.

There's no reason you need to do the cloning on the device itself. I'd just plug the cards into an ordinary computer running linux, and dd if=/dev/sdc of=/dev/sdd bs=64K or what have you. fdisk -l to verify which are which and all that.
# 10  
Old 11-24-2014
mmcblk0 is the same as sdc, sdb, sda, etc... That is just what an SD Card is called when its connected without a USB reader and its connceted directly to an SD Card slot.
Code:
# ls -l /dev/disk/by-id
lrwxrwxrwx 1 root root  9 Nov 24 11:21 ata-OCZ-AGILITY4_OCZ-WN6T4ZXO947X9683 -> ../../sdb
lrwxrwxrwx 1 root root 10 Nov 24 10:51 ata-OCZ-AGILITY4_OCZ-WN6T4ZXO947X9683-part1 -> ../../sdb1
lrwxrwxrwx 1 root root  9 Nov 24 10:50 ata-Samsung_SSD_840_EVO_500GB_S1DHNSAF761577P -> ../../sda
lrwxrwxrwx 1 root root 10 Nov 24 10:50 ata-Samsung_SSD_840_EVO_500GB_S1DHNSAF761577P-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Nov 24 10:50 ata-Samsung_SSD_840_EVO_500GB_S1DHNSAF761577P-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Nov 24 10:50 ata-Samsung_SSD_840_EVO_500GB_S1DHNSAF761577P-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Nov 24 10:50 ata-Samsung_SSD_840_EVO_500GB_S1DHNSAF761577P-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Nov 24 10:50 ata-Samsung_SSD_840_EVO_500GB_S1DHNSAF761577P-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Nov 24 10:50 ata-Samsung_SSD_840_EVO_500GB_S1DHNSAF761577P-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 Nov 24 10:50 ata-Samsung_SSD_840_EVO_500GB_S1DHNSAF761577P-part7 -> ../../sda7
lrwxrwxrwx 1 root root  9 Nov 24 10:50 ata-TSSTcorp_DVD+_-RW_TS-U633J_R8706GVB115453 -> ../../sr0
lrwxrwxrwx 1 root root  9 Nov 24 11:21 edd-int13_dev80 -> ../../sdb
lrwxrwxrwx 1 root root 10 Nov 24 10:51 edd-int13_dev80-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 13 Nov 24 16:18 mmc-SD08G_0xda132f35 -> ../../mmcblk0
lrwxrwxrwx 1 root root 15 Nov 24 16:18 mmc-SD08G_0xda132f35-part1 -> ../../mmcblk0p1
lrwxrwxrwx 1 root root 15 Nov 24 16:18 mmc-SD08G_0xda132f35-part2 -> ../../mmcblk0p2
lrwxrwxrwx 1 root root 15 Nov 24 16:18 mmc-SD08G_0xda132f35-part3 -> ../../mmcblk0p3

That is what I was doing. I was cloning the SDCards while they were connected to my laptop, running OpenSuSE 11.4.

But I was able to boot up and login successfully using the cloned SD Card.

Thanks Again,
Matt
# 11  
Old 11-24-2014
Good deal. As long as you're copying disk to disk, it ought to work.

Here's another trick that'll be useful to you:

Code:
dd if=/dev/mmcblk0 of=filename

You can back up entire disk images and restore them later. If you're editing your bootloader images, this is a good idea. Last resort, you can always set them back to "default".
# 12  
Old 11-24-2014
yeah, you got that exactly right...

Right after I got that clone working I made an image file of the original SD card. So now I can do it straight from the image file instead of physically needing that original SD card everytime...

Thanks again everybody for the replies, very much appreciated!

Thanks Again,
Matt
# 13  
Old 11-24-2014
Hi
Quote:
So given the 512-byte sector size and start being = 2048, is that simply 1MB..?
What you were told got you confused...

1 byte=8 bits
512 bytes=1/2 kB
1024 bytes=1 kB
2048 bytes=2 kBs
1024 kilobytes=1 MB
and so on ...

Just for academics/curiosity...to see the MBR (512 bytes) skip the of=stuff
dd if=/dev/sda bs=512(block size=512 bytes) count=1(read 1 block) | od -c

To see all the way to 2048 use count=4 (4*512=2048 bytes)
dd if=/dev/sda bs=512 count=4 | od -c

RE: root device error
Could be UUID changed or bad entry in /etc/fstab or /boot/grub/menu.lst?

Last edited by ongoto; 11-25-2014 at 08:11 PM.. Reason: Geez! MB >> kB error
This User Gave Thanks to ongoto For This Post:
# 14  
Old 11-25-2014
Quote:
Originally Posted by ongoto
. . .
1 byte=8 bits
512 bytes=1/2 MB
1024 bytes=1 MB
2048 bytes=2 MBs
1024 megabytes=1 GB
. . .
512 bytes = 1/2 kB
1024 bytes = 1 kB
This now is where discrepancies start:
1024 kB = 1 M?B (sometimes MiB)
1000 kB = 1 M?B
etc...
This User Gave Thanks to RudiC For This Post:
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Allot free space from one partition to other

I have a RHEL 5.3 machine with the following partitions and free space: Free space on the partitions / : 74GB /boot : 81MB /var : 73GB /home : 37GB /icat : 758MB /opt : 1.5GB Now is it possible to allot a free space of some other partitions to /opt? I want around 100 GB more space... (4 Replies)
Discussion started by: omniok
4 Replies

2. Shell Programming and Scripting

How to consume all available space on partition?

Hi I'm doing some resilience testing and need to write a script to consume all of the available disk space on a partition and then to free it up again. This would need to be - Safe Dynamic, in that it calculates the free space prior to consuming it. I might want to go on to consume a... (7 Replies)
Discussion started by: bbq
7 Replies

3. Linux

How to increase root space from another partition?

Hi OS Experts I would like to increase root partition from another partition so that I can save more documents in Home and Desktop. whether it is possible without formating root partition if so please explain here is o/p of df -h Filesystem Size Used Avail Use% Mounted on /dev/sda9... (8 Replies)
Discussion started by: Akshay Hegde
8 Replies

4. Slackware

Ideal partition sizes of 17 gb space.

I am planning to install slack 13.37 on an old stand-alone PIII (512 mb ram) with 17 gb disk space. I need to keep lotsa pdf, chm type e-books for programming with few other misc. documents. I'm going to use this system for my personal use. It has no network but I browse internet with cable... (0 Replies)
Discussion started by: vectrum
0 Replies

5. UNIX for Dummies Questions & Answers

shifting space from one partition to other

hi My System is Sun Microsystems Inc. SunOS 5.10 Solaris Partition Info is /dev/vx/dsk/bootdg/var 27G 25G 1.2G 96% /var /dev/vx/dsk/bootdg/oravol 110G 54G 56G 49% /export/home I want to shift space 20G from /export/home to /var What should be the command ?? (2 Replies)
Discussion started by: kaushik02018
2 Replies

6. Red Hat

RHEL 5 supports only 2 TB space for a partition !

Dear Friends , I am using Redhat Ent Linux 5.0 with a EMC storage which HDD space is 4 TB. After Installing RHEL 5 , I get 4 TB space available but when I am going to create a partition then the OS show 2TB available space . I cannot create a partition above 2TB space . Is there any limitation... (3 Replies)
Discussion started by: shipon_97
3 Replies

7. UNIX for Dummies Questions & Answers

Best ways of increasing space on a partition

Hi, On one of our solaris servers, the root partition has filled up,(it was poorly sized in the first place), Does anyone have any advice about the best way to add space to a partition. I'm sure I've read how to do this somewhere before but just can't remember...:( A colleague has suggested... (1 Reply)
Discussion started by: kenny123m
1 Replies

8. Shell Programming and Scripting

Disk space for root partition

Hello, I am trying to monitor disk space for each node on the machine. I am able to get all individual nodes but for the '/' node. For example: df -k: bash-2.05b# df -k Filesystem 1K-blocks Used Available Use% Mounted on /dev/xxx 4127108 2415340 1502120 62% / /dev/yyy ... (3 Replies)
Discussion started by: chiru_h
3 Replies

9. UNIX for Advanced & Expert Users

moving space from one partition to another

How can I move some space allocated to one partition to another, i.e. from "/var" to "/" . Thanks! (4 Replies)
Discussion started by: jason6792
4 Replies

10. UNIX for Dummies Questions & Answers

Swap Partition Space

first of all, sorry about my english...I´m a spanish newbie to this marvelous OS and i have just a couple of doubts...u know? :-) 1) how big should my swap partition be if i installed debian 2.2r3 or FreeBSD 4.x on a AMD k7 1400Mhz with 512Mb of Random Access Memory? i heard that those OS... (1 Reply)
Discussion started by: I[X]ION
1 Replies
Login or Register to Ask a Question