Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
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.
Hello, I am a bit baffled by the partitions I just created. I have two internal drives sda and sdb. sda has 250 gig capacity with sdb 350 gig. I have windows on sda and Ubuntu 10 for laptops on sdb. I thought I created a five gig swap on sdb1 and a 100 gig as root on sdb2 and 250 gig /home partition on sdb3.
I also have an external drive sdc.
Here is what fdisk shows
<code>
sudo /sbin/fdisk -l
[sudo] password for siawacsh:
Device Boot Start End Blocks Id System
/dev/sda1 * 1 26 204800 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 26 30402 243991552 7 HPFS/NTFS
Device Boot Start End Blocks Id System
/dev/sdb1 1 729 5855661 82 Linux swap / Solaris
/dev/sdb2 730 1945 9764864 83 Linux
/dev/sdb3 1945 38914 296948736 83 Linux
Device Boot Start End Blocks Id System
/dev/sdc1 1 19457 156288321 83 Linux
</code>
The strange thing is when I use du command which shows total size of sdb2 as 9.2 gigs and total size of sdb3 as 276 gigs.Can someone throw some light on this?
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672
Rep:
Code:
Filesystem Size Used Avail Use% Mounted on
/dev/sdb2 9.2G 2.6G 6.2G 30% /
/dev/sdb3 279G 1.9G 263G 1% /home
Hmmm... This doesn't quite match what you say you set the partitions up like. Have you checked what the drive looks like with GParted or are you doing everything with the command line?
Quote:
I thought I created a five gig swap on sdb1
Why did you create a 5Gb swap partition? How much physical memory do you have in your system? 5Gb seems far too much to me. Check out your system usage with System Monitor under System > Administration. Unless you're running some heavy memory resident stuff you probably won't use swap at all. It certainly shouldn't be greater than your physical memory size and would probably only be used for core dumps in the event of a crash.
Thanks guys. I opted for a reinstall and repartitioned. I was missing a zero when specifying the size of root partition. The system describes it in MB's instead GB. Now I have 76 GB hdb2 and 238 GB hdb3 as described by gparted. But df gives a different reading. My swap size reflects the actual size of my physical memory.
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672
Rep:
@syg00
Quote:
As for swap, what about hibernation ?
Interesting, I didn't think this was one of swap spaces uses, see below.
Quote:
Hibernation is a feature of many computer operating systems where the contents of RAM are written to non-volatile storage such as a hard disk, as a file or on a separate partition, before powering off the computer.
Source: Wikipedia, Hibernation (Computing)
I thought the contents of RAM were just stored as a file though Wikipedia DOES say that different systems use different methods.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.