ways to upgraded flash drive

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

ways to upgraded flash drive

Postby phanhan » Mon Nov 17, 2014 8:43 am

Hi everyone.
I have linux configured on a 1GB thumbdrive with a 1TB data drive.
I would like to upgrade to a larger thumbdrive as I have run out of space for applications.
Is there an easy to to do this and maintain the existing configuration?
Thank's!
Last edited by phanhan on Sat Jan 10, 2015 7:39 am, edited 1 time in total.
.
phanhan
 
Posts: 6
Joined: Tue Sep 16, 2014 8:43 am

Re: ways to upgraded flash drive

Postby krabat » Mon Nov 17, 2014 11:31 am

If you've got an opportunity to mount both the old and new drive on a Linux box then you could use rsync, e. g.
$this->bbcode_second_pass_code('', '# rsync -ADlrogpt --delete <path to old root dir>/ <path to new root dir>/')Don't forget the trailing slashes and run as root.
If you're using dedicated partitions for parts of the FHS, e. g. /boot or /home, you'll have to run the command with all of them.

Next you have to setup the boot loader.
If you keep using the drive the boot loader was installed on, e. g. by leaving /boot on the small thumb drive and only move /root to a different drive, then you'll only have to change the kernel parameter root.
Otherwise it's necessary to install the boot loader from scratch.
krabat
 
Posts: 57
Joined: Wed Jun 04, 2014 8:03 pm

Re: ways to upgraded flash drive

Postby Socaltom » Mon Nov 17, 2014 3:43 pm

$this->bbcode_second_pass_quote('krabat', 'I')f you've got an opportunity to mount both the old and new drive on a Linux box then you could use rsync, e. g.
$this->bbcode_second_pass_code('', '# rsync -ADlrogpt --delete <path to old root dir>/ <path to new root dir>/')Don't forget the trailing slashes and run as root.
If you're using dedicated partitions for parts of the FHS, e. g. /boot or /home, you'll have to run the command with all of them.

Next you have to setup the boot loader.
If you keep using the drive the boot loader was installed on, e. g. by leaving /boot on the small thumb drive and only move /root to a different drive, then you'll only have to change the kernel parameter root.
Otherwise it's necessary to install the boot loader from scratch.


It depends a little bit on the device you are using. if you don't have a special boot partition, then You can use rsync, make sure you unmount the 1 TB drive ( or it will try and copy it too). If you have the special boot partition then you need to recreate the partions on the new drive, then rsync both

This should do it
$this->bbcode_second_pass_code('', 'rsync -aAXv --progress --exclude={,"/run/*","/media/*","/lost+found"} /* /path/to/backup/folder')
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 39 guests