NetAdminTools.com
 
SignalQ Sites:
NetAdminTools - Coprolite - NoNIC - SpotBridge - NAW
RoboCoop - AreWeDown - SolarPower - SysAdminTools
Xfig - Gold Loaf - GeekPapa - FixGMC - MCJ - FixRambler
Categories:
GNU/Linux | Homebrew designs | Perl | Administration | Backup/Recovery | Bugs/Fixes | Certification | Database | Email | File/Print | Hardware | Information Grab Bag | Interoperability | GNU/Linux ABCs | Monitoring | Name Resolution | Network Services | Networking | Remote Control | Security | Desktop | Web | BSD | Solaris | GIAGD | REALbasic

Last 30 Days | Last 60 Days | Last 90 Days | All Articles | RSS | Hail Support


Categories:
·GNU/Linux
·Homebrew designs
·Perl
·Administration
·Backup/Recovery
·Bugs/Fixes
·Certification
·Database
·Email
·File/Print
·Hardware
·Information Grab Bag
·Interoperability
·GNU/Linux ABCs
·Monitoring
·Name Resolution
·Network Services
·Networking
·Remote Control
·Security
·Desktop
·Web
·BSD
·Solaris
·GIAGD
·REALbasic
·All Categories


Debian on a USBCard -- Part 2 - Transferring the Filesystem
Topic: GIAGD   Posted:2004-07-24
Printer Friendly: Print

spacerspacer
In this article we discussed the Debian port to uClibc, and we created an ext3 filesystem on a USBCard. Now, we need to transfer the filesystem from the tarball to the USBCard. First, let's mount our newly created filesystem:

root@srv-1 / # mount -t ext3 /dev/sdc1 /mnt
root@srv-1 / # mount
/dev/hda3 on / type ext3 (rw,noatime)
proc on /proc type proc (rw)
none on /dev type devfs (rw)
tmpfs on /var/lib/init.d type tmpfs (rw,mode=0644,size=2048k)
/dev/hda1 on /boot type ext2 (rw,noatime)
tmpfs on /dev/shm type tmpfs (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
mondo:/share on /share type nfs (rw,addr=10.50.100.72,addr=10.50.100.72)
/dev/sdc1 on /mnt type ext3 (rw)
root@srv-1 / #
root@srv-1 / # ls -l /dev/sdc
lr-xr-xr-x  1 root root 33 Jul 24 03:18 /dev/sdc 
-> scsi/host2/bus0/target0/lun0/disc
root@srv-1 / #
root@srv-1 / # df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda3            114207364  58818188  49587704  55% /
tmpfs                114207364  58818188  49587704  55% /var/lib/init.d
/dev/hda1               194442     22217    162186  13% /boot
tmpfs                   452240         0    452240   0% /dev/shm
mondo:/share         177265344 108778792  59482004  65% /share
/dev/sdc1               217775      4127    202403   2% /mnt

Looks good. 200 Megs free on mnt. Let's extract the filesystem:

root@srv-1 / #
root@srv-1 / # cd /mnt
root@srv-1 mnt # tar -xjpf /home/u-1/usbcard/root_fs.i386.tar.bz2
root@srv-1 mnt # ls
bin   cdrom  etc     home    lib         mnt  proc  sbin  usr
boot  dev    floppy  initrd  lost+found  opt  root  tmp   var
root@srv-1 mnt #

Ok. We have a filesystem on our USBCard. In the next article we will compile a kernel for our new system.




Please read our Terms of Use
Microsoft, Windows, Windows XP, Windows 2003, Windows 2000, and NT are either trademarks or registered trademarks of Microsoft Corporation. NetAdminTools.com is not affiliated with Microsoft Corporation. Linux is a registered trademark of Linus Torvalds, and refers to the Linux kernel. The operating system of most distributions that contain the Linux kernel is GNU/Linux. All logos and trademarks in this site are property of their respective owner. Copyright 1997-2008 NetAdminTools.com

Created by:
MCJ
MCJ CMS