• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: Sheeva don't found swap  (Read 2569 times)
Guber1
Newbie
*

Karma: 0
Posts: 24


View Profile
« on: October 26, 2010, 02:38:33 AM »

Hi, i have move my debian system to another sd card with more capacity, i have partition the new sd card and copy the system install y my old card, all work well but debian(my so on sheeva) don't recognized the swap partition, here is the start up:
Quote
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
oprofile: using timer interrupt.
TCP cubic registered
NET: Registered protocol family 17
lib80211: common routines for IEEE802.11 drivers
rtc-mv rtc-mv: setting system clock to 2010-10-26 09:35:21 UTC (1288085721)
Freeing init memory: 132K
Loading, please wait...
WARNING: Couldn't open directory /lib/modules/2.6.33.3: No such file or directory
FATAL: Could not open /lib/modules/2.6.33.3/modules.dep.temp for writing: No such file or directory
Begin: Loading essential drivers ... FATAL: Could not load /lib/modules/2.6.33.3/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/2.6.33.3/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/2.6.33.3/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/2.6.33.3/modules.dep: No such file or directory
done.
Begin: Running /scripts/init-premount ... FATAL: Could not load /lib/modules/2.6.33.3/modules.dep: No such file or directory
done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... Begin: Loadingmodprobe: FATAL: Could not load /lib/modules/2.6.33.3/modules.dep: No such file or directory

Failure: failed to load module linear.
modprobe: FATAL: Could not load /lib/modules/2.6.33.3/modules.dep: No such file or directory

Failure: failed to load module multipath.
modprobe: FATAL: Could not load /lib/modules/2.6.33.3/modules.dep: No such file or directory

Failure: failed to load module raid0.
modprobe: FATAL: Could not load /lib/modules/2.6.33.3/modules.dep: No such file or directory

Failure: failed to load module raid1.
modprobe: FATAL: Could not load /lib/modules/2.6.33.3/modules.dep: No such file or directory

Failure: failed to load module raid456.
modprobe: FATAL: Could not load /lib/modules/2.6.33.3/modules.dep: No such file or directory

Failure: failed to load module raid5.
modprobe: FATAL: Could not load /lib/modules/2.6.33.3/modules.dep: No such file or directory

Failure: failed to load module raid6.
modprobe: FATAL: Could not load /lib/modules/2.6.33.3/modules.dep: No such file or directory

Failure: failed to load module raid10.
done.
FATAL: Could not load /lib/modules/2.6.33.3/modules.dep: No such file or directory
done.
Begin: Running /scripts/local-premount ... done.
FATAL: Could not load /lib/modules/2.6.33.3/modules.dep: No such file or directory
Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.86 booting
Starting the hotplug events dispatcher: udevdudevd version 125 started
.
Synthesizing the initial hotplug events...done.
Waiting for /dev to be fully populated...sata_mv sata_mv.0: version 1.28
sata_mv sata_mv.0: slots 32 ports 2
scsi0 : sata_mv
scsi1 : sata_mv
ata1: SATA max UDMA/133 irq 21
ata2: SATA max UDMA/133 irq 21
ata1: SATA link down (SStatus 0 SControl F300)
ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
ata2.00: ATA-8: ST31000340AS, SD15, max UDMA/133
ata2.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
ata2.00: configured for UDMA/133
scsi 1:0:0:0: Direct-Access     ATA      ST31000340AS     SD15 PQ: 0 ANSI: 5
sd 1:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
sd 1:0:0:0: Attached scsi generic sg0 type 0
sd 1:0:0:0: [sda] Write Protect is off
sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sda: sda1 sda2 sda3
sd 1:0:0:0: [sda] Attached SCSI disk
done.
Setting the system clock.
Activating swap...Unable to find swap-space signature
failed.
Checking root file system...fsck 1.41.3 (12-Oct-2008)
e2fsck 1.41.3 (12-Oct-2008)
/dev/mmcblk0p2: clean, 25517/63872 files, 164564/255031 blocks
done.
Setting the system clock.
Cleaning up ifupdown....
Loading kernel modules...done.
uncorrectable error :
uncorrectable error :
end_request: I/O error, dev mtdblock1, sector 0
Buffer I/O error on device mtdblock1, logical block 0
uncorrectable error :
uncorrectable error :
end_request: I/O error, dev mtdblock1, sector 8
Buffer I/O error on device mtdblock1, logical block 1
uncorrectable error :
uncorrectable error :
end_request: I/O error, dev mtdblock1, sector 16
Buffer I/O error on device mtdblock1, logical block 2
uncorrectable error :
uncorrectable error :
end_request: I/O error, dev mtdblock1, sector 24
Buffer I/O error on device mtdblock1, logical block 3
uncorrectable error :
uncorrectable error :
end_request: I/O error, dev mtdblock1, sector 0
Buffer I/O error on device mtdblock1, logical block 0
uncorrectable error :
uncorrectable error :
end_request: I/O error, dev mtdblock0, sector 1920
Buffer I/O error on device mtdblock0, logical block 240
uncorrectable error :
uncorrectable error :
end_request: I/O error, dev mtdblock0, sector 1920
Buffer I/O error on device mtdblock0, logical block 240
uncorrectable error :
uncorrectable error :
end_request: I/O error, dev mtdblock0, sector 2032
Buffer I/O error on device mtdblock0, logical block 254
uncorrectable error :
uncorrectable error :
end_request: I/O error, dev mtdblock0, sector 2040
Buffer I/O error on device mtdblock0, logical block 255
uncorrectable error :
uncorrectable error :
end_request: I/O error, dev mtdblock0, sector 2032
Buffer I/O error on device mtdblock0, logical block 254
Assembling MD arrays...done (no arrays found in config file or automatically).
Checking file systems...fsck 1.41.3 (12-Oct-2008)
e2fsck 1.41.3 (12-Oct-2008)
/dev/sda1: recovering journal
/dev/sda1: clean, 25728/54419456 files, 178193498/217664677 blocks
e2fsck 1.41.3 (12-Oct-2008)
Superblock last write time is in the future.  Fix? yes

/dev/mmcblk0p1 was not cleanly unmounted, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

/dev/mmcblk0p1: ***** FILE SYSTEM WAS MODIFIED *****
/dev/mmcblk0p1: 21/128520 files (14.3% non-contiguous), 35553/514048 blocks
fsck died with exit status 1
done.
Setting kernel variables (/etc/sysctl.conf)...done.
Mounting local filesystems...kjournald starting.  Commit interval 5 seconds
EXT3-fs (sda1): using internal journal
EXT3-fs (sda1): mounted filesystem with writeback data mode
EXT3-fs (sda3): warning: checktime reached, running e2fsck is recommended
kjournald starting.  Commit interval 5 seconds
EXT3-fs (sda3): using internal journal
EXT3-fs (sda3): recovery complete
EXT3-fs (sda3): mounted filesystem with writeback data mode
done.
Activating swapfile swap...Unable to find swap-space signature
done.
Setting up networking....
Configuring network interfaces...done.
Starting portmap daemon....
Starting NFS common utilities: statdNET: Registered protocol family 10
ADDRCONF(NETDEV_UP): eth0: link is not ready
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
 idmapdeth0: link up, 1000 Mb/s, full duplex, flow control disabled
ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
.
Setting console screen modes and fonts.
INIT: Entering runlevel: 2
Starting enhanced syslogd: rsyslogd.
Starting OpenBSD Secure Shell server: sshd.
Starting MTA: exim4.
Starting NFS common utilities: statd idmapd.
Exporting directories for NFS kernel daemon...exportfs: /etc/exports [1]: Neither 'subtree_check' or 'no_subtree_check' specified for export "192.168.1.12:/media/sata/share/torrents".
  Assuming default behaviour ('no_subtree_check').
  NOTE: this default has changed since nfs-utils version 1.0.x

exportfs: /etc/exports [2]: Neither 'subtree_check' or 'no_subtree_check' specified for export "192.168.1.25:/media/grabaciones".
  Assuming default behaviour ('no_subtree_check').
  NOTE: this default has changed since nfs-utils version 1.0.x

exportfs: /etc/exports [3]: Neither 'subtree_check' or 'no_subtree_check' specified for export "192.168.1.9:/media/grabaciones".
  Assuming default behaviour ('no_subtree_check').
  NOTE: this default has changed since nfs-utils version 1.0.x

.
Starting NFS kernel daemon: nfsdsvc: failed to register lockdv1 RPC service (errno 97).
NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
NFSD: starting 90-second grace period
 mountd.
Not starting internet superserver: no services enabled.
Starting Samba daemons: nmbd smbd.
Starting MD monitoring service: mdadm --monitor.
Starting ftp server: proftpdwarning: `proftpd' uses 32-bit capabilities (legacy support in use)
.
Starting deferred execution scheduler: atd.
Starting periodic command scheduler: crond.
Starting MLDonkey: mlnet configuration file prevent mlnet to be started (use force-start).

Debian GNU/Linux 5.0 debian ttyS0

debian login:
Logged

guidol
Full Member
***

Karma: 10
Posts: 128



View Profile
« Reply #1 on: October 26, 2010, 05:08:46 AM »

Hi, i have move my debian system to another sd card with more capacity, i have partition the new sd card and copy the system install y my old card, all work well but debian(my so on sheeva) don't recognized the swap partition, here is the start up:

Did you, after creating the swap-partition, generate the swap-file-System on your device like
mkswap /dev/sda3

And the partiton has the right id as Swap-Space (0x82)?
Logged

Guber1
Newbie
*

Karma: 0
Posts: 24


View Profile
« Reply #2 on: October 26, 2010, 05:34:38 AM »

ok thanks i forget to do the mkswap now it works ok, but i have another problem is that the system partion has 3GB aprox, but the system only recognized 1GB:
debian:~# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mmcblk0p2         1004052    642300    310748  68% /
tmpfs                   257000         0    257000   0% /lib/init/rw
udev                     10240       668      9572   7% /dev
tmpfs                   257000         0    257000   0% /dev/shm
/dev/sda1            856996672 699111956 114351784  86% /media/sata
/dev/sda3            103762968  39605676  58886368  41% /media/grabaciones
/dev/mmcblk0p1          497829     19334    452793   5% /boot

and fdisk show:

debian:~# fdisk /dev/mmcblk0

Command (m for help): p

Disk /dev/mmcblk0: 3963 MB, 3963617280 bytes
255 heads, 63 sectors/track, 481 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000e63d8

        Device Boot      Start         End      Blocks   Id  System
/dev/mmcblk0p1   *           1          64      514048+  83  Linux
/dev/mmcblk0p2              65         415     2819407+  83  Linux
/dev/mmcblk0p3             416         481      530145   82  Linux swap / Solaris


what can ido to expand the root partion?
Logged

guidol
Full Member
***

Karma: 10
Posts: 128



View Profile
« Reply #3 on: October 26, 2010, 06:33:27 AM »

ok thanks i forget to do the mkswap now it works ok, but i have another problem is that the system partion has 3GB aprox, but the system only recognized 1GB:
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mmcblk0p2         1004052    642300    310748  68% /

        Device Boot      Start         End      Blocks   Id  System
/dev/mmcblk0p2              65         415     2819407+  83  Linux
what can ido to expand the root partion?

 Grin it seems that you copied/dd'ed from the old Card the 1GB System Partition to the new Card onto a 2.8GB Partiton,
BUT with this action only a 1GB Partition is recognized because the filesystem end after 1GB.

On a Harddisk (you could try this also on a pc with the card in the SD-Slot) I would try GpartEd Live
http://gparted.sourceforge.net/livecd.php
With GPartEd I would delete the Swap-Partition (part of your Disk), expand the Part2 (System) to 2.8GB and after that
create a new swap (around 500MB) as Part3 at the end of the Card.

Done this on a harddisk with a Windows-Partition...you could try this with a backup of your card  Smiley
GPartEd Live is a Linux-Live-CD and should also be capable to expand ext2/ext3-Partitions.

Good Luck!
Logged

Guber1
Newbie
*

Karma: 0
Posts: 24


View Profile
« Reply #4 on: October 26, 2010, 12:05:04 PM »

thanks i knows gparted and is the first program that i try to use but the problem i that it don't recognized my card reader and i cannot do the partitions then i made it with fdisk, any idea to force the detection on gparted, also i'm going to download a newer version of gparted because i think that mine could be obsolet
Logged

guidol
Full Member
***

Karma: 10
Posts: 128



View Profile
« Reply #5 on: October 26, 2010, 01:16:02 PM »

any idea to force the detection on gparted
Sorry I got no idea how to force it....only a SD to SATA/IDE-Adapter  Angry
Logged

birdman
Sr. Member
****

Karma: 4
Posts: 443


View Profile WWW
« Reply #6 on: October 26, 2010, 06:23:49 PM »

Do you have a Linux system with a few GB spare on a hard-drive?

If so, put the SD card into your USB adaptor on that, then (assuming it shows up as /dev/sdc - adjust the following commands as necessary):
Quote
dd if=/dev/sdc1 of=/hard-drive-space/part1
dd if=/dev/sdc2 of=/hard-drive-space/part2
You now have two files which are the raw images of the file systems.  Check that these are mountable as file systems, as the next step after the check is going to wipe out the data on your SDHC card!
Quote
mkdir -p /mnt/raw
mount -o ro,loop /hard-drive-space/part1 /mnt/raw
check /mnt/raw contains the files you expect for partition 1.
Quote
umount /mnt/raw
mount -o ro,loop /hard-drive-space/part1 /mnt/raw
check /mnt/raw contains the files you expect for partition 2.
Quote
umount /mnt/raw
Provided all looks OK, repartition your SDHC card into the 3 partitions you want with the relevant sizes.  Create new file-systems on the first two and run mkswap on the third.
You now need to copy back the data onto the new, correctly-sized partitions.
Quote
mkdir -p /mnt/new
mount /dev/sdc1 /mnt/new
mount -o ro,loop /hard-drive-space/part1 /mnt/raw
rsync -aWHi -v --numeric-ids /mnt/raw/ /mnt/new
Check /mnt/new now contains the files as expected for partition 1.
Quote
umount /mnt/new
umount /mnt/raw
mount /dev/sdc2 /mnt/new
mount -o ro,loop /hard-drive-space/part2 /mnt/raw
rsync -aWHi -v --numeric-ids /mnt/raw/ /mnt/new
Check /mnt/new now contains the files as expected for partition 2.

Put the SDHC card into the Plug and boot.

NOTE:  Read through all of this and work out what it is doing before you proceed!
Make sure you do put the trailing / on /mnt/raw/ but don't put it on /mnt/new in the rsync commands, otherwise the files will end up at the wrong level.  So you do need to check they have ended up in the right place.
« Last Edit: October 26, 2010, 06:33:29 PM by birdman » Logged

Guber1
Newbie
*

Karma: 0
Posts: 24


View Profile
« Reply #7 on: October 27, 2010, 05:23:33 AM »

thanks alot but finally the las version of gparted detect my sd card and i could do the partitions.
Logged

Pages: [1]
Print
Jump to: