DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Is there a way to use a Debian Live DVD, but have settings saved/loaded from a USB drive? (I'm guessing that would imply having /etc, /root, and /home either mounted on or mirrored to the USB drive...somehow...)
(If it's possible with some other distro, I that would be fine too, as long as it's GNU/Linux and x64. I'd just prefer Debian if at all possible.)
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900
Rep:
I'm a little lost as to what you actually want on the usb. Are you saying you want all of DebianLive on the usb but certain things from your PCs hard drive? OR do you want the entire thing to run from usb?
If you want it all to run from usb then yes it can be done using unetbootin. You could also take a look at PendriveLinux for information on how to create a usb with persistance which your /home settings will remain once put in place.
A Live DVD obviously can't normally have persistence since the DVD isn't writable (ignoring DVD-RW's here). But a Live DVD can read/write a USB drive. So, if possible, I'd like to have /home persistence via USB drive, but the rest of the OS on bootable Live DVD (so as to not take up so much space on the USB drive).
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900
Rep:
I suppose in theory it is possible but you would have to link the two somehow, and unless you unpack the iso onto the DVD, as you would to a USB using unetbootin, I wouldn't even know where to start. I usb flash is cheap as chips nowadays, in Australia anyway, so I'm not sure it is even worth the effort trying to work through it unless your machine is unable to boot of a usb.
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628
Rep:
I think all you really need is a partition with the correct name on the usb stick for persistence to work. I have only done it once and I put the little partition on the HDD.
dd command reads one block of input and process it and writes it into an output file. You can specify the block size for input and output file. In the above dd command example, the parameter “bs” specifies the block size for the both the input and output file. So dd uses 2048bytes as a block size in the above command, sync option allows you to copy everything using synchronized I/O.
Note: If DVD is auto mounted, unmount the device to avoid any unnecessary access,
set the /dev/[device] like /dev/dvd and /dev/sdX to your situation.
with most computers you can boot the thumb-drive like a cdrom with rw access
I think all you really need is a partition with the correct name on the usb stick for persistence to work. I have only done it once and I put the little partition on the HDD.
Thanks. Those instructions seem rather involved at a glance, but after digging through them, it looks like they ultimately boil down to two basic steps:
1. Make sure the USB drive is formatted with ext2 or ext3 (or, apparently, just about anything except FAT or NTFS) and give it the label "casper-rw".
2. On the Live Disc's boot screen, press F6, add "persistent" to the params, and hit enter to boot.
I haven't tried it with Ubuntu, so I can't verify that it works there, but unfortunately it doesn't work with Debian 6. It did, however, give me enough information to find the Debian equivalent:
1. Label the USB drive "live-rw" instead of "casper-rw". Or "home-rw" if you want *just* /home to be persistent.
2. On the Live Disc's boot screen, press TAB instead of F6 (It took me an *enormous* amount of searching to discover Debian's equivalent to Ubuntu Live's F6. That info just doesn't seem to be stated anywhere as far as I could tell. Even the page I found that did clue me in was rather vague about it. FWIW.)
So that works for me now, thanks
Last edited by Abscissa256; 11-17-2011 at 12:20 PM.
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900
Rep:
Quote:
Originally Posted by Abscissa256
Thanks. Those instructions seem rather involved at a glance, but after digging through them, it looks like they ultimately boil down to two basic steps:
1. Make sure the USB drive is formatted with ext2 or ext3 (or, apparently, just about anything except FAT or NTFS) and give it the label "casper-rw".
2. On the Live Disc's boot screen, press F6, add "persistent" to the params, and hit enter to boot.
I haven't tried it with Ubuntu, so I can't verify that it works there, but unfortunately it doesn't work with Debian 6. It did, however, give me enough information to find the Debian equivalent:
1. Label the USB drive "live-rw" instead of "casper-rw". Or "home-rw" if you want *just* /home to be persistent.
2. On the Live Disc's boot screen, press TAB instead of F6 (It took me an *enormous* amount of searching to discover Debian's equivalent to Ubuntu Live's F6. That info just doesn't seem to be stated anywhere as far as I could tell. Even the page I found that did clue me in was rather vague about it. FWIW.)
So that works for me now, thanks
It wont work with Debian because Debian uses live not casper. The boys at Debian user forums have threads relevant to your needs.
In the step where you format the USB drive, it can be a pain to figure out the device path to the USB drive (at least with those instructions on that Ubuntu page). So in case it helps anyone, this little shortcut should help:
1. Go into pretty much any Linux GUI.
2. Insert the USB drive, typically they'll automount.
3. Open the file manager to the desired usb drive (if it doesn't do so automatically - often it will).
4. Use the file manager's "command prompt here" feature. In LXDE, it's F4 or "Tools" -> "Open Current Folder In Terminal". In XFCE, it's right-click->"Open Terminal Here".
5. Enter the command "df -h | grep `pwd`" (note the backticks). It'll look similar to this:
The first part (Ex: /dev/sdb) is the device path. Bash-fu experts could probably turn that into a command that strips out the excess stuff so you could just do:
Code:
user@debian:/media/748B-64B5$ fdisk `some fancy command that returns the /dev/sdb part`
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.